public class FieldGenerator extends FieldInfoImpl implements Node
type| Constructor and Description |
|---|
FieldGenerator(ClassGeneratorImpl cinfo,
int modifiers,
Type type,
java.lang.String ident) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node.
|
java.util.List<java.lang.Object> |
attributes()
Internal method for dynamic attribute support.
|
<T extends Node> |
copy(java.lang.Class<T> cls)
Make a deep copy of this node.
|
<T extends Node> |
copy(Node newParent,
java.lang.Class<T> cls)
Copy setting a new parent in the result.
|
java.lang.Object |
get(int index)
Internal method for dynamic attribute support.
|
<T extends Node> |
getAncestor(java.lang.Class<T> type)
Return the first ancestor of this node of the given type, if any.
|
Expression |
getExpression() |
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.
|
void |
set(int index,
java.lang.Object obj)
Internal method for dynamic attribute support.
|
equals, hashCode, toString, typeisAccessibleInContext, modifiers, myClassInfo, nameclone, finalize, getClass, notify, notifyAll, wait, wait, waitisAccessibleInContext, modifiers, myClassInfo, namepublic FieldGenerator(ClassGeneratorImpl cinfo, int modifiers, Type type, java.lang.String ident)
public Node parent()
Nodepublic int id()
Nodepublic void parent(Node node)
Nodepublic <T extends Node> T getAncestor(java.lang.Class<T> type)
NodegetAncestor in interface Nodepublic <T extends Node> T copy(java.lang.Class<T> cls)
Nodepublic <T extends Node> T copy(Node newParent, java.lang.Class<T> cls)
Nodepublic java.lang.Object get(int index)
AttributedObjectget in interface AttributedObjectpublic void set(int index,
java.lang.Object obj)
AttributedObjectset in interface AttributedObjectpublic java.util.List<java.lang.Object> attributes()
AttributedObjectattributes in interface AttributedObjectpublic Expression getExpression()