|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.opensuit.cel.impl.tree.impl.ast.AstNode
org.ow2.opensuit.cel.impl.tree.impl.ast.AstRightValue
org.ow2.opensuit.cel.impl.tree.impl.ast.AstBinaryOperation
public class AstBinaryOperation
| Nested Class Summary | |
|---|---|
static class |
AstBinaryOperation.BooleanOperator
|
static class |
AstBinaryOperation.ComparisionOperator
|
static class |
AstBinaryOperation.NumberOperator
|
static interface |
AstBinaryOperation.Operator
|
| Field Summary | |
|---|---|
static AstBinaryOperation.Operator |
ADD
|
static AstBinaryOperation.Operator |
AND
|
static AstBinaryOperation.Operator |
DIV
|
static AstBinaryOperation.Operator |
EQ
|
static AstBinaryOperation.Operator |
GE
|
static AstBinaryOperation.Operator |
GT
|
static AstBinaryOperation.Operator |
LE
|
static AstBinaryOperation.Operator |
LT
|
static AstBinaryOperation.Operator |
MOD
|
static AstBinaryOperation.Operator |
MUL
|
static AstBinaryOperation.Operator |
NE
|
static AstBinaryOperation.Operator |
OR
|
static AstBinaryOperation.Operator |
SUB
|
| Fields inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode |
|---|
position |
| Constructor Summary | |
|---|---|
AstBinaryOperation(int position,
AstNode left,
AstNode right,
AstBinaryOperation.Operator operator)
|
|
| Method Summary | |
|---|---|
protected void |
appendExpressionString(java.lang.StringBuilder b)
Recursive method to build an expression string form. |
protected void |
appendValuePattern(java.lang.StringBuilder builder)
Recursive method to build the returned values regular expression. |
boolean |
compile(ITypeConverter converter,
ICompilationContext ctx,
ICompilationResultWriter messages)
Allow to compile the given expression with the associated |
java.lang.reflect.Type |
getGenericType()
Returns the expression generic type |
AstBinaryOperation.Operator |
getOperator()
|
java.lang.Class<?> |
getType()
Returns the expression type |
java.lang.Object |
invoke(IEvaluationContext context)
Evaluates the expression. |
boolean |
isStaticValue()
Returns true if the expression has a static value (i.e. that does
not depend on any evaluation context). |
| Methods inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstRightValue |
|---|
isReadOnly, set |
| Methods inherited from class org.ow2.opensuit.cel.impl.tree.impl.ast.AstNode |
|---|
getExpressionString, getPosition, getValuePattern, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final AstBinaryOperation.Operator ADD
public static final AstBinaryOperation.Operator AND
public static final AstBinaryOperation.Operator DIV
public static final AstBinaryOperation.Operator EQ
public static final AstBinaryOperation.Operator GE
public static final AstBinaryOperation.Operator GT
public static final AstBinaryOperation.Operator LE
public static final AstBinaryOperation.Operator LT
public static final AstBinaryOperation.Operator MOD
public static final AstBinaryOperation.Operator MUL
public static final AstBinaryOperation.Operator NE
public static final AstBinaryOperation.Operator OR
public static final AstBinaryOperation.Operator SUB
| Constructor Detail |
|---|
public AstBinaryOperation(int position,
AstNode left,
AstNode right,
AstBinaryOperation.Operator operator)
| Method Detail |
|---|
public boolean compile(ITypeConverter converter,
ICompilationContext ctx,
ICompilationResultWriter messages)
IExprNode
converter - Interface for conversion typesctx - Interface for compilation contextmessages - Represent where the messages compilation
will be stored
public java.lang.Class<?> getType()
IExpression
public java.lang.reflect.Type getGenericType()
IExpression
public boolean isStaticValue()
IExpressiontrue if the expression has a static value (i.e. that does
not depend on any evaluation context).
In such a case, the invoke(...) method may be called with a null
evaluation context.
public AstBinaryOperation.Operator getOperator()
public java.lang.Object invoke(IEvaluationContext context)
throws java.lang.Exception
IExpression
java.lang.Exceptionprotected void appendExpressionString(java.lang.StringBuilder b)
AstNode
appendExpressionString in class AstNodeprotected void appendValuePattern(java.lang.StringBuilder builder)
AstNode
appendValuePattern in class AstNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||