|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.expression.TerminalExpressionImp
This class defines a terminal expression.
Fields inherited from interface edu.wpi.cs.dsrg.xmldb.xat.common.expression.TerminalExpression |
BOOL,
DOUBLE,
NAME,
STRING |
Constructor Summary | |
TerminalExpressionImp()
The default TerminalExpressionImp constructor. |
|
TerminalExpressionImp(boolean bValue)
The default TerminalExpressionImp constructor using a boolean value. |
|
TerminalExpressionImp(java.lang.Boolean bValue)
The default TerminalExpressionImp constructor using a boolean object. |
|
TerminalExpressionImp(ColumnName cnValue)
The default TerminalExpressionImp constructor using a column name object. |
|
TerminalExpressionImp(double dValue)
The default TerminalExpressionImp constructor using a double value. |
|
TerminalExpressionImp(java.lang.Double dValue)
The default TerminalExpressionImp constructor using a Double object. |
|
TerminalExpressionImp(java.lang.String sValue)
The default TerminalExpressionImp constructor using a String object. |
Method Summary | |
java.lang.Object |
eval(XATOperator xopOper,
int[] iPositions)
Evaluate the expression of the XATOperator. |
ColumnName[] |
getRelatedColumnNames()
get column names related with expression. |
int |
getType()
Get the type of expression. |
java.lang.Object |
getValue()
Get the value of this expression. |
void |
setType(int type)
Set the type of the expression. |
void |
setValue(boolean bValue)
Set the value of this expression using given boolean value. |
void |
setValue(ColumnName cnValue)
Set the column name value for this terminal expression. |
void |
setValue(double dValue)
Set the double value for this terminal expression. |
void |
setValue(java.lang.String sValue)
Set the string value for this terminal expression. |
java.lang.String |
toSQL(OperatorEvaluator soe)
Convert the expression as a SQL statement. |
java.lang.String |
toString()
Output a string of this expression. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public TerminalExpressionImp()
public TerminalExpressionImp(double dValue)
dValue
- The double value used to construct the terminal expression.public TerminalExpressionImp(ColumnName cnValue)
cnValue
- The Column Name object used to construct the terminal expression.public TerminalExpressionImp(java.lang.Boolean bValue)
bValue
- The boolean object used to construct the terminal expression.public TerminalExpressionImp(java.lang.Double dValue)
dValue
- The Double object used to construct the terminal expression.public TerminalExpressionImp(java.lang.String sValue)
sValue
- The String object used to construct the terminal expression.public TerminalExpressionImp(boolean bValue)
bValue
- The boolean value used to construct the terminal expression.Method Detail |
public java.lang.Object eval(XATOperator xopOper, int[] iPositions)
xopOper
- The operator evaluated.iPositions
- The position of tuple in the XATTable.public ColumnName[] getRelatedColumnNames()
public int getType()
public java.lang.Object getValue()
public void setType(int type)
type
- The number used to represent the type of expression.public void setValue(double dValue)
value
- The double value of this expression.public void setValue(ColumnName cnValue)
value
- The column name value of this expression.public void setValue(java.lang.String sValue)
value
- The string value of this expression.public void setValue(boolean bValue)
public java.lang.String toSQL(OperatorEvaluator soe)
soe
- The operator evaluator for SQL generation.public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |