|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgec.gctparser.Variable
public class Variable
Container for a variable. Also parses a variable.
Field Summary | |
---|---|
java.lang.String |
initialValue
|
static int |
INPUTVARIABLE
|
static int |
INTERNALVARIABLE
|
java.lang.String |
name
|
static int |
OUTPUTVARIABLE
|
java.lang.String |
type
|
boolean |
valid
|
int |
variableType
|
Constructor Summary | |
---|---|
Variable()
Null constructor. |
Method Summary | |
---|---|
boolean |
parseVariable(java.lang.String token)
Parse the variable text a token at a time. |
void |
setVariableType(int vtype)
Set the variable type. |
java.lang.String |
toString()
Format the information about the variable. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
public java.lang.String type
public java.lang.String initialValue
public boolean valid
public int variableType
public static final int INPUTVARIABLE
public static final int OUTPUTVARIABLE
public static final int INTERNALVARIABLE
Constructor Detail |
---|
public Variable()
Method Detail |
---|
public boolean parseVariable(java.lang.String token)
token
- String - the word to parse
public void setVariableType(int vtype)
vtype
- int - one of INPUTVARIABLE, OUTPUTVARIABLE, or
INTERNALVARIABLEpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |