|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
Bean(JavaBeans)を扱うためのインターフェースです。
| メソッドの概要 | |
java.lang.Class |
getBeanClass()
Beanのクラスを返します。 |
java.lang.reflect.Constructor |
getConstructor(java.lang.Class[] paramTypes)
型に応じた Constructorを返します。 |
java.lang.String[] |
getConstructorParameterNames(java.lang.Class[] paramTypes)
Diiguでエンハンスした Constructorのパラメータ名の配列を返します。 |
java.lang.String[] |
getConstructorParameterNames(java.lang.reflect.Constructor constructor)
Diiguでエンハンスした Constructorのパラメータ名の配列を返します。 |
java.lang.reflect.Field |
getField(int index)
Fieldを返します。 |
java.lang.reflect.Field |
getField(java.lang.String fieldName)
Fieldを返します。 |
int |
getFieldSize()
Fieldの数を返します。 |
java.lang.Object |
getFieldValue(java.lang.String fieldName,
java.lang.Object target)
Fieldの値を返します。 |
java.lang.reflect.Method |
getMethod(java.lang.String methodName)
Methodを返します。 |
java.lang.reflect.Method |
getMethod(java.lang.String methodName,
java.lang.Class[] paramTypes)
Methodを返します。 |
java.lang.String[] |
getMethodNames()
メソッド名の配列を返します。 |
java.lang.reflect.Method |
getMethodNoException(java.lang.String methodName)
Methodを返します。 |
java.lang.reflect.Method |
getMethodNoException(java.lang.String methodName,
java.lang.Class[] paramTypes)
Methodを返します。 |
java.lang.String[] |
getMethodParameterNames(java.lang.reflect.Method method)
Methodのパラメータ名の配列を返します。 |
java.lang.String[] |
getMethodParameterNames(java.lang.String methodName,
java.lang.Class[] paramTypes)
Methodのパラメータ名の配列を返します。 |
java.lang.String[] |
getMethodParameterNamesNoException(java.lang.reflect.Method method)
Methodのパラメータ名の配列を返します。 |
java.lang.String[] |
getMethodParameterNamesNoException(java.lang.String methodName,
java.lang.Class[] paramTypes)
Methodのパラメータ名の配列を返します。 |
java.lang.reflect.Method[] |
getMethods(java.lang.String methodName)
Methodの配列を返します。 |
PropertyDesc |
getPropertyDesc(int index)
PropertyDescを返します。 |
PropertyDesc |
getPropertyDesc(java.lang.String propertyName)
PropertyDescを返します。 |
int |
getPropertyDescSize()
PropertyDescの数を返します。 |
java.lang.reflect.Constructor |
getSuitableConstructor(java.lang.Object[] args)
引数に応じた Constructorを返します。 |
boolean |
hasField(java.lang.String fieldName)
Fieldを持っているかどうかを返します。 |
boolean |
hasMethod(java.lang.String methodName)
Methodがあるかどうか返します。 |
boolean |
hasPropertyDesc(java.lang.String propertyName)
PropertyDescを持っているかどうかを返します。 |
java.lang.Object |
invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] args)
ターゲットのメソッドを呼び出します。 |
java.lang.Object |
newInstance(java.lang.Object[] args)
新しいインスタンスを作成します。 |
| メソッドの詳細 |
public java.lang.Class getBeanClass()
public boolean hasPropertyDesc(java.lang.String propertyName)
PropertyDescを持っているかどうかを返します。
propertyName -
PropertyDescを持っているかどうか
public PropertyDesc getPropertyDesc(java.lang.String propertyName)
throws PropertyNotFoundRuntimeException
PropertyDescを返します。
propertyName -
PropertyDesc
PropertyNotFoundRuntimeException - PropertyDescが見つからない場合public PropertyDesc getPropertyDesc(int index)
PropertyDescを返します。
index -
PropertyDescpublic int getPropertyDescSize()
PropertyDescの数を返します。
public boolean hasField(java.lang.String fieldName)
Fieldを持っているかどうかを返します。
fieldName -
Fieldを持っているかどうか
public java.lang.reflect.Field getField(java.lang.String fieldName)
throws FieldNotFoundRuntimeException
Fieldを返します。
fieldName -
Field
FieldNotFoundRuntimeExceptionpublic java.lang.reflect.Field getField(int index)
Fieldを返します。
index -
Field
public java.lang.Object getFieldValue(java.lang.String fieldName,
java.lang.Object target)
throws FieldNotFoundRuntimeException
Fieldの値を返します。
fieldName - target -
Fieldの値
FieldNotFoundRuntimeException - Fieldが見つからない場合public int getFieldSize()
Fieldの数を返します。
Fieldの数
public java.lang.Object newInstance(java.lang.Object[] args)
throws ConstructorNotFoundRuntimeException
args -
ConstructorNotFoundRuntimeException
public java.lang.reflect.Constructor getSuitableConstructor(java.lang.Object[] args)
throws ConstructorNotFoundRuntimeException
Constructorを返します。
args -
Constructor
ConstructorNotFoundRuntimeExceptionpublic java.lang.reflect.Constructor getConstructor(java.lang.Class[] paramTypes)
Constructorを返します。
paramTypes -
Constructorpublic java.lang.String[] getConstructorParameterNames(java.lang.Class[] paramTypes)
Constructorのパラメータ名の配列を返します。
paramTypes -
public java.lang.String[] getConstructorParameterNames(java.lang.reflect.Constructor constructor)
Constructorのパラメータ名の配列を返します。
constructor -
public java.lang.Object invoke(java.lang.Object target,
java.lang.String methodName,
java.lang.Object[] args)
throws MethodNotFoundRuntimeException
target - methodName - args -
MethodNotFoundRuntimeException - Methodが見つからない場合。
public java.lang.reflect.Method getMethod(java.lang.String methodName)
throws MethodNotFoundRuntimeException
Methodを返します。
methodName -
Method
MethodNotFoundRuntimeException - Methodが見つからない場合。
public java.lang.reflect.Method getMethod(java.lang.String methodName,
java.lang.Class[] paramTypes)
throws MethodNotFoundRuntimeException
Methodを返します。
methodName - paramTypes -
Method
MethodNotFoundRuntimeException - Methodが見つからない場合。public java.lang.reflect.Method getMethodNoException(java.lang.String methodName)
Methodを返します。見つからない場合は、nullを返します。
methodName -
Method
public java.lang.reflect.Method getMethodNoException(java.lang.String methodName,
java.lang.Class[] paramTypes)
Methodを返します。見つからない場合は、nullを返します。
methodName - paramTypes -
Method
public java.lang.reflect.Method[] getMethods(java.lang.String methodName)
throws MethodNotFoundRuntimeException
Methodの配列を返します。
methodName -
MethodNotFoundRuntimeException - Methodが見つからない場合。public boolean hasMethod(java.lang.String methodName)
Methodがあるかどうか返します。
methodName -
Methodがあるかどうかpublic java.lang.String[] getMethodNames()
public java.lang.String[] getMethodParameterNames(java.lang.String methodName,
java.lang.Class[] paramTypes)
throws MethodNotFoundRuntimeException,
IllegalDiiguRuntimeException
Methodのパラメータ名の配列を返します。
methodName - paramTypes -
Methodのパラメータ名の配列
MethodNotFoundRuntimeException - Methodが見つからない場合。
IllegalDiiguRuntimeException - Diiguでエンハンスされていない場合。
public java.lang.String[] getMethodParameterNamesNoException(java.lang.String methodName,
java.lang.Class[] paramTypes)
throws MethodNotFoundRuntimeException
Methodのパラメータ名の配列を返します。
methodName - paramTypes -
Methodのパラメータ名の配列
MethodNotFoundRuntimeException - Methodが見つからない場合。
public java.lang.String[] getMethodParameterNames(java.lang.reflect.Method method)
throws MethodNotFoundRuntimeException,
IllegalDiiguRuntimeException
Methodのパラメータ名の配列を返します。
method -
Methodのパラメータ名の配列
MethodNotFoundRuntimeException - Methodが見つからない場合。
IllegalDiiguRuntimeException - Diiguでエンハンスされていない場合。
public java.lang.String[] getMethodParameterNamesNoException(java.lang.reflect.Method method)
throws MethodNotFoundRuntimeException
Methodのパラメータ名の配列を返します。
method -
Methodのパラメータ名の配列
MethodNotFoundRuntimeException - Methodが見つからない場合。
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||