|
||||||||||
| 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
public class 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 AttributeEnhancerclassName - the class nameclassPath - the class path
public void insertClassAttribute(Object attribute)
insertClassAttribute in interface AttributeEnhancerattribute - the attribute
public void insertFieldAttribute(com.thoughtworks.qdox.model.JavaField field,
Object attribute)
insertFieldAttribute in interface AttributeEnhancerfield - the QDox java fieldattribute - the attribute
public void insertMethodAttribute(com.thoughtworks.qdox.model.JavaMethod method,
Object attribute)
insertMethodAttribute in interface AttributeEnhancermethod - the QDox java methodattribute - the attribute
public void insertConstructorAttribute(com.thoughtworks.qdox.model.JavaMethod constructor,
Object attribute)
insertConstructorAttribute in interface AttributeEnhancerconstructor - the QDox java methodattribute - the attributepublic void write(String destDir)
write in interface AttributeEnhancerdestDir - 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 | |||||||||