public class EnhancedClassGenerator extends AbstractGenerator
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
enhancedClassName |
protected javassist.CtClass |
enhancedCtClass |
classPool, DEFINE_CLASS_METHOD_NAME, defineClassMethod, lookupDefineClassMethod, privateLookupInMethod, protectionDomain, targetClass| コンストラクタと説明 |
|---|
EnhancedClassGenerator(javassist.ClassPool classPool,
Class<?> targetClass,
String enhancedClassName) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
applyInterType(InterType interType) |
static String |
aroundTryCatchBlock(Class<?>[] exceptionTypes,
String code) |
protected boolean |
canCreateExplicitConstructor(int modifier,
Package pkg) |
void |
createInvokeSuperMethod(Method method,
String invokeSuperMethodName) |
static String |
createInvokeSuperMethodSource(Method method) |
void |
createTargetMethod(Method method,
String methodInvocationClassName) |
static String |
createTargetMethodSource(Method method,
String methodInvocationClassName) |
String |
getEnhancedClassName() |
javassist.CtClass |
getEnhancedCtClass() |
Class<?> |
getTargetClass() |
static Class<?>[] |
normalizeExceptionTypes(Class<?>[] exceptionTypes) |
void |
setupClass() |
void |
setupConstructor() |
void |
setupInterface() |
Class<?> |
toClass(ClassLoader classLoader) |
buildCannotDefineClassMessage, callInterfaceDefineClass, convertCtClassToBytecode, createAspectWeaverPrivilegedAction, createConstructor, createConstructor, createCtClass, createCtClass, createCtClass, createDefaultConstructor, createDefaultConstructor, createDefineClassPrivilegedAction, createMethod, createMethod, createMethod, fromObject, getAndRenameCtClass, getAndRenameCtClass, getClassPool, getDeclaredMethod, invokeClassLoaderDefineClass, invokeMethodHandlesDefineClass, isInterfaceDefineEnabled, prepareClassLoaderDefineClassMethod, prepareMethodHandlesLookupDefineClassMethod, prepareMethodHandlesPrivateLookupInMethod, setInterface, setInterfaces, setMethodBody, toClass, toCtClass, toCtClass, toCtClassArray, toCtClassArray, toObjectprotected final String enhancedClassName
protected javassist.CtClass enhancedCtClass
public void setupClass()
public void setupInterface()
public void setupConstructor()
protected boolean canCreateExplicitConstructor(int modifier,
Package pkg)
public void createInvokeSuperMethod(Method method, String invokeSuperMethodName)
public void applyInterType(InterType interType)
public Class<?> toClass(ClassLoader classLoader)
public static String createTargetMethodSource(Method method, String methodInvocationClassName)
public static String aroundTryCatchBlock(Class<?>[] exceptionTypes, String code)
public Class<?> getTargetClass()
getTargetClass クラス内 AbstractGeneratorpublic String getEnhancedClassName()
public javassist.CtClass getEnhancedCtClass()
Copyright © 2015–2024 The DBFlute Project. All rights reserved.