|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.elegantj.data.comp.computedfield.ExpressionExecutor
The ExpressionExecutor is used to build and to execute the expression. It can execute the arithmetic expression, it can also execute the database related expression if the MethodsClass is provided.
| Constructor Summary | |
ExpressionExecutor()
|
|
ExpressionExecutor(MethodsClass methodsClass)
Creates an ExpressionExecutor with specified MethodsClass. |
|
| Method Summary | |
java.lang.Object |
executeExp()
Executes the expression. |
java.lang.Object |
executeExp(java.lang.String expression)
Executes the given expression. |
java.lang.String |
getExpression()
Returns the expression to be executed |
FunctionTable |
getFunctionTable()
Returns the function table |
Parser |
getParser()
Returns the expression parser |
java.lang.String[] |
getPredefinedTokens()
Returns the predefined tokens, which are valid to use in the expression |
Scanner |
getScanner()
Returns the expression scanner |
SymbolTable |
getSymbolTable()
Returns the symbol table |
void |
setColumns(java.util.Vector columns,
java.util.Vector values)
Sets the column names and related values |
void |
setExpression(java.lang.String expression)
Sets the expression to be executed |
boolean |
verifyExp()
Checks the verification of the expression. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ExpressionExecutor()
public ExpressionExecutor(MethodsClass methodsClass)
methodsClass - the MethodsClass which contains the methods to be invoked by
executor to execute the expression, default null| Method Detail |
public void setExpression(java.lang.String expression)
expression - the expression string
public void setColumns(java.util.Vector columns,
java.util.Vector values)
columns - the vector of the column namesvalues - the vector of the column valuespublic boolean verifyExp()
public java.lang.Object executeExp()
public java.lang.Object executeExp(java.lang.String expression)
expression - the expression to be executed
public Parser getParser()
public Scanner getScanner()
public SymbolTable getSymbolTable()
public FunctionTable getFunctionTable()
public java.lang.String getExpression()
public java.lang.String[] getPredefinedTokens()
|
ElegantJ Data Tables Java API Specification v1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||