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?).-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute<?> get(int index) get(AttributedObject node) intindex()booleanisSet(AttributedObject node) name()static intvoidset(AttributedObject node, T arg) toString()Class<?> type()
-
Constructor Details
-
Attribute
-
Attribute
-
-
Method Details
-
numberOfAttributes
public static int numberOfAttributes() -
get
-
getAttributes
-
toString
-
get
-
set
-
isSet
-
name
-
index
public int index() -
type
-