|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Node
Represents a node in the AST used to generate code. All nodes support the dynamic attribute facility.
| Method Summary | ||
|---|---|---|
void |
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node. |
|
|
copy(Class<T> cls)
Make a deep copy of this node. |
|
|
copy(Node newParent,
Class<T> cls)
Copy setting a new parent in the result. |
|
|
getAncestor(Class<T> type)
Return the first ancestor of this node of the given type, if any. |
|
int |
id()
Return the unique ID of this node. |
|
Node |
parent()
Return the Node that contains (and created) this Node. |
|
void |
parent(Node node)
Set the parent to a new value. |
|
| Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject |
|---|
attributes, get, set |
| Method Detail |
|---|
Node parent()
int id()
void parent(Node node)
<T extends Node> T getAncestor(Class<T> type)
<T extends Node> T copy(Class<T> cls)
<T extends Node> T copy(Node newParent,
Class<T> cls)
void accept(Visitor visitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||