Groovy Documentation

java.gate.yam.parse
Class SimpleNode

java.lang.Object
  java.gate.yam.parse.YamNode
      java.gate.yam.parse.SimpleNode
All Implemented Interfaces:
Node

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

children

protected Node[] children


id

protected int id


parent

protected Node parent


parser

protected YamParser parser


 
Constructor Detail

SimpleNode

public SimpleNode(int i)


SimpleNode

public SimpleNode(YamParser p, int i)


 
Method Detail

addChildren

public void addChildren(Node other)
Add all the children of a node to this node.


dump

public void dump(String prefix)
Print the node.


getId

public int getId()
Get the id of this node.


getImage

public String getImage()
Return the image of the node, based on the concatenation of its tokens.


hasChildren

public boolean hasChildren()
Does this node have children?


jjtAddChild

public void jjtAddChild(Node n, int i)


jjtClose

public void jjtClose()


jjtGetChild

public Node jjtGetChild(int i)


jjtGetNumChildren

public int jjtGetNumChildren()


jjtGetParent

public Node jjtGetParent()


jjtOpen

public void jjtOpen()


jjtSetParent

public void jjtSetParent(Node n)


toString

public String toString()


toString

public String toString(String prefix)


 

Groovy Documentation