|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectantlr.BaseAST
org.jacorb.notification.filter.etcl.AbstractTCLNode
org.jacorb.notification.filter.etcl.PlusOperator
public class PlusOperator
A simple node to represent PLUS operation
| Field Summary |
|---|
| Fields inherited from class antlr.BaseAST |
|---|
down, right |
| Constructor Summary | |
|---|---|
PlusOperator(antlr.Token tok)
|
|
| Method Summary | |
|---|---|
void |
acceptInOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal Inorder |
void |
acceptPostOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Postorder. |
void |
acceptPreOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Preorder. |
EvaluationResult |
evaluate(EvaluationContext context)
Evaluate this Node. |
EvaluationResult |
evaluate(EvaluationContext context,
EvaluationResult left)
|
boolean |
isStatic()
|
void |
setType(int type)
Set AST Token Type for this node. |
java.lang.String |
toString()
|
| Methods inherited from class org.jacorb.notification.filter.etcl.AbstractTCLNode |
|---|
getName, getNameForType, getType, hasNextSibling, initialize, initialize, initialize, isBoolean, isNumber, isString, left, printToStringBuffer, right, 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 |
|---|
public PlusOperator(antlr.Token tok)
| Method Detail |
|---|
public void setType(int type)
AbstractTCLNode
setType in interface antlr.collections.ASTsetType in class AbstractTCLNodetype - must be a valid TCLTokenType.TCLParserTokenTypespublic java.lang.String toString()
toString in interface antlr.collections.ASTtoString in class antlr.BaseAST
public EvaluationResult evaluate(EvaluationContext context,
EvaluationResult left)
throws EvaluationException
EvaluationExceptionpublic boolean isStatic()
isStatic in class AbstractTCLNode
public void acceptInOrder(AbstractTCLVisitor visitor)
throws VisitorException
AbstractTCLNode
acceptInOrder in class AbstractTCLNodeVisitorException
public void acceptPostOrder(AbstractTCLVisitor visitor)
throws VisitorException
AbstractTCLNode
acceptPostOrder in class AbstractTCLNodeVisitorException
public void acceptPreOrder(AbstractTCLVisitor visitor)
throws VisitorException
AbstractTCLNode
acceptPreOrder in class AbstractTCLNodeVisitorException
public final EvaluationResult evaluate(EvaluationContext context)
throws EvaluationException
AbstractTCLNode
evaluate in class AbstractTCLNodecontext - an EvaluationContext value contains all context information
necessary for the evaluation
EvaluationResult value
EvaluationException - occurs 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||