jasco.runtime.transform
Class FieldGenerator
java.lang.Object
jasco.runtime.transform.ClassProcessor
jasco.runtime.transform.MethodProcessor
jasco.runtime.transform.FieldGenerator
- Direct Known Subclasses:
- DistributedFieldGenerator, FieldGeneratorForCallbackPerMethod, FieldGeneratorForInlineJutta, ReflectFieldGenerator
public class FieldGenerator
- extends MethodProcessor
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 |
FieldGenerator
public FieldGenerator(ClassProcessor g,
java.lang.ClassLoader loader)
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