org.seasar.framework.aop.javassist
クラス EnhancedClassGenerator

java.lang.Object
  拡張org.seasar.framework.aop.javassist.AbstractGenerator
      拡張org.seasar.framework.aop.javassist.EnhancedClassGenerator

public class EnhancedClassGenerator
extends AbstractGenerator

作成者:
koichik

フィールドの概要
protected  javassist.CtClass enhancedClass
           
protected  String enhancedClassName
           
protected  Class targetClass
           
 
クラス org.seasar.framework.aop.javassist.AbstractGenerator から継承したフィールド
classPool, DEFINE_CLASS_METHOD_NAME, defineClassMethod, protectionDomain
 
コンストラクタの概要
EnhancedClassGenerator(javassist.ClassPool classPool, Class targetClass, String enhancedClassName)
           
 
メソッドの概要
 void applyInterType(InterType interType)
           
static String aroundTryCatchBlock(Class[] exceptionTypes, String code)
           
 void createInvokeSuperMethod(Method method, String invokeSuperMethodName)
           
static String createInvokeSuperMethodSource(Method method)
           
 void createTargetMethod(Method method, String methodInvocationClassName)
           
static String createTargetMethodSource(Method method, String methodInvocationClassName)
           
static Class[] normalizeExceptionTypes(Class[] exceptionTypes)
           
 void setupClass()
           
 void setupConstructor()
           
 void setupInterface()
           
 Class toClass(ClassLoader classLoader)
           
 
クラス org.seasar.framework.aop.javassist.AbstractGenerator から継承したメソッド
createConstructor, createConstructor, createCtClass, createCtClass, createCtClass, createDefaultConstructor, createDefaultConstructor, createMethod, createMethod, createMethod, fromObject, getAndRenameCtClass, getAndRenameCtClass, getDeclaredMethod, setInterface, setInterfaces, setMethodBody, toClass, toCtClass, toCtClass, toCtClassArray, toCtClassArray, toObject
 
クラス java.lang.Object から継承したメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

targetClass

protected final Class targetClass

enhancedClassName

protected final String enhancedClassName

enhancedClass

protected javassist.CtClass enhancedClass
コンストラクタの詳細

EnhancedClassGenerator

public EnhancedClassGenerator(javassist.ClassPool classPool,
                              Class targetClass,
                              String enhancedClassName)
メソッドの詳細

createTargetMethod

public void createTargetMethod(Method method,
                               String methodInvocationClassName)

createInvokeSuperMethod

public void createInvokeSuperMethod(Method method,
                                    String invokeSuperMethodName)

applyInterType

public void applyInterType(InterType interType)

toClass

public Class toClass(ClassLoader classLoader)

setupClass

public void setupClass()

setupInterface

public void setupInterface()

setupConstructor

public void setupConstructor()

createTargetMethodSource

public static String createTargetMethodSource(Method method,
                                              String methodInvocationClassName)

createInvokeSuperMethodSource

public static String createInvokeSuperMethodSource(Method method)

normalizeExceptionTypes

public static Class[] normalizeExceptionTypes(Class[] exceptionTypes)

aroundTryCatchBlock

public static String aroundTryCatchBlock(Class[] exceptionTypes,
                                         String code)


Copyright © 2004-2006 The Seasar Foundation. All Rights Reserved.