|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.aspectwerkz.annotation.instrumentation.asm.AsmAttributeEnhancer
Enhances classes with custom attributes using the ASM library.
Field Summary |
Fields inherited from interface org.codehaus.aspectwerkz.annotation.instrumentation.AttributeEnhancer |
CUSTOM_ATTRIBUTE |
Constructor Summary | |
AsmAttributeEnhancer()
|
Method Summary | |
String[] |
getNearestInterfacesInHierarchy(String innerClassName)
Return the first interfaces implemented by a level in the class hierarchy (bottom top) |
boolean |
initialize(String className,
URL[] classPath)
Initializes the attribute enhancer. |
void |
insertClassAttribute(Object attribute)
Inserts an attribute on class level. |
void |
insertConstructorAttribute(com.thoughtworks.qdox.model.JavaMethod constructor,
Object attribute)
Inserts an attribute on constructor level. |
void |
insertFieldAttribute(com.thoughtworks.qdox.model.JavaField field,
Object attribute)
Inserts an attribute on field level. |
void |
insertMethodAttribute(com.thoughtworks.qdox.model.JavaMethod method,
Object attribute)
Inserts an attribute on method level. |
static byte[] |
serialize(Object attribute)
Serializes the attribute to byte array. |
void |
write(String destDir)
Writes the enhanced class to file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsmAttributeEnhancer()
Method Detail |
public boolean initialize(String className, URL[] classPath)
initialize
in interface AttributeEnhancer
className
- the class nameclassPath
- the class path
public void insertClassAttribute(Object attribute)
insertClassAttribute
in interface AttributeEnhancer
attribute
- the attributepublic void insertFieldAttribute(com.thoughtworks.qdox.model.JavaField field, Object attribute)
insertFieldAttribute
in interface AttributeEnhancer
field
- the QDox java fieldattribute
- the attributepublic void insertMethodAttribute(com.thoughtworks.qdox.model.JavaMethod method, Object attribute)
insertMethodAttribute
in interface AttributeEnhancer
method
- the QDox java methodattribute
- the attributepublic void insertConstructorAttribute(com.thoughtworks.qdox.model.JavaMethod constructor, Object attribute)
insertConstructorAttribute
in interface AttributeEnhancer
constructor
- the QDox java methodattribute
- the attributepublic void write(String destDir)
write
in interface AttributeEnhancer
destDir
- the destination directorypublic static byte[] serialize(Object attribute)
attribute
- the attribute
public String[] getNearestInterfacesInHierarchy(String innerClassName)
getNearestInterfacesInHierarchy
in interface AttributeEnhancer
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |