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

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.AstUnary
All Implemented Interfaces:
ExpressionNode, Node

public class AstUnary
extends AstRightValue


Nested Class Summary
static interface AstUnary.Operator
           
static class AstUnary.SimpleOperator
           
 
Field Summary
static AstUnary.Operator EMPTY
           
static AstUnary.Operator NEG
           
static AstUnary.Operator NOT
           
 
Constructor Summary
AstUnary(AstNode child, AstUnary.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
 AstUnary.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

EMPTY

public static final AstUnary.Operator EMPTY

NEG

public static final AstUnary.Operator NEG

NOT

public static final AstUnary.Operator NOT
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,
                             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


Copyright © 2006-2009 Odysseus Software GmbH.