public interface IAnnotationTypeMeta
project: heaven-AnnotationMeta
create on 2019/11/29 23:04
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getAnnotatedAttr(Class<? extends Annotation> clazz,
String methodName)
获取被当前注解指定的属性信息
|
Annotation |
getAnnotation(String annotationName)
Determine whether the underlying element has an annotation
of the given type defined.
|
Object |
getAnnotationAttr(Annotation annotation,
String methodName)
获取当前注解对应的属性信息
|
Map<String,Object> |
getAnnotationAttributes(String annotationName)
Retrieve the attributes of the annotation of the given type, if any (i.e. if
defined on the underlying element, as direct annotation),
also taking attribute overrides on composed annotations into account.
|
Object |
getAnnotationOrRefAttribute(String annotationName,
String attrMethodName)
已过时。
|
Map<String,Object> |
getAnnotationOrRefAttributes(String annotationName)
已过时。
|
List<Annotation> |
getAnnotationOrRefs(String annotationName)
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
Annotation |
getAnnotationReferenced(String annotationName,
String annotationRefName)
获取被引用的注解基本信息
|
Object |
getAnnotationReferencedAttr(Class<? extends Annotation> clazz,
String methodName)
获取被当前注解为元注解的的属性信息
|
List<Annotation> |
getAnnotationRefs(String annotationName)
获取指定类型的所有相关注解
(1)排除直接注解本身
|
boolean |
isAnnotated(String annotationName)
Determine whether the underlying element has an annotation
of the given type defined.
|
boolean |
isAnnotatedOrRef(List<Class> classList)
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
boolean |
isAnnotatedOrRef(String annotationName)
Determine whether the underlying element has an annotation or meta-annotation
of the given type defined.
|
boolean |
isAnnotationRef(Class<? extends Annotation> clazz)
是否被引用了指定的注解
|
boolean isAnnotated(String annotationName)
If this method returns true, then
getAnnotationAttributes(java.lang.String) will return a non-null Map.
annotationName - the fully qualified class name of the annotation
type to look forAnnotation getAnnotation(String annotationName)
annotationName - the fully qualified class name of the annotation
type to look forboolean isAnnotatedOrRef(String annotationName)
If this method returns true, then
getAnnotationAttributes(java.lang.String) will return a non-null Map.
annotationName - the fully qualified class name of the annotation
type to look forboolean isAnnotatedOrRef(List<Class> classList)
If this method returns true, then
getAnnotationAttributes(java.lang.String) will return a non-null Map.
classList - the fully qualified class name list of the annotation
type to look forboolean isAnnotationRef(Class<? extends Annotation> clazz)
clazz - 类信息List<Annotation> getAnnotationOrRefs(String annotationName)
List<Annotation> getAnnotationRefs(String annotationName)
annotationName - 注解名称Annotation getAnnotationReferenced(String annotationName, String annotationRefName)
annotationName - 注解名称annotationRefName - 引用注解名称首先执行这个获取引用Map<String,Object> getAnnotationAttributes(String annotationName)
annotationName - the fully qualified class name of the annotation
type to look fornull if no matching annotation is defined.@Deprecated Map<String,Object> getAnnotationOrRefAttributes(String annotationName)
annotationName - the fully qualified class name of the annotation
type to look fornull if no matching annotation is defined.@Deprecated Object getAnnotationOrRefAttribute(String annotationName, String attrMethodName)
annotationName - the fully qualified class name of the annotation
type to look forattrMethodName - the annotation method name to look fornull if no matching annotation is defined.Object getAnnotationAttr(Annotation annotation, String methodName)
annotation - 注解类methodName - 方法名称Object getAnnotatedAttr(Class<? extends Annotation> clazz, String methodName)
clazz - 注解类methodName - 方法名称Object getAnnotationReferencedAttr(Class<? extends Annotation> clazz, String methodName)
clazz - 注解类methodName - 方法名称Copyright © 2024. All rights reserved.