|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ExpressionElement
This class represents an element of an expression. The possible elements
which this class may act for a wrapper for are: java.lang.Integer
,
Variable
, Operator
, and GroupingSymbol
.
Field Summary | |
static int |
END
Identifier for the end of the identifiers |
static int |
GROUPING_SYMBOL
Identifier for a GroupingSymbol element in the wrapper |
static int |
OPERATOR
Identifier for a Operator element in the wrapper |
static int |
OTHER
Identifier for an unknown element in the wrapper |
static int |
START
Identifier for the beginning of the identifiers |
int |
type
Holds one of the identifiers and specifies the type of the object wrapped |
static int |
VALUE
Identifier for an java.lang.Integer element in the wrapper |
static int |
VARIABLE
Identifier for a Variable element in the wrapper |
Constructor Summary | |
ExpressionElement(java.lang.Object o)
Sets the contents and establishes the type with a series of instanceof checks |
Method Summary | |
java.lang.String |
toString()
|
java.lang.String |
typeString()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
public static final int START
public static final int VALUE
java.lang.Integer
element in the wrapperpublic static final int VARIABLE
Variable
element in the wrapperpublic static final int OPERATOR
Operator
element in the wrapperpublic static final int GROUPING_SYMBOL
GroupingSymbol
element in the wrapperpublic static final int OTHER
public static final int END
public int type
Constructor Detail |
public ExpressionElement(java.lang.Object o)
o
- the object to be wrapped may be an Integer, Variable
,
Operator
, or GroupingSymbol
.Method Detail |
public java.lang.String typeString()
public java.lang.String toString()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |