public class CombinationAnnotationElement extends Object implements AnnotatedElement, Serializable
Constructor and Description |
---|
CombinationAnnotationElement(AnnotatedElement element)
构造
|
CombinationAnnotationElement(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 CombinationAnnotationElement |
of(AnnotatedElement element,
Predicate<Annotation> predicate)
创建CombinationAnnotationElement
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public 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
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 © 2024. All rights reserved.