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