|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.gate.yam.parse.YamNode
java.gate.yam.parse.SimpleNode
class SimpleNode extends YamNode
Node implementation class mostly generated by JJTree. Altered to
Field Summary | |
---|---|
protected Node[] |
children
|
protected int |
id
|
protected Node |
parent
|
protected YamParser |
parser
|
Constructor Summary | |
SimpleNode(int i)
|
|
SimpleNode(YamParser p, int i)
|
Method Summary | |
---|---|
void
|
addChildren(Node other)
Add all the children of a node to this node. |
void
|
dump(String prefix)
Print the node. |
int
|
getId()
Get the id of this node. |
String
|
getImage()
Return the image of the node, based on the concatenation of its tokens. |
boolean
|
hasChildren()
Does this node have children? |
void
|
jjtAddChild(Node n, int i)
|
void
|
jjtClose()
|
Node
|
jjtGetChild(int i)
|
int
|
jjtGetNumChildren()
|
Node
|
jjtGetParent()
|
void
|
jjtOpen()
|
void
|
jjtSetParent(Node n)
|
String
|
toString()
|
String
|
toString(String prefix)
|
Methods inherited from class YamNode | |
---|---|
getAfter, getArgsList, getBefore, getBody, getEnd, getFirstToken, getLastToken, getStart, reset, setAfter, setArgsList, setBefore, setBody, setEnd, setFirstToken, setLastToken, setStart |
Field Detail |
---|
protected Node[] children
protected int id
protected Node parent
protected YamParser parser
Constructor Detail |
---|
public SimpleNode(int i)
public SimpleNode(YamParser p, int i)
Method Detail |
---|
public void addChildren(Node other)
public void dump(String prefix)
public int getId()
public String getImage()
public boolean hasChildren()
public void jjtAddChild(Node n, int i)
public void jjtClose()
public Node jjtGetChild(int i)
public int jjtGetNumChildren()
public Node jjtGetParent()
public void jjtOpen()
public void jjtSetParent(Node n)
public String toString()
public String toString(String prefix)
Groovy Documentation