|
||||||||||
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. Based on code from the Attrib4j project by Mark Pollack and Ted Neward (http://attrib4j.sourceforge.net/).
Method Summary | |
java.lang.Object[] |
getClassAttributes()
Retreives attributes associated with the class. |
java.lang.Object[] |
getFieldAttributes(java.lang.String fieldName)
Retreives custom attributes applied to a specific field of the class. |
java.lang.Object[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes)
Retreives custom attributes applied to a specific method of the class. |
void |
initialize(java.lang.String className,
java.lang.ClassLoader loader)
Using the provided class loader, load the class so that it can be passed to a bytecode manipulation library. |
Method Detail |
public void initialize(java.lang.String className, java.lang.ClassLoader loader)
className
- The fully qualified classnameloader
- Classloader to user to load the class.public java.lang.Object[] getClassAttributes()
public java.lang.Object[] getMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes)
methodName
- The name of the method.methodParamTypes
- The signature of the method.
public java.lang.Object[] 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 |