| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private BlockStatement | |
| private boolean | |
| private Node |
| Access | Constructor and Description |
|---|---|
| pack-priv | MethodGenerator(ClassGeneratorImpl parent, int modifiers, List<Type> exceptions)
Construct a MethodGenerator that represents a constructor. |
| pack-priv | MethodGenerator(ClassGeneratorImpl parent, int modifiers, Type rtype, String name, List<Type> exceptions)
Construct a MethodGenerator that represents a method. |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(Visitor visitor)
Implements org. Accept the visitor and allow it to perform actions on this Node. |
| public Variable | |
| public void | |
| public List | attributes()
Implements org. Internal method for dynamic attribute support. |
| public BlockStatement | |
| public <T extends Node> T | copy(Class<T> cls)
Implements org. Make a deep copy of this node. |
| public <T extends Node> T | copy(Node newParent, Class<T> cls)
Implements org. Copy setting a new parent in the result. |
| public Object | get(int index)
Implements org. Internal method for dynamic attribute support. |
| public <T extends Node> T | getAncestor(Class<T> type)
Implements org. Return the first ancestor of this node of the given type, if any. |
| public int | hashCode()
Overrides org. Returns a hash code value for this object. |
| public int | |
| public boolean | isConstructor()
Overrides org. Implements org. Returns true if this is a constructor, false if method. |
| public Node | parent()
Implements org. Return the Node that contains (and created) this Node. |
| public void | parent(Node node)
Implements org. Set the parent to a new value. |
| public void | set(int index, Object obj)
Implements org. Internal method for dynamic attribute support. |
| argsComplete | back to summary |
|---|---|
| private boolean argsComplete | |
| body | back to summary |
|---|---|
| private BlockStatement body | |
| isConstructor | back to summary |
|---|---|
| private boolean isConstructor Hides org. | |
| nodeImpl | back to summary |
|---|---|
| private Node nodeImpl | |
| MethodGenerator | back to summary |
|---|---|
| pack-priv MethodGenerator(ClassGeneratorImpl parent, int modifiers, List<Type> exceptions) Construct a MethodGenerator that represents a constructor. | |
| MethodGenerator | back to summary |
|---|---|
| pack-priv MethodGenerator(ClassGeneratorImpl parent, int modifiers, Type rtype, String name, List<Type> exceptions) Construct a MethodGenerator that represents a method. | |
| accept | back to summary |
|---|---|
| public void accept(Visitor visitor) Implements org. Doc from org. Accept the visitor and allow it to perform actions on this Node. | |
| addArgument | back to summary |
|---|---|
| public Variable addArgument(Type type, String ident) | |
| argsComplete | back to summary |
|---|---|
| public void argsComplete() | |
| attributes | back to summary |
|---|---|
| public List Implements org. Doc from org. Internal method for dynamic attribute support. Return all attributes for this node (may be null). | |
| body | back to summary |
|---|---|
| public BlockStatement body() | |
| copy | back to summary |
|---|---|
| public <T extends Node> T copy(Class<T> cls) Implements org. Doc from org. Make a deep copy of this node. If nn = n.copy(), then n.parent() == nn.parent(), which also means that the parent is NOT copied. | |
| copy | back to summary |
|---|---|
| public <T extends Node> T copy(Node newParent, Class<T> cls) Implements org. Doc from org. Copy setting a new parent in the result. | |
| get | back to summary |
|---|---|
| public Object get(int index) Implements org. Doc from org. Internal method for dynamic attribute support. Return the value of the attribute at index. If the attribute at index is not set, set it to the default value and return the default. | |
| getAncestor | back to summary |
|---|---|
| public <T extends Node> T getAncestor(Class<T> type) Implements org. Doc from org. Return the first ancestor of this node of the given type, if any. Throws IllegalArgumentException if not found. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| id | back to summary |
|---|---|
| public int id() Implements org. Doc from org. Return the unique ID of this node. This starts at 1 and is incremented for each new Node that is created. | |
| isConstructor | back to summary |
|---|---|
| public boolean isConstructor() Overrides org. Implements org. Doc from org. Returns true if this is a constructor, false if method. | |
| parent | back to summary |
|---|---|
| public Node parent() Implements org. Doc from org. Return the Node that contains (and created) this Node. | |
| parent | back to summary |
|---|---|
| public void parent(Node node) Implements org. Doc from org. Set the parent to a new value. Should only be called inside NodeBase. | |
| set | back to summary |
|---|---|
| public void set(int index, Object obj) Implements org. Doc from org. Internal method for dynamic attribute support. Set the attribute at index to obj. | |