Package 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AstUnary.Operator
static class
AstUnary.SimpleOperator
-
Field Summary
Fields Modifier and Type Field Description private AstNode
child
static AstUnary.Operator
EMPTY
static AstUnary.Operator
NEG
static AstUnary.Operator
NOT
private AstUnary.Operator
operator
-
Constructor Summary
Constructors Constructor Description AstUnary(AstNode child, AstUnary.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 childAstUnary.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
-
EMPTY
public static final AstUnary.Operator EMPTY
-
NEG
public static final AstUnary.Operator NEG
-
NOT
public static final AstUnary.Operator NOT
-
operator
private final AstUnary.Operator operator
-
child
private final AstNode child
-
-
Constructor Detail
-
AstUnary
public AstUnary(AstNode child, AstUnary.Operator operator)
-
-
Method Detail
-
getOperator
public AstUnary.Operator getOperator()
-
eval
public java.lang.Object eval(Bindings bindings, javax.el.ELContext context) throws javax.el.ELException
-
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.
-
-