public abstract class AnnotatedDescriptorImpl extends Object implements AnnotatedDescriptor
Modifier and Type | Field and Description |
---|---|
protected Map<String,AnnotationElement.Annotation> |
annotations |
protected String |
documentation |
protected String |
fullName |
protected String |
name |
protected Map<String,Object> |
parsedAnnotations |
Modifier | Constructor and Description |
---|---|
protected |
AnnotatedDescriptorImpl(String name,
String fullName,
String documentation) |
Modifier and Type | Method and Description |
---|---|
protected abstract AnnotationConfig<? extends AnnotatedDescriptor> |
getAnnotationConfig(String annotationName)
Subclasses are responsible for fetching the AnnotationConfig from the appropriate place.
|
Map<String,AnnotationElement.Annotation> |
getAnnotations()
Get the documentation annotations in the form of a map of abstract syntax trees of AnnotationElement nodes.
|
String |
getDocumentation() |
String |
getFullName() |
String |
getName() |
<T> T |
getProcessedAnnotation(String annotationName)
Get the annotation object created by the registered AnnotationMetadataCreator or null if the annotation is missing
or no AnnotationMetadataCreator was registered.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getFileDescriptor
protected final String name
protected String fullName
protected final String documentation
protected Map<String,AnnotationElement.Annotation> annotations
public String getName()
getName
in interface AnnotatedDescriptor
public String getFullName()
getFullName
in interface AnnotatedDescriptor
public String getDocumentation()
getDocumentation
in interface AnnotatedDescriptor
protected abstract AnnotationConfig<? extends AnnotatedDescriptor> getAnnotationConfig(String annotationName)
public Map<String,AnnotationElement.Annotation> getAnnotations() throws AnnotationParserException
AnnotatedDescriptor
getAnnotations
in interface AnnotatedDescriptor
AnnotationParserException
public <T> T getProcessedAnnotation(String annotationName) throws AnnotationParserException
AnnotatedDescriptor
getProcessedAnnotation
in interface AnnotatedDescriptor
AnnotationParserException
Copyright © 2023 JBoss, a division of Red Hat. All rights reserved.