Interface Node (0.7.0)

public interface Node

Methods

getId()

public abstract int getId()
Returns
TypeDescription
int

jjtAccept(CopyVisitor visitor, Object data)

public abstract Object jjtAccept(CopyVisitor visitor, Object data)

Accept the visitor. *

Parameters
NameDescription
visitorCopyVisitor
dataObject
Returns
TypeDescription
Object

jjtAddChild(Node n, int i)

public abstract void jjtAddChild(Node n, int i)

This method tells the node to add its argument to the node's list of children.

Parameters
NameDescription
nNode
iint

jjtClose()

public abstract void jjtClose()

This method is called after all the child nodes have been added.

jjtGetChild(int i)

public abstract Node jjtGetChild(int i)

This method returns a child node. The children are numbered from zero, left to right.

Parameter
NameDescription
iint
Returns
TypeDescription
Node

jjtGetNumChildren()

public abstract int jjtGetNumChildren()

Return the number of children the node has.

Returns
TypeDescription
int

jjtGetParent()

public abstract Node jjtGetParent()
Returns
TypeDescription
Node

jjtOpen()

public abstract 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.

jjtSetParent(Node n)

public abstract void jjtSetParent(Node n)

This pair of methods are used to inform the node of its parent.

Parameter
NameDescription
nNode