|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTPLutils
Constructor Summary | |
TPLutils()
|
Method Summary | |
static boolean |
checkName(java.lang.String variableName,
java.util.Vector tplData)
This method checks to see whether the intended variable name is a reserved word or a integer. |
static int |
getInt(java.util.Vector tplData,
java.lang.String temp,
int lineCounter,
int dataType)
This method is to aid in CALCULATE and LET. |
static java.lang.String |
getString(java.util.Vector tplData,
java.lang.String temp,
int lineCounter,
int dataType)
This method is to aid in CALCULATE and LET. |
static java.lang.String |
readln()
This method reads in input from the user and returns a String. |
static int |
searchVector(java.util.Vector tplData,
java.lang.String var)
This method searches through the tplData Vector to find a specific variable. |
static boolean |
str2bool(java.lang.String str2convert)
This method converts a string to a boolean, or exits with an error message. |
static int |
str2int(java.lang.String str2convert)
This method converts a string to an integer. |
static int |
variableType(java.util.Vector tplData,
int index)
This method takes the variable from the Vector at the specified index and returns the data type (INTEGER or STRING) of the variable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TPLutils()
Method Detail |
public static int searchVector(java.util.Vector tplData, java.lang.String var)
tplData
- Contains the TPL variables, can be searched through. <TPLvariable> is the
type of object that can be put into the Vector. (only in 1.5.0)var
- String containing the variable name to be searched for.
public static int variableType(java.util.Vector tplData, int index)
tplData
- Contains the TPL variables, can be searched through.index
- The position of the variable in the Vector.
public static boolean checkName(java.lang.String variableName, java.util.Vector tplData)
variableName
- The variable name we are checking if allowed or nottplData
- Contains the TPL variables, can be searched through.
public static boolean str2bool(java.lang.String str2convert)
str2convert
- The String that is to be converted to an integer.
public static int str2int(java.lang.String str2convert)
str2convert
- The String that is to be converted to an integer.
public static int getInt(java.util.Vector tplData, java.lang.String temp, int lineCounter, int dataType)
tplData
- Contains the TPL variables, can be searched through.temp
- The String from the CALCULATE/LET statement, which is either a variable name or an
integer.lineCounter
- Counts the number of lines processed, shows where the error is.dataType
- The data type of the variable we are returning data to (here - 2)
public static java.lang.String getString(java.util.Vector tplData, java.lang.String temp, int lineCounter, int dataType)
tplData
- Contains the TPL variables, can be searched through.temp
- The String from the CALCULATE/LET statement, which is either a variable name or an
integer.lineCounter
- Counts the number of lines processed, shows where the error is.dataType
- The data type of the variable we are returning data to (here - 1)
public static java.lang.String readln()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |