public class FieldGenerator extends FieldInfoImpl implements Node
type
Constructor and Description |
---|
FieldGenerator(ClassGeneratorImpl cinfo,
int modifiers,
Type type,
String ident) |
Modifier and Type | Method and Description |
---|---|
void |
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node.
|
List<Object> |
attributes()
Internal method for dynamic attribute support.
|
<T extends Node> |
copy(Class<T> cls)
Make a deep copy of this node.
|
<T extends Node> |
copy(Node newParent,
Class<T> cls)
Copy setting a new parent in the result.
|
Object |
get(int index)
Internal method for dynamic attribute support.
|
<T extends Node> |
getAncestor(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,
Object obj)
Internal method for dynamic attribute support.
|
equals, hashCode, toString, type
isAccessibleInContext, modifiers, myClassInfo, name
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isAccessibleInContext, modifiers, myClassInfo, name
public FieldGenerator(ClassGeneratorImpl cinfo, int modifiers, Type type, String ident)
public Node parent()
Node
public int id()
Node
public void parent(Node node)
Node
public <T extends Node> T getAncestor(Class<T> type)
Node
getAncestor
in interface Node
public <T extends Node> T copy(Class<T> cls)
Node
public <T extends Node> T copy(Node newParent, Class<T> cls)
Node
public Object get(int index)
AttributedObject
get
in interface AttributedObject
public void set(int index, Object obj)
AttributedObject
set
in interface AttributedObject
public List<Object> attributes()
AttributedObject
attributes
in interface AttributedObject
public Expression getExpression()
Copyright © 2017 Oracle. All rights reserved.