public class AstBinary extends AstRightValue
Modifier and Type | Class and Description |
---|---|
static interface |
AstBinary.Operator |
static class |
AstBinary.SimpleOperator |
Modifier and Type | Field and 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 |
static AstBinary.Operator |
LT |
static AstBinary.Operator |
MOD |
static AstBinary.Operator |
MUL |
static AstBinary.Operator |
NE |
static AstBinary.Operator |
OR |
static AstBinary.Operator |
SUB |
Constructor and Description |
---|
AstBinary(AstNode left,
AstNode right,
AstBinary.Operator operator) |
Modifier and Type | Method and Description |
---|---|
void |
appendStructure(StringBuilder b,
Bindings bindings) |
Object |
eval(Bindings bindings,
ELContext context) |
int |
getCardinality()
Get the node's number of children.
|
AstNode |
getChild(int i)
Get i'th child
|
AstBinary.Operator |
getOperator() |
String |
toString() |
getMethodInfo, getType, getValueReference, invoke, isLeftValue, isLiteralText, isMethodInvocation, isReadOnly, setValue
getStructuralId, getValue
public static final AstBinary.Operator ADD
public static final AstBinary.Operator AND
public static final AstBinary.Operator DIV
public static final AstBinary.Operator EQ
public static final AstBinary.Operator GE
public static final AstBinary.Operator GT
public static final AstBinary.Operator LE
public static final AstBinary.Operator LT
public static final AstBinary.Operator MOD
public static final AstBinary.Operator MUL
public static final AstBinary.Operator NE
public static final AstBinary.Operator OR
public static final AstBinary.Operator SUB
public AstBinary(AstNode left, AstNode right, AstBinary.Operator operator)
public AstBinary.Operator getOperator()
public void appendStructure(StringBuilder b, Bindings bindings)
appendStructure
in class AstNode
public int getCardinality()
Node
Copyright © 2021. All rights reserved.