Package de.odysseus.el.tree.impl.ast
Class AstBinary
- java.lang.Object
-
- de.odysseus.el.tree.impl.ast.AstNode
-
- de.odysseus.el.tree.impl.ast.AstRightValue
-
- de.odysseus.el.tree.impl.ast.AstBinary
-
- All Implemented Interfaces:
ExpressionNode
,Node
public class AstBinary extends AstRightValue
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AstBinary.Operator
static class
AstBinary.SimpleOperator
-
Field Summary
Fields Modifier and Type Field Description static AstBinary.Operator
ADD
static AstBinary.Operator
AND
static AstBinary.Operator
DIV
static AstBinary.Operator
EQ
static AstBinary.Operator
GE
static AstBinary.Operator
GT
static AstBinary.Operator
LE
private AstNode
left
static AstBinary.Operator
LT
static AstBinary.Operator
MOD
static AstBinary.Operator
MUL
static AstBinary.Operator
NE
private AstBinary.Operator
operator
static AstBinary.Operator
OR
private AstNode
right
static AstBinary.Operator
SUB
-
Constructor Summary
Constructors Constructor Description AstBinary(AstNode left, AstNode right, AstBinary.Operator operator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
appendStructure(java.lang.StringBuilder b, Bindings bindings)
java.lang.Object
eval(Bindings bindings, javax.el.ELContext context)
int
getCardinality()
Get the node's number of children.AstNode
getChild(int i)
Get i'th childAstBinary.Operator
getOperator()
java.lang.String
toString()
-
Methods inherited from class de.odysseus.el.tree.impl.ast.AstRightValue
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
-
Methods inherited from class de.odysseus.el.tree.impl.ast.AstNode
findAccessibleMethod, getStructuralId, getValue
-
-
-
-
Field Detail
-
ADD
public static final AstBinary.Operator ADD
-
AND
public static final AstBinary.Operator AND
-
DIV
public static final AstBinary.Operator DIV
-
EQ
public static final AstBinary.Operator EQ
-
GE
public static final AstBinary.Operator GE
-
GT
public static final AstBinary.Operator GT
-
LE
public static final AstBinary.Operator LE
-
LT
public static final AstBinary.Operator LT
-
MOD
public static final AstBinary.Operator MOD
-
MUL
public static final AstBinary.Operator MUL
-
NE
public static final AstBinary.Operator NE
-
OR
public static final AstBinary.Operator OR
-
SUB
public static final AstBinary.Operator SUB
-
operator
private final AstBinary.Operator operator
-
left
private final AstNode left
-
right
private final AstNode right
-
-
Constructor Detail
-
AstBinary
public AstBinary(AstNode left, AstNode right, AstBinary.Operator operator)
-
-
Method Detail
-
getOperator
public AstBinary.Operator getOperator()
-
eval
public java.lang.Object eval(Bindings bindings, javax.el.ELContext context)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendStructure
public void appendStructure(java.lang.StringBuilder b, Bindings bindings)
- Specified by:
appendStructure
in classAstNode
-
getCardinality
public int getCardinality()
Description copied from interface:Node
Get the node's number of children.
-
-