|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Methods that should be implemented in order to extract attributes associate with a class. An implementation this class needs to be provided for each bytecode manipulation library or other meta-data storage mechanism that is supported. TODO add utility method to get attributes of certain classes, or for methods of certain signatures.
Method Summary | |
void |
close()
Close any resouces that were opened. |
Attribute[] |
getClassAttributes()
Retreives attributes associated with the class. |
Attribute[] |
getClassAttributes(java.lang.Class filter)
Retrieves attributes associated with the class of a given type. |
Attribute[] |
getFieldAttributes(java.lang.String fieldName)
Retreives custom attributes applied to a specific field of the class. |
Attribute[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes)
Retreives custom attributes applied to a specific method of the class. |
Attribute[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes,
java.lang.Class filter)
Retreives custom attributes applied to a specific method of the class filtered by a particular attribute class. |
void |
open(java.lang.String qualifiedClassname,
java.lang.ClassLoader cl)
Using the provided class loader, load the class so that it can be passed to a bytecode manipulation library. |
Method Detail |
public void open(java.lang.String qualifiedClassname, java.lang.ClassLoader cl)
qualifiedClassname
- The fully qualified classname - contains
package information, ie java.lang.Stringcl
- Classload to user to load the class.public void close()
public Attribute[] getClassAttributes()
public Attribute[] getClassAttributes(java.lang.Class filter)
filter
- The class object used to filter the returned attribute classes.
public Attribute[] getMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes)
methodName
- The name of the method.methodParamTypes
- The signature of the method.
public Attribute[] getMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes, java.lang.Class filter)
methodName
- The name of the method.methodParamTypes
- The signature of the method.filter
- The class object used to filter the returned attribute
classes.
public Attribute[] getFieldAttributes(java.lang.String fieldName)
fieldName
- the name of a class field.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |