public abstract class AnnotatedDescriptorImpl extends java.lang.Object implements AnnotatedDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,AnnotationElement.Annotation> |
annotations |
protected java.lang.String |
documentation |
protected java.lang.String |
fullName |
protected java.lang.String |
name |
protected java.util.Map<java.lang.String,java.lang.Object> |
parsedAnnotations |
| Modifier | Constructor and Description |
|---|---|
protected |
AnnotatedDescriptorImpl(java.lang.String name,
java.lang.String fullName,
java.lang.String documentation) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AnnotationConfig<? extends AnnotatedDescriptor> |
getAnnotationConfig(java.lang.String annotationName)
Subclasses are responsible for fetching the AnnotationConfig from the appropriate place.
|
java.util.Map<java.lang.String,AnnotationElement.Annotation> |
getAnnotations()
Get the documentation annotations in the form of a map of abstract syntax trees of AnnotationElement nodes.
|
java.lang.String |
getDocumentation() |
java.lang.String |
getFullName() |
java.lang.String |
getName() |
<T> T |
getProcessedAnnotation(java.lang.String annotationName)
Get the annotation object created by the registered AnnotationMetadataCreator or null if the annotation is missing
or no AnnotationMetadataCreator was registered.
|
private void |
normalizeValues(AnnotationElement.Annotation annotation,
AnnotationConfig<?> annotationConfig) |
private void |
processAnnotations() |
private void |
validateAttribute(AnnotationElement.Annotation annotation,
AnnotationElement.Attribute attribute,
AnnotationAttributeConfig attributeConfig,
AnnotationElement.Value value) |
private void |
validateAttributes(AnnotationElement.Annotation annotation,
AnnotationConfig<?> annotationConfig) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFileDescriptorprotected final java.lang.String name
protected java.lang.String fullName
protected final java.lang.String documentation
protected java.util.Map<java.lang.String,AnnotationElement.Annotation> annotations
protected java.util.Map<java.lang.String,java.lang.Object> parsedAnnotations
protected AnnotatedDescriptorImpl(java.lang.String name,
java.lang.String fullName,
java.lang.String documentation)
public java.lang.String getName()
getName in interface AnnotatedDescriptorpublic java.lang.String getFullName()
getFullName in interface AnnotatedDescriptorpublic java.lang.String getDocumentation()
getDocumentation in interface AnnotatedDescriptorprivate void processAnnotations()
throws AnnotationParserException
AnnotationParserExceptionprivate void validateAttributes(AnnotationElement.Annotation annotation, AnnotationConfig<?> annotationConfig)
private void validateAttribute(AnnotationElement.Annotation annotation, AnnotationElement.Attribute attribute, AnnotationAttributeConfig attributeConfig, AnnotationElement.Value value)
private void normalizeValues(AnnotationElement.Annotation annotation, AnnotationConfig<?> annotationConfig)
protected abstract AnnotationConfig<? extends AnnotatedDescriptor> getAnnotationConfig(java.lang.String annotationName)
public java.util.Map<java.lang.String,AnnotationElement.Annotation> getAnnotations() throws AnnotationParserException
AnnotatedDescriptorgetAnnotations in interface AnnotatedDescriptorAnnotationParserExceptionpublic <T> T getProcessedAnnotation(java.lang.String annotationName)
throws AnnotationParserException
AnnotatedDescriptorgetProcessedAnnotation in interface AnnotatedDescriptorAnnotationParserException