public class AnnotationDetectionMethodCallback<A extends AnnotationSE> extends ObjectSE implements ReflectionUtils.MethodCallback
ReflectionUtils.MethodCallback。| コンストラクターと説明 |
|---|
AnnotationDetectionMethodCallback(ClassSE<A> annotationType) 指定されたアノテーション型に対して新しい AnnotationDetectionMethodCallback を作成します。 |
AnnotationDetectionMethodCallback(ClassSE<A> annotationType, boolean enforceUniqueness) 指定されたアノテーション型に対して新しい AnnotationDetectionMethodCallback を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
void | doWith(MethodSE method) |
A | getAnnotation() |
MethodSE | getMethod() |
MethodSE | getRequiredMethod() アノテーションが設定されたメソッドを返します。 |
boolean | hasFoundAnnotation() アノテーションが見つかったかどうかを返します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic AnnotationDetectionMethodCallback(ClassSE<A> annotationType)
AnnotationDetectionMethodCallback を作成します。annotationType - null であってはなりません。public AnnotationDetectionMethodCallback(ClassSE<A> annotationType, boolean enforceUniqueness)
AnnotationDetectionMethodCallback を作成します。annotationType - null であってはなりません。enforceUniqueness - アノテーション付きのメソッドが複数見つかった場合に失敗するかどうか。public MethodSE getRequiredMethod()
IllegalStateExceptionSE - アノテーションが設定されたメソッドが見つからなかった場合。public boolean hasFoundAnnotation()
public void doWith(MethodSE method) throws IllegalArgumentExceptionSE, IllegalAccessExceptionSE
ReflectionUtils.MethodCallback の doWith IllegalArgumentExceptionSEIllegalAccessExceptionSECopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.