public class CombinationAnnotatedElement extends Object implements AnnotatedElement, Serializable
| Constructor and Description |
|---|
CombinationAnnotatedElement(AnnotatedElement element)
构造
|
CombinationAnnotatedElement(AnnotatedElement element,
Predicate<Annotation> predicate)
构造
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
static CombinationAnnotatedElement |
of(AnnotatedElement element,
Predicate<Annotation> predicate)
创建CombinationAnnotationElement
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByTypepublic CombinationAnnotatedElement(AnnotatedElement element)
element - 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpublic CombinationAnnotatedElement(AnnotatedElement element, Predicate<Annotation> predicate)
element - 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpredicate - 过滤器,Predicate.test(Object)返回true保留,否则不保留public static CombinationAnnotatedElement of(AnnotatedElement element, Predicate<Annotation> predicate)
element - 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpredicate - 过滤器,Predicate.test(Object)返回true保留,否则不保留public boolean isAnnotationPresent(Class<? extends Annotation> annotationClass)
isAnnotationPresent in interface AnnotatedElementpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation in interface AnnotatedElementpublic Annotation[] getAnnotations()
getAnnotations in interface AnnotatedElementpublic Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations in interface AnnotatedElementCopyright © 2025. All rights reserved.