de.odysseus.el.tree.impl.ast
Class AstUnary
java.lang.Object
de.odysseus.el.tree.impl.ast.AstNode
de.odysseus.el.tree.impl.ast.AstRightValue
de.odysseus.el.tree.impl.ast.AstUnary
- All Implemented Interfaces:
- ExpressionNode, Node
public class AstUnary
- extends AstRightValue
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EMPTY
public static final AstUnary.Operator EMPTY
NEG
public static final AstUnary.Operator NEG
NOT
public static final AstUnary.Operator NOT
AstUnary
public AstUnary(AstNode child,
AstUnary.Operator operator)
getOperator
public AstUnary.Operator getOperator()
eval
public java.lang.Object eval(Bindings bindings,
ELContext context)
throws ELException
- Specified by:
eval
in class AstNode
- Throws:
ELException
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