org.sourceforge.jemm.weaver.transformation
Class AbstractShadowConstructorTransformation

java.lang.Object
  extended by org.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
      extended by org.sourceforge.jemm.weaver.transformation.AbstractShadowConstructorTransformation
All Implemented Interfaces:
Transformation
Direct Known Subclasses:
AssignedShadowConstructorTransformation, SuperCallConstructorTransformation

public abstract class AbstractShadowConstructorTransformation
extends AbstractClassTransformation

An abstract transformation which creates a Constructor: public xxx(ShadowObject so) and allows subclasses to define the compiled body by implementing the getBody() template method.

Author:
Paul Keeble

Constructor Summary
AbstractShadowConstructorTransformation()
           
 
Method Summary
abstract  java.lang.String getBody()
           
 void transform(javassist.CtClass clazz)
          Modifies the passed in CtClass based on the transformation necessary.
 
Methods inherited from class org.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
dependentTransforms, equals, getTransformationName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractShadowConstructorTransformation

public AbstractShadowConstructorTransformation()
                                        throws javassist.NotFoundException
Throws:
javassist.NotFoundException - If a required class definition is not found during initialisation.
Method Detail

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
Specified by:
transform in class AbstractClassTransformation
Parameters:
clazz - The CtClass to modify
Throws:
TransformationException - If an error occurs in the transformation process

getBody

public abstract java.lang.String getBody()


Copyright © 2009. All Rights Reserved.