org.sourceforge.jemm.weaver.transformation
Class AssignedShadowConstructorTransformation

java.lang.Object
  extended by org.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
      extended by org.sourceforge.jemm.weaver.transformation.AbstractShadowConstructorTransformation
          extended by org.sourceforge.jemm.weaver.transformation.AssignedShadowConstructorTransformation
All Implemented Interfaces:
Transformation

public class AssignedShadowConstructorTransformation
extends AbstractShadowConstructorTransformation

Adds a constructor to the Class which takes a ShadowObject instances. Used by jemm to initialise objects to both assign the shadow object as well as avoid any other type of initialisation.

Author:
Paul Keeble

Constructor Summary
AssignedShadowConstructorTransformation()
          Creates a ShadowConstructorTransformation.
 
Method Summary
 java.lang.String[] dependentTransforms()
          Should return a list of the transformations that this transform requires before it can execute on a class.
 java.lang.String getBody()
           
 
Methods inherited from class org.sourceforge.jemm.weaver.transformation.AbstractShadowConstructorTransformation
transform
 
Methods inherited from class org.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
equals, getTransformationName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssignedShadowConstructorTransformation

public AssignedShadowConstructorTransformation()
                                        throws javassist.NotFoundException
Creates a ShadowConstructorTransformation.

Throws:
javassist.NotFoundException - If a required class definition is not found during initialisation.
Method Detail

getBody

public java.lang.String getBody()
Specified by:
getBody in class AbstractShadowConstructorTransformation

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
Specified by:
dependentTransforms in class AbstractClassTransformation
Returns:
A list of transforms that must run first.


Copyright © 2009. All Rights Reserved.