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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
AstBinary
public AstBinary(AstNode left,
AstNode right,
AstBinary.Operator operator)
getOperator
public AstBinary.Operator getOperator()
eval
public java.lang.Object eval(Bindings bindings,
ELContext context)
- Specified by:
eval
in class AstNode
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
appendStructure
public void appendStructure(java.lang.StringBuilder b,
Bindings bindings)
- Specified by:
appendStructure
in class AstNode
getCardinality
public int getCardinality()
- Description copied from interface:
Node
- Get the node's number of children.
getChild
public AstNode getChild(int i)
- Description copied from interface:
Node
- Get i'th child