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 createInvokeSuperMethod(Method method, String invokeSuperMethodName)
public void applyInterType(InterType interType)
public Class<?> toClass(ClassLoader classLoader)
public void setupClass()
public void setupInterface()
public void setupConstructor()
public static String createTargetMethodSource(Method method, String methodInvocationClassName)
Copyright © 2015–2016 The DBFlute Project. All rights reserved.