jasco.runtime.transform
Class FieldGenerator

java.lang.Object
  extended by jasco.runtime.transform.ClassProcessor
      extended by jasco.runtime.transform.MethodProcessor
          extended by jasco.runtime.transform.FieldGenerator
Direct Known Subclasses:
DistributedFieldGenerator, FieldGeneratorForCallbackPerMethod, FieldGeneratorForInlineJutta, ReflectFieldGenerator

public class FieldGenerator
extends MethodProcessor


Constructor Summary
FieldGenerator(ClassProcessor g, java.lang.ClassLoader loader)
           
 
Method Summary
 void addInitCode(java.lang.String code)
           
 void generateCallbackClassField()
           
 java.lang.String generateCallbackObject(javassist.CtMethod method)
           
 void generateClass(java.io.File dir)
           
 java.lang.String generateInitCode(javassist.CtMethod method, java.lang.String methodvar)
           
 java.lang.String generateJascoMethodType()
           
protected  void generateStaticInit()
           
protected  java.lang.ClassLoader getClassLoader()
           
 java.lang.String getInitCode()
           
protected  java.lang.String getMethodString(javassist.CtMethod theMethod, javassist.CtClass javaClass)
           
static java.lang.String getMethodString(javassist.CtMethod theMethod, javassist.CtClass javaClass, java.lang.String newName)
           
 void initClassLoader(java.lang.ClassLoader loader)
           
 boolean processMethod(javassist.CtMethod method, int methodid)
           
 boolean startProcessing(javassist.CtClass clz, java.lang.String name)
           
 
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

FieldGenerator

public FieldGenerator(ClassProcessor g,
                      java.lang.ClassLoader loader)
Method Detail

getClassLoader

protected java.lang.ClassLoader getClassLoader()

processMethod

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

addInitCode

public void addInitCode(java.lang.String code)

generateInitCode

public java.lang.String generateInitCode(javassist.CtMethod method,
                                         java.lang.String methodvar)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

initClassLoader

public void initClassLoader(java.lang.ClassLoader loader)
                     throws java.lang.Exception
Throws:
java.lang.Exception

generateCallbackObject

public java.lang.String generateCallbackObject(javassist.CtMethod method)

generateJascoMethodType

public java.lang.String generateJascoMethodType()

generateCallbackClassField

public void generateCallbackClassField()
                                throws java.lang.Exception
Throws:
java.lang.Exception

generateClass

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

startProcessing

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

getInitCode

public java.lang.String getInitCode()

generateStaticInit

protected void generateStaticInit()
                           throws java.lang.Exception
Throws:
java.lang.Exception

getMethodString

public static java.lang.String getMethodString(javassist.CtMethod theMethod,
                                               javassist.CtClass javaClass,
                                               java.lang.String newName)
                                        throws java.lang.Exception
Throws:
java.lang.Exception

getMethodString

protected java.lang.String getMethodString(javassist.CtMethod theMethod,
                                           javassist.CtClass javaClass)
                                    throws java.lang.Exception
Throws:
java.lang.Exception