public class CombinationAnnotationElement extends Object implements AnnotatedElement, Serializable
| 构造器和说明 |
|---|
CombinationAnnotationElement(AnnotatedElement element)
构造
|
CombinationAnnotationElement(AnnotatedElement element,
Predicate<Annotation> predicate)
构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
static CombinationAnnotationElement |
of(AnnotatedElement element,
Predicate<Annotation> predicate)
创建CombinationAnnotationElement
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic CombinationAnnotationElement(AnnotatedElement element)
element - 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpublic CombinationAnnotationElement(AnnotatedElement element, Predicate<Annotation> predicate)
element - 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpredicate - 过滤器,Predicate.test(Object)返回true保留,否则不保留public static CombinationAnnotationElement of(AnnotatedElement element, Predicate<Annotation> predicate)
element - 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpredicate - 过滤器,Predicate.test(Object)返回true保留,否则不保留public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent 在接口中 AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation 在接口中 AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations 在接口中 AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations 在接口中 AnnotatedElementCopyright © 2023. All rights reserved.