|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Node
All AST nodes must implement this interface. It provides basic machinery for constructing the parent and child relationships between nodes.
Method Summary | |
---|---|
int |
getBeginColumn()
Gets the beginColumn attribute of the Node. |
int |
getBeginLine()
Gets the beginLine attribute of the Node. |
int |
getEndColumn()
Gets the endColumn attribute of the Node. |
int |
getEndLine()
Gets the endLine attribute of the Node. |
java.lang.Object |
jjtAccept(JavaParserVisitor visitor,
java.lang.Object data)
Accept the visitor. |
void |
jjtAddChild(Node n,
int i)
This method tells the node to add its argument to the node's list of children. |
void |
jjtAddFirstChild(Node n)
This method tells the node to add its argument to the node's list of children. |
void |
jjtClose()
This method is called after all the child nodes have been added. |
void |
jjtDeleteChild(int i)
Description of the Method |
Node |
jjtGetChild(int i)
This method returns a child node. |
Node |
jjtGetFirstChild()
This method returns a child node. |
int |
jjtGetNumChildren()
Return the number of children the node has. |
Node |
jjtGetParent()
Description of the Method |
void |
jjtInsertChild(Node n,
int i)
Description of the Method |
void |
jjtOpen()
This method is called after the node has been made the current node. |
void |
jjtSetParent(Node n)
This pair of methods are used to inform the node of its parent. |
Method Detail |
---|
int getBeginLine()
int getBeginColumn()
int getEndLine()
int getEndColumn()
void jjtOpen()
void jjtClose()
void jjtSetParent(Node n)
n
- Description of ParameterNode jjtGetParent()
void jjtAddChild(Node n, int i)
n
- Description of Parameteri
- Description of Parametervoid jjtAddFirstChild(Node n)
Same as jjtAddChild(n, 0);
n
- Description of Parametervoid jjtInsertChild(Node n, int i)
n
- Description of the Parameteri
- Description of the Parametervoid jjtDeleteChild(int i)
i
- Description of the ParameterNode jjtGetChild(int i)
i
- Description of Parameter
Node jjtGetFirstChild()
Same as jjtGetFirstChild();
int jjtGetNumChildren()
java.lang.Object jjtAccept(JavaParserVisitor visitor, java.lang.Object data)
visitor
- Description of Parameterdata
- Description of Parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |