org.jacorb.notification.filter.etcl
Class ExistOperator
- TCLParserTokenTypes
public class ExistOperator
A simple node to represent EXIST operation
AND , ARRAY , ASSOC , DEFAULT , DISCRIM , DIV , DOLLAR , DOT , EOF , EQ , EXIST , FALSE , FIRST , GT , GTE , IDENTIFIER , IMPLICIT , IN , LBRACKET , LENGTH , LPAREN , LT , LTE , MAX , MIN , MINUS , MULT , NEQ , NOT , NULL_TREE_LOOKAHEAD , NUMBER , NUM_FLOAT , OR , PLUS , RANDOM , RBRACKET , REPO_ID , RPAREN , RUNTIME_VAR , STRING , SUBSTR , TRUE , TYPE , TYPE_ID , UNARY_MINUS , UNARY_PLUS , UNION_POS , WITH , WS |
acceptInOrder , acceptPostOrder , acceptPreOrder , evaluate , getKind , getName , getNameForType , getNextType , getType , hasNextSibling , initialize , initialize , initialize , isBoolean , isNumber , isStatic , isString , left , printToStringBuffer , right , setKind , setType , toStringTree |
ExistOperator
public ExistOperator(Token tok)
acceptPostOrder
public void acceptPostOrder(AbstractTCLVisitor visitor)
throws VisitorException
accept a visitor for traversal in Postorder.
the right and left
subtrees are visited before the root node is visited.
- acceptPostOrder in interface AbstractTCLNode
visitor
-
acceptPreOrder
public void acceptPreOrder(AbstractTCLVisitor visitor)
throws VisitorException
accept a visitor for traversal in Preorder.
the root node is visited before the left and the right subtrees
are visited.
- acceptPreOrder in interface AbstractTCLNode
visitor
-
evaluate
public EvaluationResult evaluate(EvaluationContext context)
throws EvaluationException
Evaluate this Node.
- evaluate in interface AbstractTCLNode
context
- an EvaluationContext
value contains
all context information necessary for the evaluation
- an
EvaluationResult
value
EvaluationException
- these errors mostly occur if e.g. an expression contains a reference
to a non-existent struct member or if it is tried to add a
string and a number
toString
public String toString()