public class MethodInvocationClassGenerator extends AbstractGenerator
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
MethodInvocationClassGenerator.MethodInvocationTemplate |
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected String |
enhancedClassName |
protected javassist.CtClass |
methodInvocationClass |
classPool, DEFINE_CLASS_METHOD_NAME, defineClassMethod, protectionDomain| コンストラクタと説明 |
|---|
MethodInvocationClassGenerator(javassist.ClassPool classPool,
String invocationClassName,
String targetClassName) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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) |
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 String enhancedClassName
protected javassist.CtClass methodInvocationClass
public void createProceedMethod(Method targetMethod, String invokeSuperMethodName)
targetMethod - invokeSuperMethodName - public Class toClass(ClassLoader classLoader)
classLoader - public static String createProceedMethodSource(Method targetMethod, String enhancedClassName, String invokeSuperMethodName)
targetMethod - enhancedClassName - invokeSuperMethodName - public static String createReturnStatement(Method targetMethod, String enhancedClassName, String invokeSuperMethodName)
targetMethod - enhancedClassName - invokeSuperMethodName - public static String createThrowStatement(Method targetMethod, String enhancedClassName)
targetMethod - enhancedClassName - public static String createArgumentString(Class[] argTypes)
argTypes - Copyright © 2015 The DBFlute Project. All rights reserved.