public interface JavaAnnotatedElement extends JavaModel
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.
|
getCodeBlock, getLineNumberjava.util.List<JavaAnnotation> getAnnotations()
AnnotatedElement.getAnnotations()nulljava.lang.String getComment()
nulljava.util.List<DocletTag> getTags()
nulljava.util.List<DocletTag> getTagsByName(java.lang.String name)
name - the name of the doclet tagnullDocletTag getTagByName(java.lang.String name)
name - the name of the doclettag trying to retrievenulljava.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 namenullCopyright © 2002-2018. All Rights Reserved.