public class JavaDocParser
extends java.lang.Object
JavaDocParser is an immutable class to getValue javadoc
data in tag granularity. First you create an instance of this class
providing the whole block of javadoc lines. Then you can ask whether
a tag exist and getValue all instances of it.| Constructor and Description |
|---|
JavaDocParser(java.lang.String docs)
Creates a new
JavaDocParser instance. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
getAuthorTags()
getAuthorTags returns all the author tags |
java.util.Collection |
getDeprecatedTags()
getDeprecatedTags returns all the deprecated tags |
java.util.List |
getOrder()
getOrder returns the tags in the order they appeared |
static java.util.List |
getOrderConvention()
getOrderConvention return the recomended order of the tags
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html |
java.util.Collection |
getParamTags()
getParamTags returns all the param tags |
java.util.Collection |
getReturnTags()
getReturnTags returns all the return tags |
java.util.Collection |
getSeeTags()
getSeeTags returns all the see tags |
java.util.Collection |
getSerialTags()
getSerialTags returns all the see tags |
java.util.Collection |
getSinceTags()
getSinceTags returns all the since tags |
java.util.Collection |
getThrowsTags()
getThrowsTags returns all the see tags |
java.util.Collection |
getVersionTags()
getVersionTags returns all the version tags |
boolean |
hasAuthorTags()
hasAuthorTags |
boolean |
hasDeprecatedTags()
hasDeprecatedTags |
boolean |
hasParamTags()
hasParamTags |
boolean |
hasReturnTags()
hasReturnTags |
boolean |
hasSeeTags()
hasSeeTags |
boolean |
hasSerialTags()
hasSerialTags |
boolean |
hasSinceTags()
hasSinceTags |
boolean |
hasThrowsTags()
hasThrowsTags |
boolean |
hasVersionTags()
hasVersionTags |
boolean |
isJavaDoc()
isJavaDoc returns wheter the string is a javadoc. |
boolean |
isOrderCorrect()
isOrderCorrect returns whether the order of the tags
complies with the order convention. |
public JavaDocParser(java.lang.String docs)
JavaDocParser instance.docs - String containing the whole javadoc (all lines)public static java.util.List getOrderConvention()
getOrderConvention return the recomended order of the tags
http://java.sun.com/j2se/javadoc/writingdoccomments/index.htmlList valuepublic boolean isJavaDoc()
isJavaDoc returns wheter the string is a javadoc.
it checks for /** at the beginning and '*'/ at the endboolean valuepublic boolean hasAuthorTags()
hasAuthorTagsboolean valuepublic java.util.Collection getAuthorTags()
getAuthorTags returns all the author tagsCollection valuepublic boolean hasVersionTags()
hasVersionTagsboolean valuepublic java.util.Collection getVersionTags()
getVersionTags returns all the version tagsCollection valuepublic boolean hasParamTags()
hasParamTagsboolean valuepublic java.util.Collection getParamTags()
getParamTags returns all the param tagsCollection valuepublic boolean hasReturnTags()
hasReturnTagsboolean valuepublic java.util.Collection getReturnTags()
getReturnTags returns all the return tagsCollection valuepublic boolean hasThrowsTags()
hasThrowsTagsboolean valuepublic java.util.Collection getThrowsTags()
getThrowsTags returns all the see tagsCollection valuepublic boolean hasSeeTags()
hasSeeTagsboolean valuepublic java.util.Collection getSeeTags()
getSeeTags returns all the see tagsCollection valuepublic boolean hasSinceTags()
hasSinceTagsboolean valuepublic java.util.Collection getSinceTags()
getSinceTags returns all the since tagsCollection valuepublic boolean hasSerialTags()
hasSerialTagsboolean valuepublic java.util.Collection getSerialTags()
getSerialTags returns all the see tagsCollection valuepublic boolean hasDeprecatedTags()
hasDeprecatedTagsboolean valuepublic java.util.Collection getDeprecatedTags()
getDeprecatedTags returns all the deprecated tagsCollection valuepublic java.util.List getOrder()
getOrder returns the tags in the order they appearedList valuepublic boolean isOrderCorrect()
isOrderCorrect returns whether the order of the tags
complies with the order convention.boolean value
JCSC is released under the terms of the GNU General Public License