org.quilt.cl
Class ClassTransformer

java.lang.Object
  |
  +--org.quilt.cl.ClassTransformer

public class ClassTransformer
extends java.lang.Object

Transform a JavaClass, if there are any class, method, or graph transformers. Methods whose names begin with "q$$q" are not transformed.

Author:
Jim Dixon

Constructor Summary
ClassTransformer(java.util.List cxf, java.util.List mxf, java.util.List gxf)
          Creates class transformer and lower-level transformers.
 
Method Summary
 void abort()
          Abort the class transformation.
 java.util.Hashtable getClassHash()
           
protected static void makePublic(org.apache.bcel.generic.ClassGen cg)
          Make the class public.
 org.apache.bcel.classfile.JavaClass xform(org.apache.bcel.classfile.JavaClass jc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassTransformer

public ClassTransformer(java.util.List cxf,
                        java.util.List mxf,
                        java.util.List gxf)
Creates class transformer and lower-level transformers. The method transformer is created only if there are processor lists for it or the graph transformer.

Parameters:
cxf - List of class pre/post processors.
mxf - List of method pre/post processors.
Method Detail

getClassHash

public java.util.Hashtable getClassHash()

xform

public org.apache.bcel.classfile.JavaClass xform(org.apache.bcel.classfile.JavaClass jc)

makePublic

protected static void makePublic(org.apache.bcel.generic.ClassGen cg)
Make the class public. XXX Consider making this optional.

Parameters:
cg - ClassGen template for class to be made public.

abort

public void abort()
Abort the class transformation.



Copyright © 2001-2003 Apache Software Foundation. All Rights Reserved.