|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.expression.DecimalConstantFunction
| Field Summary | |
protected int |
column
|
protected int |
line
|
protected java.lang.String |
position
|
protected java.math.BigDecimal |
value
|
| Constructor Summary | |
DecimalConstantFunction(java.math.BigDecimal value)
|
|
| Method Summary | |
void |
addArgument(Expression function)
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected java.math.BigDecimal value
protected java.lang.String position
protected int line
protected int column
| Constructor Detail |
public DecimalConstantFunction(java.math.BigDecimal value)
| Method Detail |
public void addArgument(Expression function)
ExpressionExpression.check() method.
addArgument in interface Expression
public void addArgument(int index,
Expression expression)
ExpressionExpression.check() method.
addArgument in interface Expressionpublic java.lang.Object evaluate(ExpressionContext context)
Expression
evaluate in interface Expression
public void check()
throws ExpressionException
Expression
check in interface ExpressionExpressionException - to indicate the expression-syntax error.public java.lang.Class getResultType()
Expressionnull.
getResultType in interface Expressionpublic int getLine()
Expression
getLine in interface Expressionpublic int getColumn()
Expression
getColumn in interface Expression
public void setPosition(int line,
int column)
Expression
setPosition in interface Expressionpublic java.lang.String getDescription()
Expression
getDescription in interface Expression
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||