Class SimpleNode (0.8.0)

public class SimpleNode implements Node

Inheritance

Object > SimpleNode

Implements

Node

Constructors

SimpleNode(Copy p, int i)

public SimpleNode(Copy p, int i)
Parameters
NameDescription
pCopy
iint

SimpleNode(int i)

public SimpleNode(int i)
Parameter
NameDescription
iint

Fields

children

protected Node[] children
Field Value
TypeDescription
Node[]

id

protected int id
Field Value
TypeDescription
int

parent

protected Node parent
Field Value
TypeDescription
Node

parser

protected Copy parser
Field Value
TypeDescription
Copy

value

protected Object value
Field Value
TypeDescription
Object

Methods

childrenAccept(CopyVisitor visitor, Object data)

public Object childrenAccept(CopyVisitor visitor, Object data)

Accept the visitor. *

Parameters
NameDescription
visitorCopyVisitor
dataObject
Returns
TypeDescription
Object

dump(String prefix)

public void dump(String prefix)
Parameter
NameDescription
prefixString

getId()

public int getId()
Returns
TypeDescription
int

jjtAccept(CopyVisitor visitor, Object data)

public Object jjtAccept(CopyVisitor visitor, Object data)

Accept the visitor. *

Parameters
NameDescription
visitorCopyVisitor
dataObject
Returns
TypeDescription
Object

jjtAddChild(Node n, int i)

public 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 void jjtClose()

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

jjtGetChild(int i)

public 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 int jjtGetNumChildren()

Return the number of children the node has.

Returns
TypeDescription
int

jjtGetParent()

public Node jjtGetParent()
Returns
TypeDescription
Node

jjtGetValue()

public Object jjtGetValue()
Returns
TypeDescription
Object

jjtOpen()

public 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 void jjtSetParent(Node n)

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

Parameter
NameDescription
nNode

jjtSetValue(Object value)

public void jjtSetValue(Object value)
Parameter
NameDescription
valueObject

toString()

public String toString()
Returns
TypeDescription
String
Overrides

toString(String prefix)

public String toString(String prefix)
Parameter
NameDescription
prefixString
Returns
TypeDescription
String