|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--attrib4j.Attributes
This class contains convenience methods to access and test custom
attributes. Attributes derive from the class Attribute
.
The settings of the AttributeFactory
will determine which
implementation is used to search for metadata associated with
program elements.
Constructor Summary | |
Attributes()
|
Method Summary | |
static Attribute[] |
getAttributes(java.lang.Class cls)
Return the list (possibly empty) of custom attributes associated with the class "cls". |
static Attribute[] |
getAttributes(java.lang.Class cls,
java.lang.Class filter)
|
static Attribute[] |
getAttributes(java.lang.reflect.Field fld)
Return the list (possibly empty) of custom attributes associated with the field "fld". |
static Attribute[] |
getAttributes(java.lang.reflect.Method method)
Return all the attributes associated with the given method. |
static Attribute[] |
getAttributes(java.lang.reflect.Method method,
java.lang.Class filter)
Return all the attributes associated with the given method but filtered by the attribute class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Attributes()
Method Detail |
public static Attribute[] getAttributes(java.lang.Class cls)
cls
- The java.lang.Class object to find the attributes on.
public static Attribute[] getAttributes(java.lang.Class cls, java.lang.Class filter)
public static Attribute[] getAttributes(java.lang.reflect.Method method)
method
- The java.lang.reflect.Method describing the method.
public static Attribute[] getAttributes(java.lang.reflect.Method method, java.lang.Class filter)
method
- The java.lang.reflect.Method describing the method.filter
- Only attributes that are an instanceof this class
will be returned.
public static Attribute[] getAttributes(java.lang.reflect.Field fld)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |