org.seasar.framework.aop.javassist
クラス AbstractGenerator
java.lang.Object
org.seasar.framework.aop.javassist.AbstractGenerator
- 直系の既知のサブクラス:
- EnhancedClassGenerator, MethodInvocationClassGenerator
- public class AbstractGenerator
- extends Object
バイトコードを生成するための抽象クラスです。
- 作成者:
- koichik
メソッドの概要 |
protected CtConstructor |
createConstructor(CtClass clazz,
Constructor constructor)
|
protected CtConstructor |
createConstructor(CtClass clazz,
CtClass[] parameterTypes,
CtClass[] exceptionTypes)
|
protected CtClass |
createCtClass(String name)
|
protected CtClass |
createCtClass(String name,
Class superClass)
|
protected CtClass |
createCtClass(String name,
CtClass superClass)
|
protected CtConstructor |
createDefaultConstructor(Class clazz)
|
protected CtConstructor |
createDefaultConstructor(CtClass clazz)
|
protected CtMethod |
createMethod(CtClass clazz,
int modifier,
Class returnType,
String methodName,
Class[] parameterTypes,
Class[] exceptionTypes,
String body)
|
protected CtMethod |
createMethod(CtClass clazz,
Method method,
String body)
|
protected CtMethod |
createMethod(CtClass clazz,
String src)
|
protected static String |
fromObject(Class type,
String expr)
|
protected CtClass |
getAndRenameCtClass(Class orgClass,
String newName)
|
protected CtClass |
getAndRenameCtClass(String orgName,
String newName)
|
protected CtMethod |
getDeclaredMethod(CtClass clazz,
String name,
CtClass[] argTypes)
|
protected void |
setInterface(CtClass clazz,
Class interfaceType)
|
protected void |
setInterfaces(CtClass clazz,
Class[] interfaces)
|
protected void |
setMethodBody(CtMethod method,
String src)
|
Class |
toClass(ClassLoader classLoader,
CtClass ctClass)
CtClass をClass に変更します。 |
protected CtClass |
toCtClass(Class clazz)
|
protected CtClass |
toCtClass(String className)
|
protected CtClass[] |
toCtClassArray(Class[] classes)
|
protected CtClass[] |
toCtClassArray(String[] classNames)
|
protected static String |
toObject(Class type,
String expr)
|
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFINE_CLASS_METHOD_NAME
protected static final String DEFINE_CLASS_METHOD_NAME
- 関連項目:
- 定数フィールド値
protectionDomain
protected static final ProtectionDomain protectionDomain
defineClassMethod
protected static Method defineClassMethod
classPool
protected final ClassPool classPool
AbstractGenerator
protected AbstractGenerator(ClassPool classPool)
fromObject
protected static String fromObject(Class type,
String expr)
toObject
protected static String toObject(Class type,
String expr)
toCtClass
protected CtClass toCtClass(Class clazz)
toCtClass
protected CtClass toCtClass(String className)
toCtClassArray
protected CtClass[] toCtClassArray(String[] classNames)
toCtClassArray
protected CtClass[] toCtClassArray(Class[] classes)
createCtClass
protected CtClass createCtClass(String name)
createCtClass
protected CtClass createCtClass(String name,
Class superClass)
createCtClass
protected CtClass createCtClass(String name,
CtClass superClass)
getAndRenameCtClass
protected CtClass getAndRenameCtClass(Class orgClass,
String newName)
getAndRenameCtClass
protected CtClass getAndRenameCtClass(String orgName,
String newName)
toClass
public Class toClass(ClassLoader classLoader,
CtClass ctClass)
CtClass
をClass
に変更します。
- パラメータ:
classLoader
- ctClass
-
- 戻り値:
setInterface
protected void setInterface(CtClass clazz,
Class interfaceType)
setInterfaces
protected void setInterfaces(CtClass clazz,
Class[] interfaces)
createDefaultConstructor
protected CtConstructor createDefaultConstructor(Class clazz)
createDefaultConstructor
protected CtConstructor createDefaultConstructor(CtClass clazz)
createConstructor
protected CtConstructor createConstructor(CtClass clazz,
Constructor constructor)
createConstructor
protected CtConstructor createConstructor(CtClass clazz,
CtClass[] parameterTypes,
CtClass[] exceptionTypes)
getDeclaredMethod
protected CtMethod getDeclaredMethod(CtClass clazz,
String name,
CtClass[] argTypes)
createMethod
protected CtMethod createMethod(CtClass clazz,
String src)
createMethod
protected CtMethod createMethod(CtClass clazz,
Method method,
String body)
createMethod
protected CtMethod createMethod(CtClass clazz,
int modifier,
Class returnType,
String methodName,
Class[] parameterTypes,
Class[] exceptionTypes,
String body)
setMethodBody
protected void setMethodBody(CtMethod method,
String src)
Copyright © 2004-2007 The Seasar Foundation. All Rights Reserved.