|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--attrib4j.bcel.BCELAttributeExtractor
This is the BCEL implementation for extracting attributes from the class file. TODO Consider returning a Set or List TODO more convenience methods for selection of attributes TODO code cleanup - put reading of attribute in common util method. Created: Thu Oct 17 19:17:15 2002
| Constructor Summary | |
BCELAttributeExtractor()
|
|
| Method Summary | |
void |
close()
A do-nothing method for now. |
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)
Return all the attributes associated with a field. |
Attribute[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes)
Return all the attributes associated with a method that have a particular method signature. |
Attribute[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes,
java.lang.Class filter)
Return all the attributes associated with a method that have a particular method signature. |
void |
open(java.lang.String qualifiedClassname,
java.lang.ClassLoader cl)
Open the classfile and parse it in to the BCEL library. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BCELAttributeExtractor()
| Method Detail |
public void open(java.lang.String qualifiedClassname,
java.lang.ClassLoader cl)
open in interface AttributeExtractorqualifiedClassname - The class name to load.cl - the classloader to use to get the inputstream of the .class
file.public Attribute[] getClassAttributes()
AttributeExtractor
getClassAttributes in interface AttributeExtractorpublic Attribute[] getClassAttributes(java.lang.Class filter)
AttributeExtractor
getClassAttributes in interface AttributeExtractorfilter - The class object used to filter the returned attribute classes.
public Attribute[] getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes)
getMethodAttributes in interface AttributeExtractormethodName - The name of the method.methodParamTypes - An array of parameter types as given by
the reflection api.
public Attribute[] getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes,
java.lang.Class filter)
getMethodAttributes in interface AttributeExtractormethodName - The name of the method.methodParamTypes - An array of parameter types as given by
the reflection api.filter - The class object used to filter the returned attribute
classes.
public Attribute[] getFieldAttributes(java.lang.String fieldName)
getFieldAttributes in interface AttributeExtractorfieldName - The name of the field.
public void close()
close in interface AttributeExtractor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||