|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
public abstract class AbstractClassTransformation
Abstract parent class for concrete class transformers.
Constructor Summary | |
---|---|
AbstractClassTransformation()
|
Method Summary | |
---|---|
abstract 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()
|
java.lang.String |
toString()
|
abstract void |
transform(javassist.CtClass clazz)
Modifies the passed in CtClass based on the transformation necessary. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractClassTransformation()
Method Detail |
---|
public abstract java.lang.String[] dependentTransforms()
Transformation
dependentTransforms
in interface Transformation
public abstract void transform(javassist.CtClass clazz) throws TransformationException
Transformation
transform
in interface Transformation
clazz
- The CtClass to modify
TransformationException
- If an error occurs in the transformation processpublic boolean equals(java.lang.Object obj)
Transformation
equals
in interface Transformation
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
public int hashCode()
hashCode
in interface Transformation
hashCode
in class java.lang.Object
Object.hashCode()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getTransformationName()
Transformation
getTransformationName
in interface Transformation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |