|
||||||||||
| 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.BcelAttributeEnhancer
Enhances classes with attributes.
Implementation based on BCEL. Based on code from the Attrib4j project by Mark Pollack and Ted Neward (http://attrib4j.sourceforge.net/).
| Constructor Summary | |
BcelAttributeEnhancer()
|
|
| Method Summary | |
java.lang.String[] |
getNearestInterfacesInHierarchy(java.lang.String innerClassName)
Return the first interfaces implemented by a level in the class hierarchy (bottom top) |
boolean |
initialize(java.lang.String className,
java.lang.String classPath)
Initializes the attribute enhancer. |
void |
insertClassAttribute(java.lang.Object attribute)
Inserts an attribute on class level. |
void |
insertFieldAttribute(com.thoughtworks.qdox.model.JavaField field,
java.lang.Object attribute)
Inserts an attribute on field level. |
void |
insertMethodAttribute(com.thoughtworks.qdox.model.JavaMethod method,
java.lang.Object attribute)
Inserts an attribute on method level. |
static byte[] |
serialize(java.lang.Object attribute)
Serializes the attribute to byte array. |
void |
write(java.lang.String destDir)
Writes the enhanced class to file. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BcelAttributeEnhancer()
| Method Detail |
public boolean initialize(java.lang.String className,
java.lang.String classPath)
initialize in interface AttributeEnhancerclassName - the class nameclassPath - the class path
public void insertClassAttribute(java.lang.Object attribute)
insertClassAttribute in interface AttributeEnhancerattribute - the attribute
public void insertFieldAttribute(com.thoughtworks.qdox.model.JavaField field,
java.lang.Object attribute)
insertFieldAttribute in interface AttributeEnhancerfield - the QDox java fieldattribute - the attribute
public void insertMethodAttribute(com.thoughtworks.qdox.model.JavaMethod method,
java.lang.Object attribute)
insertMethodAttribute in interface AttributeEnhancermethod - the QDox java methodattribute - the attributepublic void write(java.lang.String destDir)
write in interface AttributeEnhancerdestDir - the destination directorypublic static byte[] serialize(java.lang.Object attribute)
attribute - the attribute
public java.lang.String[] getNearestInterfacesInHierarchy(java.lang.String innerClassName)
getNearestInterfacesInHierarchy in interface AttributeEnhancer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||