public class MethodInvocationClassGenerator extends AbstractGenerator
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
MethodInvocationClassGenerator.MethodInvocationTemplate |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
enhancedClassName
e.g. org.docksidestage.Sea$$EnhancedByLastaDi$$2d66530f (NotNull)
|
protected javassist.CtClass |
methodInvocationCtClass
e.g. org.lastaflute.di.core.aop.javassist.OrgDocksidestageSea$$EnhancedByLastaDi$$2d66530f$$MethodInvocation$$mystic$$0
(NotNull: after setup but null allowed after toClass())
|
classPool, DEFINE_CLASS_METHOD_NAME, defineClassMethod, lookupDefineClassMethod, privateLookupInMethod, protectionDomain, targetClass| コンストラクタと説明 |
|---|
MethodInvocationClassGenerator(javassist.ClassPool classPool,
String enhancedClassName,
String methodInvocationClassName) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
static String |
createArgumentString(Class<?>[] argTypes) |
static String |
createArgumentTypeString(Class<?>[] argTypes) |
void |
createProceedMethod(Method targetMethod,
String invokeSuperMethodName) |
static String |
createProceedMethodSource(Method targetMethod,
String enhancedClassName,
String invokeSuperMethodName) |
static String |
createReturnStatement(Method targetMethod,
String enhancedClassName,
String invokeSuperMethodName) |
static String |
createThrowStatement(Method targetMethod,
String enhancedClassName) |
String |
getEnhancedClassName() |
javassist.CtClass |
getMethodInvocationCtClass() |
static Class<?> |
getTemplateClass() |
protected boolean |
isInterfaceDefineEnabled() |
Class<?> |
toClass(ClassLoader classLoader) |
buildCannotDefineClassMessage, callInterfaceDefineClass, convertCtClassToBytecode, createAspectWeaverPrivilegedAction, createConstructor, createConstructor, createCtClass, createCtClass, createCtClass, createDefaultConstructor, createDefaultConstructor, createDefineClassPrivilegedAction, createMethod, createMethod, createMethod, fromObject, getAndRenameCtClass, getAndRenameCtClass, getClassPool, getDeclaredMethod, getTargetClass, invokeClassLoaderDefineClass, invokeMethodHandlesDefineClass, prepareClassLoaderDefineClassMethod, prepareMethodHandlesLookupDefineClassMethod, prepareMethodHandlesPrivateLookupInMethod, setInterface, setInterfaces, setMethodBody, toClass, toCtClass, toCtClass, toCtClassArray, toCtClassArray, toObjectprotected final String enhancedClassName
protected javassist.CtClass methodInvocationCtClass
public void createProceedMethod(Method targetMethod, String invokeSuperMethodName)
public Class<?> toClass(ClassLoader classLoader)
protected boolean isInterfaceDefineEnabled()
isInterfaceDefineEnabled クラス内 AbstractGeneratorpublic static String createProceedMethodSource(Method targetMethod, String enhancedClassName, String invokeSuperMethodName)
public static String createReturnStatement(Method targetMethod, String enhancedClassName, String invokeSuperMethodName)
public static String createThrowStatement(Method targetMethod, String enhancedClassName)
public static Class<?> getTemplateClass()
public String getEnhancedClassName()
public javassist.CtClass getMethodInvocationCtClass()
Copyright © 2015–2024 The DBFlute Project. All rights reserved.