Interface AnnotatedElementInfo
- All Known Subinterfaces:
ExecutableInfo,MemberInfo
- All Known Implementing Classes:
ClassInfo,ConstructorInfo,FieldInfo,MethodInfo,ParameterInfo
public interface AnnotatedElementInfo
可被注解的元素
- Version:
- 0.0.1
- Author:
- scx567888
-
Method Summary
Modifier and TypeMethodDescriptiondefault Annotation[]获取所有的注解 包括继承自父级的注解 (假设存在继承的话, 如类或方法)元素上的注解default <T extends Annotation>
TfindAnnotation(Class<T> annotationClass) 查找指定类型的注解default <T extends Annotation>
TfindAnnotationFromAll(Class<T> annotationClass) 从整个继承层次查找 指定的注解default <T extends Annotation>
List<T> findAnnotationList(Class<T> annotationClass) 查找所有指定类型的注解default <T extends Annotation>
List<T> findAnnotationListFromAll(Class<T> annotationClass) 从整个继承层次查找 所有注解
-
Method Details
-
annotations
Annotation[] annotations()元素上的注解 -
allAnnotations
获取所有的注解 包括继承自父级的注解 (假设存在继承的话, 如类或方法) -
findAnnotation
查找指定类型的注解 -
findAnnotationList
查找所有指定类型的注解 -
findAnnotationFromAll
从整个继承层次查找 指定的注解 -
findAnnotationListFromAll
从整个继承层次查找 所有注解
-