|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectrj.tools.util.JavaDocParser
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 Summary | |
JavaDocParser(java.lang.String docs)
Creates a new JavaDocParser instance. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JavaDocParser(java.lang.String docs)
JavaDocParser instance.
docs - String containing the whole javadoc (all lines)| Method Detail |
public static java.util.List getOrderConvention()
getOrderConvention return the recomended order of the tags
http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
List valuepublic boolean isJavaDoc()
isJavaDoc returns wheter the string is a javadoc.
it checks for /** at the beginning and '*'/ at the end
boolean valuepublic boolean hasAuthorTags()
hasAuthorTags
boolean valuepublic java.util.Collection getAuthorTags()
getAuthorTags returns all the author tags
Collection valuepublic boolean hasVersionTags()
hasVersionTags
boolean valuepublic java.util.Collection getVersionTags()
getVersionTags returns all the version tags
Collection valuepublic boolean hasParamTags()
hasParamTags
boolean valuepublic java.util.Collection getParamTags()
getParamTags returns all the param tags
Collection valuepublic boolean hasReturnTags()
hasReturnTags
boolean valuepublic java.util.Collection getReturnTags()
getReturnTags returns all the return tags
Collection valuepublic boolean hasThrowsTags()
hasThrowsTags
boolean valuepublic java.util.Collection getThrowsTags()
getThrowsTags returns all the see tags
Collection valuepublic boolean hasSeeTags()
hasSeeTags
boolean valuepublic java.util.Collection getSeeTags()
getSeeTags returns all the see tags
Collection valuepublic boolean hasSinceTags()
hasSinceTags
boolean valuepublic java.util.Collection getSinceTags()
getSinceTags returns all the since tags
Collection valuepublic boolean hasSerialTags()
hasSerialTags
boolean valuepublic java.util.Collection getSerialTags()
getSerialTags returns all the see tags
Collection valuepublic boolean hasDeprecatedTags()
hasDeprecatedTags
boolean valuepublic java.util.Collection getDeprecatedTags()
getDeprecatedTags returns all the deprecated tags
Collection valuepublic java.util.List getOrder()
getOrder returns the tags in the order they appeared
List valuepublic boolean isOrderCorrect()
isOrderCorrect returns whether the order of the tags
complies with the order convention.
boolean value
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||