public class AnnotationMethodMatcher extends StaticMethodMatcher
AnnotationMatchingPointcutTRUE| コンストラクターと説明 |
|---|
AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType) 指定されたアノテーション型の新しい AnnotationClassFilter を作成します。 |
AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType, boolean checkInherited) 指定されたアノテーション型の新しい AnnotationClassFilter を作成します。 |
| 修飾子と型 | メソッドと説明 |
|---|---|
boolean | equals(ObjectSE other) |
int | hashCode() |
boolean | matches(MethodSE method, ClassSE<?> targetClass) 指定されたメソッドが一致するかどうか静的チェックを実行します。 |
StringSE | toString() |
isRuntime, matchescloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSEpublic AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType)
annotationType - 検索するアノテーション型 public AnnotationMethodMatcher(ClassSE<? extends AnnotationSE> annotationType, boolean checkInherited)
annotationType - 検索するアノテーション型 checkInherited - スーパークラスとインターフェース、およびアノテーション型のメタアノテーションもチェックするかどうか (つまり、標準の Java AccessibleObject.isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation>)SE の代わりに AnnotationUtils.findAnnotation(Method, Class) セマンティクスを使用するかどうか)public boolean matches(MethodSE method, @Nullable ClassSE<?> targetClass)
MethodMatcherfalse を返す場合、または MethodMatcher.isRuntime() メソッドが false を返す場合、実行時チェック(つまり、MethodMatcher.matches(java.lang.reflect.Method, Class, Object[]) 呼び出し)は行われません。method - 候補メソッド targetClass - ターゲットクラス (null の場合があります。この場合、候補クラスは、メソッドの宣言クラスであると見なす必要があります)public int hashCode()
ObjectSE の hashCodeSE public StringSE toString()
ObjectSE の toStringSE