インターフェース AnnotatedMethod<X>
- 型パラメーター:
X- 宣言型
- すべてのスーパーインターフェース:
Annotated、AnnotatedCallable<X>、AnnotatedMember<X>
Java 型のメソッドを表します。
- 作成者:
- Gavin King, Pete Muir
- 関連事項:
方法の概要
修飾子と型メソッド説明default <T extends AnnotationSE>
SetSE<T>getAnnotations(ClassSE<T> annotationType) 特定のアノテーション型のプログラム要素アノテーションを取得します。基になるMethodSE を取得します。インターフェース jakarta.enterprise.inject.spi.Annotated から継承されたメソッド
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresentインターフェース jakarta.enterprise.inject.spi.AnnotatedCallable から継承されたメソッド
getParametersインターフェース jakarta.enterprise.inject.spi.AnnotatedMember から継承されたメソッド
getDeclaringType, isStatic
方法の詳細
getJavaMember
MethodSE getJavaMember()基になる
MethodSE を取得します。- 次で指定:
- インターフェース
AnnotatedMember<X>内のgetJavaMember - 戻り値:
MethodSE
getAnnotations
インターフェースからコピーされた説明:Annotated特定のアノテーション型のプログラム要素アノテーションを取得します。
このメソッドは、この型の繰り返し可能なアノテーションを含むすべてのアノテーションを返します。このメソッドの動作は、繰り返し可能なアノテーションがサポートされている
AnnotatedElement.getAnnotationsByType(Class)SE と同じ動作を意図しています。- 次で指定:
- インターフェース
Annotated内のgetAnnotations - 型パラメーター:
T- アノテーションの型- パラメーター:
annotationType- アノテーション型のクラス- 戻り値:
- 指定されたアノテーション型のプログラム要素アノテーション、または空のコレクション