Class FieldGenerator
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
org.glassfish.pfl.dynamic.codegen.impl.FieldInfoImpl
org.glassfish.pfl.dynamic.codegen.impl.FieldGenerator
- All Implemented Interfaces:
AttributedObject,Node,FieldInfo,MemberInfo
-
Field Summary
Fields inherited from class org.glassfish.pfl.dynamic.codegen.impl.FieldInfoImpl
type -
Constructor Summary
ConstructorsConstructorDescriptionFieldGenerator(ClassGeneratorImpl cinfo, int modifiers, Type type, String ident) -
Method Summary
Modifier and TypeMethodDescriptionvoidAccept the visitor and allow it to perform actions on this Node.Internal method for dynamic attribute support.<T extends Node>
TMake a deep copy of this node.<T extends Node>
TCopy setting a new parent in the result.get(int index) Internal method for dynamic attribute support.<T extends Node>
TgetAncestor(Class<T> type) Return the first ancestor of this node of the given type, if any.intid()Return the unique ID of this node.parent()Return the Node that contains (and created) this Node.voidSet the parent to a new value.voidInternal method for dynamic attribute support.Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.FieldInfoImpl
equals, hashCode, toString, typeMethods inherited from class org.glassfish.pfl.dynamic.codegen.impl.MemberInfoBase
isAccessibleInContext, modifiers, myClassInfo, nameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.glassfish.pfl.dynamic.codegen.spi.MemberInfo
isAccessibleInContext, modifiers, myClassInfo, name
-
Constructor Details
-
FieldGenerator
-
-
Method Details
-
parent
Description copied from interface:NodeReturn the Node that contains (and created) this Node. -
id
public int id()Description copied from interface:NodeReturn the unique ID of this node. This starts at 1 and is incremented for each new Node that is created. -
parent
Description copied from interface:NodeSet the parent to a new value. Should only be called inside NodeBase. -
getAncestor
Description copied from interface:NodeReturn the first ancestor of this node of the given type, if any. Throws IllegalArgumentException if not found.- Specified by:
getAncestorin interfaceNode
-
copy
Description copied from interface:NodeMake 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
Description copied from interface:NodeCopy setting a new parent in the result. -
get
Description copied from interface:AttributedObjectInternal 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.- Specified by:
getin interfaceAttributedObject
-
set
Description copied from interface:AttributedObjectInternal method for dynamic attribute support. Set the attribute at index to obj.- Specified by:
setin interfaceAttributedObject
-
attributes
Description copied from interface:AttributedObjectInternal method for dynamic attribute support. Return all attributes for this node (may be null).- Specified by:
attributesin interfaceAttributedObject
-
getExpression
-
accept
Description copied from interface:NodeAccept the visitor and allow it to perform actions on this Node.
-