|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.aspectwerkz.attribdef.definition.attribute.bcel.BcelAttributeExtractor
BCEL implementation of the AttributeExtractor interface. Extracts attributes from the class file on class, method and field level. Based on code from the Attrib4j project by Mark Pollack and Ted Neward (http://attrib4j.sourceforge.net/).
| Constructor Summary | |
BcelAttributeExtractor()
|
|
| Method Summary | |
java.lang.Object[] |
getClassAttributes()
Returns the class attributes. |
java.lang.Object[] |
getFieldAttributes(java.lang.String fieldName)
Return all the attributes associated with a field. |
java.lang.Object[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes)
Return all the attributes associated with a method that have a particular method signature. |
void |
initialize(java.lang.String className,
java.lang.ClassLoader loader)
Open the classfile and parse it in to the BCEL library. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BcelAttributeExtractor()
| Method Detail |
public void initialize(java.lang.String className,
java.lang.ClassLoader loader)
initialize in interface AttributeExtractorclassName - the class name to load.loader - the classloader to use to get the inputstream of the .class file.public java.lang.Object[] getClassAttributes()
getClassAttributes in interface AttributeExtractor
public java.lang.Object[] 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 java.lang.Object[] getFieldAttributes(java.lang.String fieldName)
getFieldAttributes in interface AttributeExtractorfieldName - The name of the field.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||