org.sourceforge.jemm.weaver.transformation
Class MethodAnnotationTransformation

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

public class MethodAnnotationTransformation
extends AbstractClassTransformation


Nested Class Summary
static class MethodAnnotationTransformation.FieldDetails
           
 
Constructor Summary
MethodAnnotationTransformation()
           
 
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.util.Collection<MethodAnnotationTransformation.FieldDetails> findAccessedAttributes(javassist.CtMethod method)
           
 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
equals, getTransformationName, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodAnnotationTransformation

public MethodAnnotationTransformation()
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

findAccessedAttributes

public java.util.Collection<MethodAnnotationTransformation.FieldDetails> findAccessedAttributes(javassist.CtMethod method)

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.