public class EnhancedClassGenerator extends AbstractGenerator
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected javassist.CtClass |
enhancedClass |
protected String |
enhancedClassName |
protected Class |
targetClass |
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) |
createConstructor, createConstructor, createCtClass, createCtClass, createCtClass, createDefaultConstructor, createDefaultConstructor, createMethod, createMethod, createMethod, fromObject, getAndRenameCtClass, getAndRenameCtClass, getDeclaredMethod, setInterface, setInterfaces, setMethodBody, toClass, toCtClass, toCtClass, toCtClassArray, toCtClassArray, toObjectprotected final Class targetClass
protected final String enhancedClassName
protected javassist.CtClass enhancedClass
public void createTargetMethod(Method method, String methodInvocationClassName)
method - methodInvocationClassName - public void createInvokeSuperMethod(Method method, String invokeSuperMethodName)
method - invokeSuperMethodName - public void applyInterType(InterType interType)
interType - public Class toClass(ClassLoader classLoader)
classLoader - public void setupClass()
public void setupInterface()
public void setupConstructor()
public static String createTargetMethodSource(Method method, String methodInvocationClassName)
method - methodInvocationClassName - public static String createInvokeSuperMethodSource(Method method)
method - public static Class[] normalizeExceptionTypes(Class[] exceptionTypes)
exceptionTypes - Copyright © 2015 The DBFlute Project. All rights reserved.