Interface Node (0.6.1)

publicinterface Node

Methods

getId()

publicabstractintgetId()
Returns
Type Description
int

jjtAccept(CopyVisitor visitor, Object data)

publicabstractObjectjjtAccept(CopyVisitorvisitor,Objectdata)

Accept the visitor. *

Parameters
Name Description
visitor CopyVisitor
data Object
Returns
Type Description

jjtAddChild(Node n, int i)

publicabstractvoidjjtAddChild(Noden,inti)

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

Parameters
Name Description
n Node
i int

jjtClose()

publicabstractvoidjjtClose()

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

jjtGetChild(int i)

publicabstractNodejjtGetChild(inti)

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

Parameter
Name Description
i int
Returns
Type Description

jjtGetNumChildren()

publicabstractintjjtGetNumChildren()

Return the number of children the node has.

Returns
Type Description
int

jjtGetParent()

publicabstractNodejjtGetParent()
Returns
Type Description

jjtOpen()

publicabstractvoidjjtOpen()

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)

publicabstractvoidjjtSetParent(Noden)

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

Parameter
Name Description
n Node

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.