|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An expression is something that can be evaluated. Expression objects are structured in a tree which is (usually) created by the FormulaParser (see FormulaParser.jj).
Method Summary | |
void |
addArgument(Expression expression)
Add an argument to this expression. |
void |
addArgument(int index,
Expression expression)
Add an argument to this expression. |
void |
check()
Check if the expression's structure is OK. |
java.lang.Object |
evaluate(ExpressionContext context)
Evaluates this expression and returns the result of that evaluation. |
int |
getColumn()
Returns the column number where this expression occurs. |
java.lang.String |
getDescription()
Returns a description of this expression that will be shown to the user in error messages. |
int |
getLine()
Returns the line number where this expression occurs. |
java.lang.Class |
getResultType()
Returns the class of the the type of object that this expression will return. |
void |
setPosition(int line,
int column)
Called by the parser to set the position of this expression. |
Method Detail |
public void addArgument(Expression expression)
check()
method.
public void addArgument(int index, Expression expression)
check()
method.
public java.lang.Object evaluate(ExpressionContext context) throws ExpressionException
ExpressionException
public void check() throws ExpressionException
ExpressionException
- to indicate the expression-syntax error.public java.lang.Class getResultType()
null
.
public int getLine()
public int getColumn()
public void setPosition(int line, int column)
public java.lang.String getDescription()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |