org.codehaus.aspectwerkz.transform.delegation
Class FieldSetGetTransformer

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

public class FieldSetGetTransformer
extends Object
implements Transformer

Advises SET and GET 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
FieldSetGetTransformer()
           
 
Method Summary
static boolean classFilter(javassist.CtClass cg, ExpressionContext ctx, SystemDefinition definition)
          Filters the classes to be transformed.
static boolean getFieldFilter(SystemDefinition definition, ExpressionContext ctx, FieldInfo fieldInfo)
          Filters the GETFIELD's to be transformed.
static boolean methodFilter(javassist.CtBehavior method)
          Filters the methods.
static boolean setFieldFilter(SystemDefinition definition, ExpressionContext ctx, FieldInfo fieldInfo)
          Filters the PUTFIELD's to be transformed.
 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

FieldSetGetTransformer

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

methodFilter

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

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

setFieldFilter

public static boolean setFieldFilter(SystemDefinition definition,
                                     ExpressionContext ctx,
                                     FieldInfo fieldInfo)
Filters the PUTFIELD's to be transformed.

Parameters:
definition - the definition
ctx - the context
fieldInfo - the field info
Returns:

getFieldFilter

public static boolean getFieldFilter(SystemDefinition definition,
                                     ExpressionContext ctx,
                                     FieldInfo fieldInfo)
Filters the GETFIELD's to be transformed.

Parameters:
definition - the definition
ctx - the context
fieldInfo - the field info
Returns:


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