|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.framework.aop.intertype.AbstractInterType
InterType
の抽象クラスです。
フィールドの概要 | |
protected ClassPool |
classPool
クラスプールです。 |
static String |
COMPONENT
Componentアノテーションです。 |
protected CtClass |
enhancedClass
エンハンスされたクラスです。 |
protected Class |
targetClass
ターゲットクラスです。 |
コンストラクタの概要 | |
AbstractInterType()
|
メソッドの概要 | |
protected void |
addConstant(Class type,
String name,
String init)
定数を追加します。 |
protected void |
addField(Class type,
String name)
フィールドを追加します。 |
protected void |
addField(Class type,
String name,
String init)
フィールドを追加します。 |
protected void |
addField(int modifiers,
Class type,
String name)
フィールドを追加します。 |
protected void |
addField(int modifiers,
Class type,
String name,
CtField.Initializer init)
フィールドを追加します。 |
protected void |
addField(int modifiers,
Class type,
String name,
String init)
フィールドを追加します。 |
protected void |
addField(String src)
フィールドを追加します。 |
protected void |
addInterface(Class clazz)
インターフェースを追加します。 |
protected void |
addMethod(Class returnType,
String name,
Class[] paramTypes,
Class[] exceptionTypes,
String src)
メソッドを追加します。 |
protected void |
addMethod(Class returnType,
String name,
Class[] paramTypes,
String src)
メソッドを追加します。 |
protected void |
addMethod(Class returnType,
String name,
String src)
メソッドを追加します。 |
protected void |
addMethod(int modifiers,
Class returnType,
String name,
Class[] paramTypes,
Class[] exceptionTypes,
String src)
メソッドを追加します。 |
protected void |
addMethod(String src)
メソッドを追加します。 |
protected void |
addMethod(String name,
Class[] paramTypes,
Class[] exceptionTypes,
String src)
メソッドを追加します。 |
protected void |
addMethod(String name,
Class[] paramTypes,
String src)
メソッドを追加します。 |
protected void |
addMethod(String name,
String src)
メソッドを追加します。 |
protected void |
addStaticField(Class type,
String name)
静的フィールドを追加します。 |
protected void |
addStaticField(Class type,
String name,
String init)
静的フィールドを追加します。 |
protected void |
addStaticField(int modifiers,
Class type,
String name)
静的フィールドを追加します。 |
protected void |
addStaticField(int modifiers,
Class type,
String name,
CtField.Initializer init)
静的フィールドを追加します。 |
protected void |
addStaticField(int modifiers,
Class type,
String name,
String init)
静的フィールドを追加します。 |
protected void |
addStaticMethod(Class returnType,
String name,
Class[] paramTypes,
Class[] exceptionTypes,
String src)
静的メソッドを追加します。 |
protected void |
addStaticMethod(Class returnType,
String name,
Class[] paramTypes,
String src)
静的メソッドを追加します。 |
protected void |
addStaticMethod(Class returnType,
String name,
String src)
静的メソッドを追加します。 |
protected void |
addStaticMethod(String name,
Class[] paramTypes,
Class[] exceptionTypes,
String src)
静的メソッドを追加します。 |
protected void |
addStaticMethod(String name,
Class[] paramTypes,
String src)
静的メソッドを追加します。 |
protected void |
addStaticMethod(String name,
String src)
静的メソッドを追加します。 |
protected ClassPool |
getClassPool()
クラスプールを返します。 |
protected CtClass |
getEnhancedClass()
エンハンスされたクラスを返します。 |
protected Class |
getTargetClass()
ターゲットクラスを返します。 |
protected abstract void |
introduce()
クラス構造を変更します。 |
void |
introduce(Class targetClass,
CtClass enhancedClass)
クラスの構造を変更します。 |
protected CtClass |
toCtClass(Class clazz)
コンパイル時のクラスに変換します。 |
protected CtClass[] |
toCtClassArray(Class[] classes)
コンパイル時のクラスの配列に変換します。 |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
public static final String COMPONENT
protected Class targetClass
protected CtClass enhancedClass
protected ClassPool classPool
コンストラクタの詳細 |
public AbstractInterType()
メソッドの詳細 |
public void introduce(Class targetClass, CtClass enhancedClass)
InterType
の記述:
InterType
内の introduce
targetClass
- enhancedClass
- protected abstract void introduce() throws CannotCompileException, NotFoundException
CannotCompileException
- コンパイルできない場合
NotFoundException
- 何かが見つからない場合protected Class getTargetClass()
protected CtClass getEnhancedClass()
protected ClassPool getClassPool()
protected void addInterface(Class clazz)
clazz
- インターフェースprotected void addField(Class type, String name)
type
- フィールドの型name
- フィールド名protected void addField(Class type, String name, String init)
type
- フィールドの型name
- フィールド名init
- 初期化情報protected void addStaticField(Class type, String name)
type
- フィールドの型name
- フィールド名protected void addStaticField(Class type, String name, String init)
type
- フィールドの型name
- フィールド名init
- 初期化情報protected void addConstant(Class type, String name, String init)
type
- フィールドの型name
- フィールド名init
- 初期化情報protected void addStaticField(int modifiers, Class type, String name)
modifiers
- アクセス修飾子type
- フィールドの型name
- フィールド名protected void addStaticField(int modifiers, Class type, String name, String init)
modifiers
- アクセス修飾子type
- フィールドの型name
- フィールド名init
- 初期化情報protected void addStaticField(int modifiers, Class type, String name, CtField.Initializer init)
modifiers
- アクセス修飾子type
- フィールドの型name
- フィールド名init
- 初期化情報protected void addField(int modifiers, Class type, String name)
modifiers
- アクセス修飾子type
- フィールドの型name
- フィールド名protected void addField(String src)
src
- ソースprotected void addField(int modifiers, Class type, String name, String init)
modifiers
- アクセス修飾子type
- フィールドの型name
- フィールド名init
- 初期化情報protected void addField(int modifiers, Class type, String name, CtField.Initializer init)
modifiers
- アクセス修飾子type
- フィールド型name
- フィールド名init
- 初期化情報protected void addMethod(String name, String src)
name
- メソッド名src
- ソースprotected void addMethod(String name, Class[] paramTypes, String src)
name
- メソッド名paramTypes
- パラメータの型の配列src
- ソースprotected void addMethod(String name, Class[] paramTypes, Class[] exceptionTypes, String src)
name
- メソッド名paramTypes
- パラメータの型の配列exceptionTypes
- 例外クラスの配列src
- ソースprotected void addMethod(Class returnType, String name, String src)
returnType
- 戻り値の型name
- メソッド名src
- ソースprotected void addMethod(Class returnType, String name, Class[] paramTypes, String src)
returnType
- 戻り値の型name
- メソッド名paramTypes
- パラメータの型の配列src
- ソースprotected void addMethod(Class returnType, String name, Class[] paramTypes, Class[] exceptionTypes, String src)
returnType
- 戻り値の型name
- メソッド名paramTypes
- パラメータの型の配列exceptionTypes
- 例外の型の配列src
- ソースprotected void addStaticMethod(String name, String src)
name
- メソッド名src
- ソースprotected void addStaticMethod(String name, Class[] paramTypes, String src)
name
- メソッド名paramTypes
- パラメータの型の配列src
- ソースprotected void addStaticMethod(String name, Class[] paramTypes, Class[] exceptionTypes, String src)
name
- メソッド名paramTypes
- パラメータの型の配列exceptionTypes
- 例外の型の配列src
- ソースprotected void addStaticMethod(Class returnType, String name, String src)
returnType
- 戻り値の型name
- メソッド名src
- ソースprotected void addStaticMethod(Class returnType, String name, Class[] paramTypes, String src)
returnType
- 戻り値の型name
- メソッド名paramTypes
- パラメータの型の配列src
- ソースprotected void addStaticMethod(Class returnType, String name, Class[] paramTypes, Class[] exceptionTypes, String src)
returnType
- 戻り値の型name
- メソッド名paramTypes
- パラメータの型の配列exceptionTypes
- 例外の型の配列src
- ソースprotected void addMethod(int modifiers, Class returnType, String name, Class[] paramTypes, Class[] exceptionTypes, String src)
modifiers
- アクセス修飾子returnType
- 戻り値の型name
- メソッド名paramTypes
- パラメータの型の配列exceptionTypes
- 例外の型の配列src
- ソースprotected void addMethod(String src)
src
- ソースprotected CtClass toCtClass(Class clazz)
clazz
- 元のクラス
protected CtClass[] toCtClassArray(Class[] classes)
classes
- 元のクラスの配列
|
|||||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |