org.codehaus.aspectwerkz.attribdef.transform
Class IntroductionTransformer

java.lang.Object
  extended byorg.codehaus.aspectwerkz.attribdef.transform.IntroductionTransformer

public class IntroductionTransformer
extends java.lang.Object

Handles the attribdef specific algorithms for adding the introductions.

Author:
Jonas Bonér, Alexandre Vasseur

Constructor Summary
IntroductionTransformer()
           
 
Method Summary
static void addInterfaceIntroductions(AspectWerkzDefinition definition, org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.ConstantPoolGen cpg, Context context, ClassMetaData classMetaData)
          Adds the interface introductions to the class.
static void addMethodIntroductions(AspectWerkzDefinition definition, Context context, ClassMetaData classMetaData, org.apache.bcel.generic.ClassGen cg, org.apache.bcel.generic.ConstantPoolGen cpg, org.apache.bcel.generic.InstructionFactory factory, AddImplementationTransformer transformer)
          Adds introductions to the class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntroductionTransformer

public IntroductionTransformer()
Method Detail

addInterfaceIntroductions

public static void addInterfaceIntroductions(AspectWerkzDefinition definition,
                                             org.apache.bcel.generic.ClassGen cg,
                                             org.apache.bcel.generic.ConstantPoolGen cpg,
                                             Context context,
                                             ClassMetaData classMetaData)
Adds the interface introductions to the class.

Parameters:
definition - the definition
cg - the class gen
cpg - the constant pool gen
classMetaData - the class meta-data

addMethodIntroductions

public static void addMethodIntroductions(AspectWerkzDefinition definition,
                                          Context context,
                                          ClassMetaData classMetaData,
                                          org.apache.bcel.generic.ClassGen cg,
                                          org.apache.bcel.generic.ConstantPoolGen cpg,
                                          org.apache.bcel.generic.InstructionFactory factory,
                                          AddImplementationTransformer transformer)
Adds introductions to the class.

Parameters:
definition - the definition
context - the transformation context
classMetaData - the class meta-data
cg - the class gen
cpg - the constant pool gen
factory - the instruction objectfactory
transformer - the transformer


Copyright (c) 2002-2004 The AspectWerkz Team. All Rights Reserved.