org.sourceforge.jemm.weaver.analysis
Class CommonTransformations

java.lang.Object
  extended by org.sourceforge.jemm.weaver.analysis.CommonTransformations
All Implemented Interfaces:
Transformation
Direct Known Subclasses:
ChildTransformations, ParentTransformations

public abstract class CommonTransformations
extends java.lang.Object
implements Transformation


Constructor Summary
CommonTransformations()
           
 
Method Summary
 java.lang.String[] dependentTransforms()
          Should return a list of the transformations that this transform requires before it can execute on a class.
 TransformationChain getChain()
           
 DependencyManager getDependencies()
           
 void transform(javassist.CtClass clazz)
          Modifies the passed in CtClass based on the transformation necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sourceforge.jemm.weaver.transformation.Transformation
equals, getTransformationName, hashCode
 

Constructor Detail

CommonTransformations

public CommonTransformations()
                      throws javassist.NotFoundException
Throws:
javassist.NotFoundException
Method Detail

getDependencies

public DependencyManager getDependencies()

getChain

public TransformationChain getChain()

dependentTransforms

public java.lang.String[] dependentTransforms()
Description copied from interface: Transformation
Should return a list of the transformations that this transform requires before it can execute on a class. For the core Transformations this is equal to getClass().getSimpleName().

Specified by:
dependentTransforms in interface Transformation
Returns:
A list of transforms that must run first.

transform

public void transform(javassist.CtClass clazz)
               throws TransformationException
Description copied from interface: Transformation
Modifies the passed in CtClass based on the transformation necessary.

Specified by:
transform in interface Transformation
Parameters:
clazz - The CtClass to modify
Throws:
TransformationException - If an error occurs in the transformation process


Copyright © 2009. All Rights Reserved.