|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.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 |
com.elegantj.data.parser.FunctionTable |
getFunctionTable()
Returns the function table |
com.elegantj.data.parser.Parser |
getParser()
Returns the expression parser |
java.lang.String[] |
getPredefinedTokens()
Returns the predefined tokens, which are valid to use in the expression |
com.elegantj.data.parser.Scanner |
getScanner()
Returns the expression scanner |
com.elegantj.data.parser.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 com.elegantj.data.parser.Parser getParser()
public com.elegantj.data.parser.Scanner getScanner()
public com.elegantj.data.parser.SymbolTable getSymbolTable()
public com.elegantj.data.parser.FunctionTable getFunctionTable()
public java.lang.String getExpression()
public java.lang.String[] getPredefinedTokens()
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||