public interface AnnotatedDescriptor
Modifier and Type | Method and Description |
---|---|
Map<String,AnnotationElement.Annotation> |
getAnnotations()
Get the documentation annotations in the form of a map of abstract syntax trees of
AnnotationElement nodes. |
String |
getDocumentation()
Return the documentation text associated with this descriptor.
|
FileDescriptor |
getFileDescriptor()
Return the containing files's descriptor
|
String |
getFullName()
Return the fulla name of the descriptor.
|
String |
getName()
Return the name of the descriptor.
|
<T> T |
getProcessedAnnotation(String annotationName)
Get the 'processed' annotation object created by the registered
AnnotationMetadataCreator
or null if the annotation is missing or no AnnotationMetadataCreator
was registered. |
String getName()
null
)String getFullName()
null
)FileDescriptor getFileDescriptor()
null
)String getDocumentation()
null
if not presentMap<String,AnnotationElement.Annotation> getAnnotations() throws AnnotationParserException
AnnotationElement
nodes.
Only the configured annotations are returned. The unconfigured ones are discarded immediately after parsing.
The parsing of annotations is performed lazily on first invocation.
AnnotationParserException
- if parsing of annotations fails<T> T getProcessedAnnotation(String annotationName) throws AnnotationParserException
AnnotationMetadataCreator
or null
if the annotation is missing or no AnnotationMetadataCreator
was registered.T
- the expected type of the object created by the AnnotationMetadataCreator
annotationName
- the name of the annotationnull
if not foundAnnotationParserException
- if parsing of annotations failsCopyright © 2020 JBoss, a division of Red Hat. All rights reserved.