Class Attribute<T>
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.Attribute<T>
Class used to define dynamic attributes on AttributedObject instances.
Note that T cannot be a generic type, due to problems with
Class<T>
when T is a generic. To work around this problem,
simply create an interface that extends the generic type
(you are programming to interfaces, right?).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
<?> get
(int index) get
(AttributedObject node) int
index()
boolean
isSet
(AttributedObject node) name()
private static int
static int
void
set
(AttributedObject node, T arg) toString()
Class
<?> type()
-
Field Details
-
attributes
-
name
-
initializer
-
defaultValue
-
cls
-
attributeIndex
private int attributeIndex
-
-
Constructor Details
-
Attribute
-
Attribute
-
-
Method Details