|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Transformation
A ClassTransformation uses JavaAssist to update the class byte code. All ClassTransformation classes must implement equals and hashcode as they are stored in collections. The equality checks must make sure that transformations to do the same thing will result in the equality check returning true.
Method Summary | |
---|---|
java.lang.String[] |
dependentTransforms()
Should return a list of the transformations that this transform requires before it can execute on a class. |
boolean |
equals(java.lang.Object obj)
Note that the equals check is not just about equality, but whether the transforms are equivalent. |
java.lang.String |
getTransformationName()
When the dependencies for a Transformation are being determined it is this name which should be listed in the dependency list. |
int |
hashCode()
|
void |
transform(javassist.CtClass clazz)
Modifies the passed in CtClass based on the transformation necessary. |
Method Detail |
---|
void transform(javassist.CtClass clazz) throws TransformationException
clazz
- The CtClass to modify
TransformationException
- If an error occurs in the transformation processjava.lang.String[] dependentTransforms()
java.lang.String getTransformationName()
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the object to check for equality.
For the definition of equals
,
Which implements a default equals and
hashcode
int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |