jasco.runtime.transform
Class CallbackPerMethodGenerator

java.lang.Object
  extended by jasco.runtime.transform.ClassProcessor
      extended by jasco.runtime.transform.MethodProcessor
          extended by jasco.runtime.transform.CallbackPerMethodGenerator

public class CallbackPerMethodGenerator
extends MethodProcessor


Constructor Summary
CallbackPerMethodGenerator(ClassProcessor g)
           
 
Method Summary
protected  void addGetArgsMethod(javassist.CtClass callback, javassist.CtMethod oldMethod)
           
protected  void addGetObjectMethod(javassist.CtClass callback, javassist.CtMethod oldMethod)
           
 void generateClass(java.io.File dir)
           
 void generateDaClass(javassist.CtClass clz, java.io.File dir)
           
 boolean processMethod(javassist.CtMethod method, int methodid)
           
 boolean startProcessing(javassist.CtClass clz, java.lang.String classname)
           
 
Methods inherited from class jasco.runtime.transform.MethodProcessor
getProcessMethods, setProcessMethods
 
Methods inherited from class jasco.runtime.transform.ClassProcessor
accessField, addField, addNoAspects, debug, getClassPool, getFieldClass, getFieldClassName, getNewMethod, getNewMethodName, getSignatureSourceName, getSourceName, getTargetByteCode, getTargetClass, getUniqueClassID, makeDir, makePrimitiveObject, process, process, setClassPool, setFieldClass, setTargetClass, setUseFieldClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallbackPerMethodGenerator

public CallbackPerMethodGenerator(ClassProcessor g)
Method Detail

generateClass

public void generateClass(java.io.File dir)
                   throws java.lang.Exception
Throws:
java.lang.Exception

generateDaClass

public void generateDaClass(javassist.CtClass clz,
                            java.io.File dir)
                     throws java.lang.Exception
Throws:
java.lang.Exception

startProcessing

public boolean startProcessing(javassist.CtClass clz,
                               java.lang.String classname)
                        throws java.lang.Exception
Overrides:
startProcessing in class MethodProcessor
Throws:
java.lang.Exception

processMethod

public boolean processMethod(javassist.CtMethod method,
                             int methodid)
                      throws java.lang.Exception
Specified by:
processMethod in class MethodProcessor
Throws:
java.lang.Exception

addGetObjectMethod

protected void addGetObjectMethod(javassist.CtClass callback,
                                  javassist.CtMethod oldMethod)
                           throws java.lang.Exception
Throws:
java.lang.Exception

addGetArgsMethod

protected void addGetArgsMethod(javassist.CtClass callback,
                                javassist.CtMethod oldMethod)
                         throws java.lang.Exception
Throws:
java.lang.Exception