public final class JavadocUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
JavadocUtils.JavadocTagType
The type of Javadoc tag we want returned.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
branchContains(DetailNode node,
int type)
Checks whether node contains any node of specified type among children on any deep level.
|
static DetailNode |
findFirstToken(DetailNode node,
int type)
Returns the first child token that has a specified type.
|
static String |
getBlockCommentContent(DetailAST blockCommentBegin)
Gets content of block comment.
|
static DetailNode |
getFirstChild(DetailNode node)
Gets first child node of specified node.
|
static String |
getJavadocCommentContent(DetailAST javdocCommentBegin)
Get content of Javadoc comment.
|
static JavadocTags |
getJavadocTags(TextBlock cmt,
JavadocUtils.JavadocTagType tagType)
Gets validTags from a given piece of Javadoc.
|
static DetailNode |
getNextSibling(DetailNode node)
Gets next sibling of specified node.
|
static DetailNode |
getPreviousSibling(DetailNode node)
Gets previous sibling of specified node.
|
static int |
getTokenId(String name)
Returns the ID of a token for a given name.
|
static String |
getTokenName(int iD)
Returns the name of a token for a given ID.
|
static boolean |
isJavadocComment(DetailAST blockCommentBegin)
Checks block comment content starts with '*' javadoc comment identifier.
|
static boolean |
isJavadocComment(String commentContent)
Checks that commentContent starts with '*' javadoc comment identifier.
|
public static JavadocTags getJavadocTags(TextBlock cmt, JavadocUtils.JavadocTagType tagType)
cmt - the Javadoc comment to process.tagType - the type of validTags we're interested inpublic static boolean isJavadocComment(String commentContent)
commentContent - content of block commentpublic static boolean isJavadocComment(DetailAST blockCommentBegin)
blockCommentBegin - block comment ASTpublic static String getBlockCommentContent(DetailAST blockCommentBegin)
blockCommentBegin - block comment AST.public static String getJavadocCommentContent(DetailAST javdocCommentBegin)
javdocCommentBegin - Javadoc comment ASTpublic static DetailNode findFirstToken(DetailNode node, int type)
node - Javadoc AST nodetype - the token type to matchpublic static DetailNode getFirstChild(DetailNode node)
node - DetailNodepublic static boolean branchContains(DetailNode node, int type)
node - DetailNodetype - token typepublic static DetailNode getNextSibling(DetailNode node)
node - DetailNodepublic static DetailNode getPreviousSibling(DetailNode node)
node - DetailNodepublic static String getTokenName(int iD)
iD - the ID of the token name to getpublic static int getTokenId(String name)
name - the name of the token ID to getCopyright © 2001–2015. All rights reserved.