|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.compiler.Variable
public class Variable
Contains information referring to a BASIC variable.
Field Summary | |
---|---|
static int |
CONST_FLOAT
|
static int |
CONST_INTEGER
|
static int |
CONST_STRING
|
static int |
TYPE_FLOAT
|
static int |
TYPE_INTEGER
|
static int |
TYPE_STRING
|
Constructor Summary | |
---|---|
Variable(java.lang.String name,
int type,
java.lang.String value)
Construct a Variable. |
Method Summary | |
---|---|
java.lang.String |
getName()
Answers with the variable name. |
int |
getType()
Answers with the variable type. |
java.lang.String |
getValue()
Return the value. |
boolean |
isConstant()
Answers true if this is a constant value. |
boolean |
isConstantFloat()
Answers true if this is a floating point constant. |
boolean |
isConstantInteger()
Answers true if this is an integer constant. |
boolean |
isConstantString()
Answers true if this is a string constant. |
boolean |
isNumber()
Answers true if this is a number. |
boolean |
isTypeFloat()
Answers true if this variable is floating point. |
boolean |
isTypeInteger()
Answers true if this variable is integer. |
boolean |
isTypeString()
Answers true if this variable is string. |
boolean |
isVariableType()
Answers true if this is a variable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_STRING
public static final int TYPE_INTEGER
public static final int TYPE_FLOAT
public static final int CONST_STRING
public static final int CONST_INTEGER
public static final int CONST_FLOAT
Constructor Detail |
---|
public Variable(java.lang.String name, int type, java.lang.String value)
Method Detail |
---|
public java.lang.String getName()
public int getType()
public boolean isTypeString()
public boolean isTypeInteger()
public boolean isTypeFloat()
public boolean isVariableType()
public boolean isNumber()
public boolean isConstantString()
public boolean isConstantInteger()
public boolean isConstantFloat()
public boolean isConstant()
public java.lang.String getValue()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |