org.codehaus.aspectwerkz.transform.delegation
Class MethodCallTransformer

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

public class MethodCallTransformer
extends Object
implements Transformer

Advises method CALL join points.

Author:
Alexandre Vasseur , Jonas Bonér

Field Summary
 
Fields inherited from interface org.codehaus.aspectwerkz.transform.Transformer
STATUS_HAS_NO_POINTCUT, STATUS_HAS_POINTCUT, STATUS_SKIP
 
Constructor Summary
MethodCallTransformer()
           
 
Method Summary
static boolean classFilter(SystemDefinition definition, ExpressionContext ctx, javassist.CtClass cg)
          Filters the classes to be transformed.
static boolean methodFilterCallee(javassist.CtMethod method)
          Filters the callee methods.
static boolean methodFilterCaller(javassist.CtBehavior method)
          Filters the caller methods.
 void transform(Context context, Klass klass)
          Transforms the call side pointcuts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodCallTransformer

public MethodCallTransformer()
Method Detail

transform

public void transform(Context context,
                      Klass klass)
               throws javassist.NotFoundException,
                      javassist.CannotCompileException
Transforms the call side pointcuts.

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

classFilter

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

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

methodFilterCaller

public static boolean methodFilterCaller(javassist.CtBehavior method)
Filters the caller methods.

Parameters:
method - the method to filter
Returns:
boolean true if the method should be filtered away

methodFilterCallee

public static boolean methodFilterCallee(javassist.CtMethod method)
Filters the callee methods.

Parameters:
method - the name of method to filter
Returns:
boolean true if the method should be filtered away


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