public class CombinationAnnotationElement extends Object implements AnnotatedElement, Serializable
Constructor and Description |
---|
CombinationAnnotationElement(AnnotatedElement element)
构造
|
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass) |
Annotation[] |
getAnnotations() |
Annotation[] |
getDeclaredAnnotations() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotationClass) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotationsByType, getDeclaredAnnotation, getDeclaredAnnotationsByType
public CombinationAnnotationElement(AnnotatedElement element)
element
- 需要解析注解的元素:可以是Class、Method、Field、Constructor、ReflectPermissionpublic 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 © 2021. All rights reserved.