org.codehaus.aspectwerkz.transform.delegation
Class AddImplementationTransformer

java.lang.Object
  extended byorg.codehaus.aspectwerkz.transform.delegation.AddImplementationTransformer
All Implemented Interfaces:
Transformer

public class AddImplementationTransformer
extends Object
implements Transformer

Adds an Introductions to classes.

Author:
Jonas Bonér , Alexandre Vasseur

Field Summary
 
Fields inherited from interface org.codehaus.aspectwerkz.transform.Transformer
STATUS_HAS_NO_POINTCUT, STATUS_HAS_POINTCUT, STATUS_SKIP
 
Constructor Summary
AddImplementationTransformer()
           
 
Method Summary
static boolean classFilter(javassist.CtClass cg, ExpressionContext ctx, SystemDefinition definition)
          Filters the classes to be transformed.
 void transform(Context context, Klass klass)
          Adds introductions to a class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddImplementationTransformer

public AddImplementationTransformer()
Method Detail

transform

public void transform(Context context,
                      Klass klass)
               throws javassist.NotFoundException
Adds introductions to a class.

Specified by:
transform in interface Transformer
Parameters:
context - the transformation context
klass - the class
Throws:
javassist.NotFoundException

classFilter

public static boolean classFilter(javassist.CtClass cg,
                                  ExpressionContext ctx,
                                  SystemDefinition definition)
Filters the classes to be transformed.

Parameters:
cg - the class to filter
ctx - the context
definition - the definition
Returns:
boolean true if the method should be filtered away


Copyright © 2002-2004 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.