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