gov.llnl.babel.parsers.sidl2
Class ParseTreeNode
java.lang.Object
gov.llnl.babel.parsers.sidl2.ParseTreeNode
- Node
public class ParseTreeNode
extends java.lang.Object
children
protected Node[] children
first
protected Token first
parent
protected Node parent
ParseTreeNode
public ParseTreeNode(SIDLParser p,
int i)
ParseTreeNode
public ParseTreeNode(int i)
childrenAccept
public Object childrenAccept(SIDLParserVisitor visitor,
Object data)
Accept the visitor. *
dump
public void dump(String prefix)
getFirstToken
public Token getFirstToken()
getLastToken
public Token getLastToken()
jjtAddChild
public void jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's
list of children.
- jjtAddChild in interface Node
jjtClose
public void jjtClose()
This method is called after all the child nodes have been
added.
- jjtClose in interface Node
jjtGetChild
public Node jjtGetChild(int i)
This method returns a child node. The children are numbered
from zero, left to right.
- jjtGetChild in interface Node
jjtGetNumChildren
public int jjtGetNumChildren()
Return the number of children the node has.
- jjtGetNumChildren in interface Node
jjtOpen
public void jjtOpen()
This method is called after the node has been made the current
node. It indicates that child nodes can now be added to it.
- jjtOpen in interface Node
jjtSetParent
public void jjtSetParent(Node n)
This pair of methods are used to inform the node of its
parent.
- jjtSetParent in interface Node
toString
public String toString()
toString
public String toString(String prefix)