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, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public 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 AnnotatedElement
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotatedElement
public Annotation[] getAnnotations()
getAnnotations
in interface AnnotatedElement
public Annotation[] getDeclaredAnnotations()
getDeclaredAnnotations
in interface AnnotatedElement
Copyright © 2025. All rights reserved.