| 程序包 | 说明 |
|---|---|
| top.xiajibagao.powerfulannotation.scanner |
提供用于从
AnnotatedElement及其层级结构中获取注解的各项扫描器 |
| top.xiajibagao.powerfulannotation.scanner.processor |
提供在
AbstractAnnotationScanner中使用的各项注解处理器 |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> T |
AnnotationSearchMode.getAnnotation(AnnotatedElement element,
AnnotationFilter filter,
Predicate<T> predicate,
Function3<Integer,Integer,Annotation,T> converter)
从元素获取注解并将其转为指定类型对象,若符合条件则返回该指定类型对象
|
<T> List<T> |
AnnotationSearchMode.getAnnotations(AnnotatedElement element,
AnnotationFilter filter,
Function3<Integer,Integer,Annotation,T> converter)
从元素获取全部注解并将其转为指定类型
|
| 构造器和说明 |
|---|
AnnotationCollector(Function3<Integer,Integer,Annotation,T> converter)
构造一个注解收集器
|
AnnotationFinder(Function3<Integer,Integer,Annotation,T> converter,
Predicate<T> predicate)
创建一个注解查找器
|
Copyright © 2022. All rights reserved.