| Modifier and Type | Field and Description |
|---|---|
protected Node[] |
children |
Token |
firstToken |
protected int |
id |
Token |
lastToken |
protected Node |
parent |
protected JavaParser |
parser |
| Constructor and Description |
|---|
SimpleNode(int i) |
SimpleNode(JavaParser p,
int i) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(String prefix) |
SimpleNode |
getChild(int i) |
int |
getId() |
ClassDescriptor |
getJavaType() |
SimpleNode |
getParent() |
String |
getText() |
void |
jjtAddChild(Node n,
int i)
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.
|
Node |
jjtGetChild(int i) |
int |
jjtGetNumChildren() |
Node |
jjtGetParent() |
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.
|
void |
setJavaType(ClassDescriptor javaType) |
String |
toString() |
String |
toString(String prefix) |
protected Node parent
protected Node[] children
protected final int id
protected JavaParser parser
public Token firstToken
public Token lastToken
public SimpleNode(int i)
public SimpleNode(JavaParser p, int i)
public int getId()
public void jjtOpen()
Nodepublic void jjtClose()
Nodepublic void jjtSetParent(Node n)
NodejjtSetParent in interface Noden - nodepublic Node jjtGetParent()
jjtGetParent in interface Nodepublic SimpleNode getParent()
public ClassDescriptor getJavaType()
public void setJavaType(ClassDescriptor javaType)
public void jjtAddChild(Node n, int i)
NodejjtAddChild in interface Noden - nodei - index ?public Node jjtGetChild(int i)
jjtGetChild in interface Nodei - index of childpublic SimpleNode getChild(int i)
public int jjtGetNumChildren()
jjtGetNumChildren in interface Nodepublic void dump(String prefix)
public String getText()
Copyright © 2008–2019 Ultreia.io. All rights reserved.