|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.outerj.expression.AbstractExpression
| Field Summary | |
protected java.util.ArrayList |
arguments
|
protected int |
column
|
protected int |
line
|
| Constructor Summary | |
AbstractExpression()
|
|
| 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. |
protected void |
checkArgument(int position,
java.lang.Class clazz)
|
protected void |
checkArguments(java.lang.Class[] types)
|
protected void |
checkArgumentsOfSameType(java.lang.Class clazz)
Checks that all the arguments are of the same type. |
protected void |
checkNoArguments()
|
int |
getColumn()
Returns the column number where this expression occurs. |
int |
getLine()
Returns the line number where this expression occurs. |
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 |
| Methods inherited from interface org.outerj.expression.Expression |
evaluate, getDescription, getResultType |
| Field Detail |
protected java.util.ArrayList arguments
protected int line
protected int column
| Constructor Detail |
public AbstractExpression()
| Method Detail |
public void addArgument(Expression expression)
ExpressionExpression.check() method.
addArgument in interface Expression
public void addArgument(int index,
Expression expression)
ExpressionExpression.check() method.
addArgument in interface Expression
public void setPosition(int line,
int column)
Expression
setPosition in interface Expressionpublic int getLine()
Expression
getLine in interface Expressionpublic int getColumn()
Expression
getColumn in interface Expression
public void check()
throws ExpressionException
Expression
check in interface ExpressionExpressionException - to indicate the expression-syntax error.
protected void checkArguments(java.lang.Class[] types)
throws ExpressionException
ExpressionException
protected void checkArgument(int position,
java.lang.Class clazz)
throws ExpressionException
ExpressionException
protected void checkNoArguments()
throws ExpressionException
ExpressionException
protected void checkArgumentsOfSameType(java.lang.Class clazz)
throws ExpressionException
ExpressionException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||