|
Venice 0.74beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnz.org.venice.parser.ExpressionFactory
Create an executable expression from the given token and arguments.
| Method Summary | |
static Expression |
newExpression(Expression exp,
Expression[] children)
|
static Expression |
newExpression(java.lang.String inputExpressionString)
|
static Expression |
newExpression(Token token)
Create an executable terminal expression from the given token. |
static Expression |
newExpression(Token token,
Expression arg1)
Create an executable unary expression from the given token and argument. |
static Expression |
newExpression(Token token,
Expression arg1,
Expression arg2)
Create an executable binary expression from the given token and arguments. |
static Expression |
newExpression(Token token,
Expression arg1,
Expression arg2,
Expression arg3)
Create an executable ternary expression from the given token and arguments. |
static Expression |
newExpression(Token token,
Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4)
Create an executable quaternary expression from the given token and arguments. |
static Expression |
setChild(Expression exp,
Expression child,
int index)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Expression newExpression(Token token)
token - the terminal expression, e.g. a number
public static Expression newExpression(Token token,
Expression arg1)
token - the unary expression, e.g.
"not(X)"arg1 - the first argument
public static Expression newExpression(Token token,
Expression arg1,
Expression arg2)
token - the binary expression, e.g.
"X and Y"arg1 - the first argumentarg2 - the second argument
public static Expression newExpression(Token token,
Expression arg1,
Expression arg2,
Expression arg3)
token - the ternary expression, e.g.
"if(X) { Y } else { Z }"arg1 - the first argumentarg2 - the second argumentarg3 - the third argument
public static Expression newExpression(Token token,
Expression arg1,
Expression arg2,
Expression arg3,
Expression arg4)
token - the ternary expression, e.g.
"if(X) { Y } else { Z }"arg1 - the first argumentarg2 - the second argumentarg3 - the third argumentarg4 - the fourth argument
public static Expression newExpression(java.lang.String inputExpressionString)
public static Expression newExpression(Expression exp,
Expression[] children)
public static Expression setChild(Expression exp,
Expression child,
int index)
|
Venice 0.74beta | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||