org.jacorb.notification.filter.etcl
public abstract class AbstractTCLNode extends BaseAST implements TCLParserTokenTypes
Version: $Id: AbstractTCLNode.java,v 1.8 2005/08/21 13:22:57 alphonse.bendt Exp $
| Constructor Summary | |
|---|---|
| AbstractTCLNode(Token tok) | |
| protected | AbstractTCLNode() |
| 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.
the right and left subtrees are visited before the root node is visited.
|
| abstract void | acceptPreOrder(AbstractTCLVisitor visitor)
accept a visitor for traversal in Preorder.
the root node is visited before the left and the right subtrees are visited.
|
| EvaluationResult | evaluate(EvaluationContext context)
Evaluate this Node.
|
| String | getName() |
| static 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(int t, String txt)
satisfy abstract method from BaseAST. |
| void | initialize(AST t)
satisfy abstract method from BaseAST. |
| void | initialize(Token tok)
satisfy abstract method from BaseAST. |
| boolean | isBoolean() |
| boolean | isNumber() |
| boolean | isStatic() |
| boolean | isString() |
| AbstractTCLNode | left()
Access the left child. |
| void | printToStringBuffer(StringBuffer buffer) |
| AbstractTCLNode | right()
Access the right child. |
| void | setType(int type)
Set AST Token Type for this node.
|
| String | toStringTree()
create a visualization of this node and all its children.
|
Parameters: visitor
Parameters: visitor
Parameters: visitor
Parameters: context
an EvaluationContext value contains all context information
necessary for the evaluation
Returns: an EvaluationResult value
Throws: 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
Returns: the AST Token Type value
See Also: TCLParserTokenTypes
Returns: true, if this node has a Sibling
Returns: the left Child or null.
Returns: the right Child or null.
Parameters: type must be a valid TCLTokenType.
See Also: TCLParserTokenTypes
Returns: a String representation of this Node and all its children