public interface JavaAnnotatedElement
Equivalent of AnnotatedElement
, providing the most important methods.
Where the original AnnotatedElement uses an Array, the JavaAnnotatedElement is using a List
.
Where you can use Annotations, you can also use JavaDoc. For that reason all JavaDoc methods have been added to this interface.
Modifier and Type | Method and Description |
---|---|
java.util.List<JavaAnnotation> |
getAnnotations()
Equivalent of
AnnotatedElement.getAnnotations() |
java.lang.String |
getComment()
Retrieve the javadoc comment of this annotated element.
|
java.lang.String |
getNamedParameter(java.lang.String tagName,
java.lang.String parameterName)
Convenience method for
getTagByName(String).getNamedParameter(String)
that also checks for null tag. |
DocletTag |
getTagByName(java.lang.String name)
Retrieve the doclettag by the specified name.
|
java.util.List<DocletTag> |
getTags()
Retrieve all defined doclet tags.
|
java.util.List<DocletTag> |
getTagsByName(java.lang.String name)
Retrieve all doclettags with a specific name.
|
java.util.List<JavaAnnotation> getAnnotations()
AnnotatedElement.getAnnotations()
null
java.lang.String getComment()
null
java.util.List<DocletTag> getTags()
null
java.util.List<DocletTag> getTagsByName(java.lang.String name)
name
- the name of the doclet tagnull
DocletTag getTagByName(java.lang.String name)
name
- the name of the doclettag trying to retrievenull
java.lang.String getNamedParameter(java.lang.String tagName, java.lang.String parameterName)
getTagByName(String).getNamedParameter(String)
that also checks for null tag.tagName
- the tag nameparameterName
- the parameter namenull