|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--attrib4j.cfparse.CFParseAttributeExtractor
AttributeExtractor implementation using the CFParse bytecode library. Make sure you use the AttributeExtractor that pairs up with the corresponding ClassAnnotator implementation.
Constructor Summary | |
CFParseAttributeExtractor()
Do nothing ctor. |
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. |
java.lang.Object[] |
getCustomClassAttributes()
Retreives custom attributes applied to the class. |
java.lang.Object[] |
getCustomClassAttributes(java.lang.Object filter)
Return the list (possible empty) of attribute associated with the class that instances of the 'filter' class. |
java.lang.Object[] |
getCustomFieldAttributes(java.lang.String fieldName)
Retreives custom attributes applied to a specific field of the class. |
java.lang.Object[] |
getCustomMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes)
Retreives custom attributes applied to a specific method of the class. |
java.lang.Object[] |
getCustomMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes,
java.lang.Class filter)
Retreives custom attributes applied to a specific method of the class. |
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)
A no-op implementation since cfparse is very low on the list of priorities to support now that there is a BCEL implementation. |
Attribute[] |
getMethodAttributes(java.lang.String methodName,
java.lang.String[] methodParamTypes,
java.lang.Class filter)
A no-op implementation since cfparse is very low on the list of priorities to support now that there is a BCEL implementation. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CFParseAttributeExtractor()
Method Detail |
public void open(java.lang.String qualifiedClassname, java.lang.ClassLoader cl)
open
in interface AttributeExtractor
qualifiedClassname
- The fully qualified classname - contains
package information, ie java.lang.Stringcl
- Classloader to use to load the class.public void close()
close
in interface AttributeExtractor
public Attribute[] getClassAttributes()
AttributeExtractor
getClassAttributes
in interface AttributeExtractor
public Attribute[] getClassAttributes(java.lang.Class filter)
AttributeExtractor
getClassAttributes
in interface AttributeExtractor
filter
- The class object used to filter the returned attribute classes.
public java.lang.Object[] getCustomClassAttributes()
public java.lang.Object[] getCustomClassAttributes(java.lang.Object filter)
filter
- The instance that will filter out only matching
class types.
public Attribute[] getMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes)
getMethodAttributes
in interface AttributeExtractor
methodName
- The name of the method.methodParamTypes
- The signature of the method.
AttributeExtractor.getMethodAttributes(String, String[])
public Attribute[] getMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes, java.lang.Class filter)
getMethodAttributes
in interface AttributeExtractor
methodName
- The name of the method.methodParamTypes
- The signature of the method.filter
- The class object used to filter the returned attribute
classes.
AttributeExtractor.getMethodAttributes(java.lang.String, java.lang.String[], java.lang.Class)
public java.lang.Object[] getCustomMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes)
methodName
- The name of the method.methodParamTypes
- The signature of the method.
public java.lang.Object[] getCustomMethodAttributes(java.lang.String methodName, java.lang.String[] methodParamTypes, java.lang.Class filter)
methodName
- The name of the method.methodParamTypes
- The signature of the method.
public Attribute[] getFieldAttributes(java.lang.String fieldName)
AttributeExtractor
getFieldAttributes
in interface AttributeExtractor
fieldName
- the name of a class field.
public java.lang.Object[] getCustomFieldAttributes(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 |