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()