|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class defines a arithmatic expression. It's going to represent the leaf expressions, e.g., A String, Double, or a ColumnName. Hits: You can keep an Object property, that maybe objects of String, Double or ColumnName.
Field Summary | |
static int |
BOOL
|
static int |
DOUBLE
|
static int |
NAME
|
static int |
STRING
The integer representation of the type of the terminal expression. |
Method Summary | |
int |
getType()
Get the type of this terminalExpression. |
java.lang.Object |
getValue()
get the value of this expresssion. |
void |
setType(int type)
Set the type of this terminal expression. |
void |
setValue(boolean value)
Set the boolean value for this terminal expression. |
void |
setValue(ColumnName value)
Set the column name value for this terminal expression. |
void |
setValue(double value)
Set the double value for this terminal expression. |
void |
setValue(java.lang.String value)
Set the string value for this terminal expression. |
Methods inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.expression.Expression |
eval,
getRelatedColumnNames,
toSQL |
Field Detail |
public static final int STRING
public static final int DOUBLE
public static final int NAME
public static final int BOOL
Method Detail |
public int getType()
public java.lang.Object getValue()
public void setType(int type)
type
- The type of this expression.public void setValue(double value)
value
- The double value of this expression.public void setValue(ColumnName value)
value
- The column name value of this expression.public void setValue(java.lang.String value)
value
- The string value of this expression.public void setValue(boolean value)
value
- The boolean value of this expression.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |