public final class AstUnary extends AstRightValue
| Modifier and Type | Class and Description |
|---|---|
static interface |
AstUnary.Operator |
| Modifier and Type | Field and Description |
|---|---|
static AstUnary.Operator |
EMPTY |
static AstUnary.Operator |
NEG |
static AstUnary.Operator |
NOT |
| Constructor and Description |
|---|
AstUnary(AstNode child,
AstUnary.Operator operator) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendStructure(java.lang.StringBuilder b,
Bindings bindings) |
java.lang.Object |
eval(Bindings bindings,
ELContext context) |
int |
getCardinality()
Get the node's number of children.
|
AstNode |
getChild(int i)
Get i'th child
|
AstUnary.Operator |
getOperator() |
java.lang.String |
toString() |
getMethodInfo, getType, invoke, isLeftValue, isLiteralText, isReadOnly, setValuegetStructuralId, getValuepublic static final AstUnary.Operator EMPTY
public static final AstUnary.Operator NEG
public static final AstUnary.Operator NOT
public AstUnary(AstNode child, AstUnary.Operator operator)
public AstUnary.Operator getOperator()
public java.lang.Object eval(Bindings bindings, ELContext context) throws ELException
eval in class AstNodeELExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic void appendStructure(java.lang.StringBuilder b,
Bindings bindings)
appendStructure in class AstNodepublic int getCardinality()
Node