de.odysseus.el.tree.impl.ast
Class AstBinary

java.lang.Object
  extended by de.odysseus.el.tree.impl.ast.AstNode
      extended by de.odysseus.el.tree.impl.ast.AstRightValue
          extended by de.odysseus.el.tree.impl.ast.AstBinary
All Implemented Interfaces:
ExpressionNode, Node

public class AstBinary
extends AstRightValue


Nested Class Summary
static interface AstBinary.Operator
           
static class AstBinary.SimpleOperator
           
 
Field Summary
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 Summary
AstBinary(AstNode left, AstNode right, AstBinary.Operator operator)
           
 
Method Summary
 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
 AstBinary.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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

AstBinary

public AstBinary(AstNode left,
                 AstNode right,
                 AstBinary.Operator operator)
Method Detail

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


Copyright © 2006-2009 Odysseus Software GmbH.