Interface Node (0.8.0)

public interface Node

Methods

getId()

public abstract int getId()
Returns
Type Description
int

jjtAccept(CopyVisitor visitor, Object data)

public abstract Object jjtAccept(CopyVisitor visitor, Object data)

Accept the visitor. *

Parameters
Name Description
visitor CopyVisitor
data Object
Returns
Type Description
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
Name Description
n Node
i int

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
Name Description
i int
Returns
Type Description
Node

jjtGetNumChildren()

public abstract int jjtGetNumChildren()

Return the number of children the node has.

Returns
Type Description
int

jjtGetParent()

public abstract Node jjtGetParent()
Returns
Type Description
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
Name Description
n Node