|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A node of the abstract syntax tree that is the result of parsing.
Method Summary | |
void |
accept(ExpressionParser.Visitor visitor)
The accept method of the visitor design pattern. |
List |
getChildNodes()
Returns the list of the child nodes of this . |
ExpressionParser.Node |
getParentNode()
Returns the parent node of this , or null if and only if this node is the root of the tree. |
void |
setParentNode(ExpressionParser.Node parentNode)
Sets the result of getParentNode() . |
Method Detail |
public List getChildNodes()
this
.
The list may or may not be modifiable (It is specified by the subclasses). The order of nodes is specified by the subclasses.
this
.public void accept(ExpressionParser.Visitor visitor)
The visitor
visits this
node and the children using the preorder traversal method.
visitor
- the visitor.public ExpressionParser.Node getParentNode()
this
, or null if and only if this
node is the root of the tree.
This method simply returns the value the method setParentNode(parser.ExpressionParser.Node)
set, so the above specification should be maintained by the user of this
object.
this
, or null if this
node is the root of the tree.public void setParentNode(ExpressionParser.Node parentNode)
getParentNode()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |