|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--edu.ucsb.ccs.jcontractor.transformation.Transformation
Abstract description of a transformation that can be applied to a class. Each transformation is attached to a ClassTransformer, which holds data about the class being transformed, and provides a means for different transformations to share information.
ClassTransformer| Constructor Summary | |
Transformation()
|
|
| Method Summary | |
ClassTransformer |
getTransformer()
Get the transformer to which this transformation belongs. |
void |
setTransformer(ClassTransformer classTransformer)
Set the transformer to which the transformation belongs. |
void |
transform()
Apply the transformation to the current class (as determined by getTransformer().getCurrentClass()). |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Transformation()
| Method Detail |
public void transform()
throws AbortTransformationException
getTransformer().getCurrentClass()). If
acceptClass() returns true, then
transformClass() will be called, and
transformMethod(MethodGen) will be called for each
method in the class.
AbortTransformationException - thrown if an error occurs
that calls for a complete abort. This means that no
subsequent transformations should be executed. Things
are so terriby wrong that it is time to fail with an
error message.public void setTransformer(ClassTransformer classTransformer)
classTransformer - the new transformer.public ClassTransformer getTransformer()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||