|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.jface.util.AnnotationUtil
public class AnnotationUtil
アノテーションを持つクラスに対するユーティリティクラスです。
コンストラクタの概要 | |
---|---|
AnnotationUtil()
|
メソッドの概要 | |
---|---|
static List<Field> |
getAnnotatedFields(Class<?> clazz,
Class<? extends Annotation> annotationClass)
特定のアノテーションが付加されたフィールドを取得します。 |
static List<org.seasar.framework.beans.PropertyDesc> |
getAnnotatedPropertyDescs(Class<?> clazz,
Class<? extends Annotation> annotationClass)
特定のアノテーションが付加されたフィールドに対応する PropertyDesc を取得します。 |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public AnnotationUtil()
メソッドの詳細 |
---|
public static List<Field> getAnnotatedFields(Class<?> clazz, Class<? extends Annotation> annotationClass)
class
で指定されたクラスから annotationClass
で指定されたアノテーションが付加されたフィールドオブジェクトのリストを返します。
フィールドは、親クラスまでさかのぼってすべて検索されます。
clazz
- 対象クラスannotationClass
- 対象アノテーション
public static List<org.seasar.framework.beans.PropertyDesc> getAnnotatedPropertyDescs(Class<?> clazz, Class<? extends Annotation> annotationClass)
PropertyDesc
を取得します。
class
で指定されたクラスから annotationClass
で指定されたアノテーションが付加されたフィールドオブジェクトを検索し、それに対応する PropertyDesc
オブジェクトのリストを返します。 フィールドは、親クラスまでさかのぼってすべて検索されます。
clazz
- 対象クラスannotationClass
- 対象アノテーション
PropertyDesc
のリスト
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |