Record Class AnnotationMatchingPointcut.AnnotationCandidateClassFilter
java.lang.Object
java.lang.Record
infra.aop.support.annotation.AnnotationMatchingPointcut.AnnotationCandidateClassFilter
- 所有已实现的接口:
ClassFilter
private static record AnnotationMatchingPointcut.AnnotationCandidateClassFilter(Class<? extends Annotation> annotationType)
extends Record
implements ClassFilter
ClassFilter that delegates to AnnotationUtils.isCandidateClass(java.lang.Class<?>, java.util.Collection<java.lang.Class<? extends java.lang.annotation.Annotation>>)
for filtering classes whose methods are not worth searching to begin with.-
嵌套类概要
从接口继承的嵌套类/接口 infra.aop.ClassFilter
ClassFilter.IntersectionClassFilter, ClassFilter.NegateClassFilter, ClassFilter.UnionClassFilter -
字段概要
字段从接口继承的字段 infra.aop.ClassFilter
TRUE -
构造器概要
构造器限定符构造器说明privateAnnotationCandidateClassFilter(Class<? extends Annotation> annotationType) 创建AnnotationCandidateClassFilter记录的实例。 -
方法概要
修饰符和类型方法说明Class<? extends Annotation>返回annotationType记录组件的值。boolean指示某个其他对象是否“等于”此对象。inthashCode()返回此对象的哈希代码值。booleanShould the pointcut apply to the given interface or target class?toString()返回此记录的字符串表示形式。
-
字段详细资料
-
annotationType
annotationType记录组件的字段。
-
-
构造器详细资料
-
AnnotationCandidateClassFilter
创建AnnotationCandidateClassFilter记录的实例。- 参数:
annotationType-annotationType记录组件的值
-
-
方法详细资料
-
matches
从接口复制的说明:ClassFilterShould the pointcut apply to the given interface or target class?- 指定者:
matches在接口中ClassFilter- 参数:
clazz- the candidate target class- 返回:
- whether the advice should apply to the given target class
-
equals
指示某个其他对象是否“等于”此对象。如果两个对象属于同一个类,而且所有记录组件都相等,则这两个对象相等。 此记录中的所有组件都使用Objects::equals(Object,Object)进行比较。 -
hashCode
public int hashCode()返回此对象的哈希代码值。此值派生自每个记录组件的哈希代码。 -
toString
返回此记录的字符串表示形式。此表示形式包含类型的名称,后跟每个记录组件的名称和值。 -
annotationType
返回annotationType记录组件的值。- 返回:
annotationType记录组件的值
-