|
||||||||||
| 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
public abstract class AbstractTCLNode
Base Class for TCLTree Nodes.
| Field Summary |
|---|
| Fields inherited from class antlr.BaseAST |
|---|
down, right |
| Constructor Summary | |
|---|---|
protected |
AbstractTCLNode()
|
|
AbstractTCLNode(antlr.Token tok)
|
| Method Summary | |
|---|---|
abstract void |
acceptInOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal Inorder |
abstract void |
acceptPostOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Postorder. |
abstract void |
acceptPreOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Preorder. |
EvaluationResult |
evaluate(EvaluationContext context)
Evaluate this Node. |
java.lang.String |
getName()
|
static java.lang.String |
getNameForType(int t)
converts an int tree token type to a name. |
int |
getType()
Get the AST Token Type for this node. |
boolean |
hasNextSibling()
Check wether this node has a Sibling. |
void |
initialize(antlr.collections.AST t)
satisfy abstract method from BaseAST. |
void |
initialize(int t,
java.lang.String txt)
satisfy abstract method from BaseAST. |
void |
initialize(antlr.Token tok)
satisfy abstract method from BaseAST. |
boolean |
isBoolean()
|
boolean |
isNumber()
|
boolean |
isStatic()
|
boolean |
isString()
|
AbstractTCLNode |
left()
Access the left child. |
void |
printToStringBuffer(java.lang.StringBuffer buffer)
|
AbstractTCLNode |
right()
Access the right child. |
void |
setType(int type)
Set AST Token Type for this node. |
java.lang.String |
toStringTree()
create a visualization of this node and all its children. |
| 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, toString, 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 AbstractTCLNode(antlr.Token tok)
protected AbstractTCLNode()
| Method Detail |
|---|
public EvaluationResult evaluate(EvaluationContext context)
throws EvaluationException
context - 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
public abstract void acceptInOrder(AbstractTCLVisitor visitor)
throws VisitorException
visitor -
VisitorException
public abstract void acceptPreOrder(AbstractTCLVisitor visitor)
throws VisitorException
visitor -
VisitorException
public abstract void acceptPostOrder(AbstractTCLVisitor visitor)
throws VisitorException
visitor -
VisitorExceptionpublic final java.lang.String getName()
public boolean hasNextSibling()
public void printToStringBuffer(java.lang.StringBuffer buffer)
public java.lang.String toStringTree()
toStringTree in interface antlr.collections.ASTtoStringTree in class antlr.BaseASTpublic AbstractTCLNode left()
public AbstractTCLNode right()
public boolean isStatic()
public boolean isNumber()
public boolean isString()
public boolean isBoolean()
public int getType()
getType in interface antlr.collections.ASTgetType in class antlr.BaseASTTCLParserTokenTypespublic void setType(int type)
setType in interface antlr.collections.ASTsetType in class antlr.BaseASTtype - must be a valid TCLTokenType.TCLParserTokenTypespublic static java.lang.String getNameForType(int t)
public final void initialize(int t,
java.lang.String txt)
initialize in interface antlr.collections.ASTinitialize in class antlr.BaseASTpublic final void initialize(antlr.collections.AST t)
initialize in interface antlr.collections.ASTinitialize in class antlr.BaseASTpublic final void initialize(antlr.Token tok)
initialize in interface antlr.collections.ASTinitialize in class antlr.BaseAST
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||