public class AnnotationMethodMatcher extends StaticMethodMatcher
AnnotationMatchingPointcut
TRUE
コンストラクターと説明 |
---|
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, matches
cloneSE, finalizeSE, getClassSE, notifySE, notifyAllSE, waitSE, waitSE, waitSE
public 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 の代わりに AnnotatedElementUtils.hasAnnotation(java.lang.reflect.AnnotatedElement, java.lang.Class<? extends java.lang.annotation.Annotation>)
セマンティクスを使用するかどうか)public boolean matches(MethodSE method, ClassSE<?> targetClass)
MethodMatcher
これが false
を返す場合、または MethodMatcher.isRuntime()
メソッドが false
を返す場合、ランタイムチェックは行われません(つまり、MethodMatcher.matches(java.lang.reflect.Method, Class, Object[])
呼び出しは行われません)。
method
- 候補メソッド targetClass
- ターゲットクラス public int hashCode()
ObjectSE
の hashCodeSE
public StringSE toString()
ObjectSE
の toStringSE