org.jacorb.notification.filter.etcl
Class DivOperator

java.lang.Object
  extended byantlr.BaseAST
      extended byorg.jacorb.notification.filter.etcl.AbstractTCLNode
          extended byorg.jacorb.notification.filter.etcl.UnaryOperator
              extended byorg.jacorb.notification.filter.etcl.BinaryOperator
                  extended byorg.jacorb.notification.filter.etcl.DivOperator
All Implemented Interfaces:
antlr.collections.AST, java.io.Serializable, TCLParserTokenTypes

public class DivOperator
extends BinaryOperator

A simple node to represent DIV operation

Version:
$Id: DivOperator.java,v 1.6 2005/08/21 13:24:38 alphonse.bendt Exp $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class antlr.BaseAST
down, right
 
Fields inherited from interface org.jacorb.notification.filter.etcl.TCLParserTokenTypes
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, NUM_FLOAT, NUMBER, OR, PLUS, RANDOM, RBRACKET, REPO_ID, RPAREN, RUNTIME_VAR, STRING, SUBSTR, TRUE, TYPE, TYPE_ID, UNARY_MINUS, UNARY_PLUS, UNION_POS, WITH, WS
 
Constructor Summary
DivOperator(antlr.Token tok)
           
 
Method Summary
 EvaluationResult evaluate(EvaluationContext context, EvaluationResult left, EvaluationResult rightVal)
           
 java.lang.String toString()
           
protected  void visitThis(AbstractTCLVisitor visitor)
           
 
Methods inherited from class org.jacorb.notification.filter.etcl.BinaryOperator
acceptInOrder, acceptPostOrder, acceptPreOrder, evaluate, evaluate
 
Methods inherited from class org.jacorb.notification.filter.etcl.AbstractTCLNode
getName, getNameForType, getType, hasNextSibling, initialize, initialize, initialize, isBoolean, isNumber, isStatic, isString, left, printToStringBuffer, right, setType, toStringTree
 
Methods inherited from class antlr.BaseAST
addChild, decode, encode, equals, equalsList, equalsListPartial, equalsTree, equalsTreePartial, findAll, findAllPartial, getColumn, getFirstChild, getLine, getNextSibling, getNumberOfChildren, getText, getTokenNames, removeChildren, setFirstChild, setNextSibling, setText, setVerboseStringConversion, toStringList, xmlSerialize, xmlSerializeNode, xmlSerializeRootClose, xmlSerializeRootOpen
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DivOperator

public DivOperator(antlr.Token tok)
Method Detail

toString

public java.lang.String toString()

evaluate

public EvaluationResult evaluate(EvaluationContext context,
                                 EvaluationResult left,
                                 EvaluationResult rightVal)
                          throws EvaluationException
Specified by:
evaluate in class BinaryOperator
Throws:
EvaluationException

visitThis

protected void visitThis(AbstractTCLVisitor visitor)
                  throws VisitorException
Specified by:
visitThis in class BinaryOperator
Throws:
VisitorException