|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.outerj.expression.StringConstantFunction
Field Summary | |
protected int |
column
|
protected int |
line
|
protected java.lang.String |
position
|
protected java.lang.String |
value
|
Constructor Summary | |
StringConstantFunction(java.lang.String 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.lang.String value
protected java.lang.String position
protected int line
protected int column
Constructor Detail |
public StringConstantFunction(java.lang.String value)
Method Detail |
public void addArgument(Expression function)
Expression
Expression.check()
method.
addArgument
in interface Expression
public void addArgument(int index, Expression expression)
Expression
Expression.check()
method.
addArgument
in interface Expression
public java.lang.Object evaluate(ExpressionContext context)
Expression
evaluate
in interface Expression
public void check() throws ExpressionException
Expression
check
in interface Expression
ExpressionException
- to indicate the expression-syntax error.public java.lang.Class getResultType()
Expression
null
.
getResultType
in interface Expression
public int getLine()
Expression
getLine
in interface Expression
public int getColumn()
Expression
getColumn
in interface Expression
public void setPosition(int line, int column)
Expression
setPosition
in interface Expression
public 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 |