S - the type of source supported by this extractorabstract class AbstractAliasAwareAnnotationAttributeExtractor<S> extends Object implements AnnotationAttributeExtractor<S>
AnnotationAttributeExtractor implementations
that transparently enforce attribute alias semantics for annotation
attributes that are annotated with @AliasFor.Annotation,
AliasFor,
AnnotationUtils.synthesizeAnnotation(Annotation, Object)| 构造器和说明 |
|---|
AbstractAliasAwareAnnotationAttributeExtractor(Class<? extends Annotation> annotationType,
Object annotatedElement,
S source)
Construct a new
AbstractAliasAwareAnnotationAttributeExtractor. |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
getAnnotatedElement()
Get the element that is annotated with an annotation of the annotation
type supported by this extractor.
|
Class<? extends Annotation> |
getAnnotationType()
Get the type of annotation that this extractor extracts attribute
values for.
|
Object |
getAttributeValue(Method attributeMethod)
Get the attribute value from the underlying source
that corresponds to the supplied attribute method.
|
protected abstract Object |
getRawAttributeValue(Method attributeMethod)
Get the raw, unmodified attribute value from the underlying
source that corresponds to the supplied
attribute method.
|
protected abstract Object |
getRawAttributeValue(String attributeName)
Get the raw, unmodified attribute value from the underlying
source that corresponds to the supplied
attribute name.
|
S |
getSource()
Get the underlying source of annotation attributes.
|
AbstractAliasAwareAnnotationAttributeExtractor(Class<? extends Annotation> annotationType, Object annotatedElement, S source)
AbstractAliasAwareAnnotationAttributeExtractor.annotationType - the annotation type to synthesize; never nullannotatedElement - the element that is annotated with the annotation
of the supplied type; may be null if unknownsource - the underlying source of annotation attributes; never nullpublic final Class<? extends Annotation> getAnnotationType()
AnnotationAttributeExtractorgetAnnotationType 在接口中 AnnotationAttributeExtractor<S>public final Object getAnnotatedElement()
AnnotationAttributeExtractorgetAnnotatedElement 在接口中 AnnotationAttributeExtractor<S>null if unknownpublic final S getSource()
AnnotationAttributeExtractorgetSource 在接口中 AnnotationAttributeExtractor<S>public final Object getAttributeValue(Method attributeMethod)
AnnotationAttributeExtractorgetAttributeValue 在接口中 AnnotationAttributeExtractor<S>attributeMethod - an attribute method from the annotation type
supported by this extractorprotected abstract Object getRawAttributeValue(Method attributeMethod)
Copyright © 2020. All rights reserved.