org.sourceforge.jemm.weaver.transformation
Class AssignedShadowConstructorTransformation
java.lang.Object
org.sourceforge.jemm.weaver.transformation.AbstractClassTransformation
org.sourceforge.jemm.weaver.transformation.AbstractShadowConstructorTransformation
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
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
AssignedShadowConstructorTransformation
public AssignedShadowConstructorTransformation()
throws javassist.NotFoundException
- Creates a ShadowConstructorTransformation.
- Throws:
javassist.NotFoundException
- If a required class definition is not found during initialisation.
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.