public class SingleLineJavadocCheck extends AbstractJavadocCheck
The Check has the following properties:
ignoredTags - allows to specify a list of at-clauses
(including custom at-clauses) to be ignored by the check.
ignoreInlineTags - whether inline at-clauses must be ignored.
Default configuration:
<module name="SingleLineJavadoc"/>To specify a list of ignored at-clauses and make inline at-clauses not ignored in general:
<module name="SingleLineJavadoc">
<property name="ignoredTags" value="@inheritDoc, @link"/>
<property name="ignoreInlineTags" value="false"/>
</module>
| Modifier and Type | Field and Description |
|---|---|
static String |
MSG_KEY
A key is pointing to the warning message text in "messages.properties"
file.
|
PARSE_ERROR_MESSAGE_KEY, UNRECOGNIZED_ANTLR_ERROR_MESSAGE_KEY| Constructor and Description |
|---|
SingleLineJavadocCheck() |
| Modifier and Type | Method and Description |
|---|---|
int[] |
getAcceptableTokens()
The configurable token set.
|
int[] |
getDefaultJavadocTokens()
Returns the default token types a check is interested in.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
setIgnoredTags(String tags)
Sets a list of tags to be ignored by check.
|
void |
setIgnoreInlineTags(boolean ignoreInlineTags)
Sets whether inline tags must be ignored.
|
void |
visitJavadocToken(DetailNode ast)
Called to process a Javadoc token.
|
beginJavadocTree, beginTree, finishJavadocTree, finishTree, getBlockCommentAst, getDefaultTokens, isCommentNodesRequired, leaveJavadocToken, visitTokendestroy, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic static final String MSG_KEY
public SingleLineJavadocCheck()
public void setIgnoredTags(String tags)
tags - to be ignored by check.public void setIgnoreInlineTags(boolean ignoreInlineTags)
ignoreInlineTags - whether inline tags must be ignored.public int[] getDefaultJavadocTokens()
AbstractJavadocCheckgetDefaultJavadocTokens in class AbstractJavadocCheckJavadocTokenTypespublic int[] getAcceptableTokens()
CheckgetAcceptableTokens in class CheckTokenTypespublic int[] getRequiredTokens()
CheckgetRequiredTokens in class CheckTokenTypespublic void visitJavadocToken(DetailNode ast)
AbstractJavadocCheckvisitJavadocToken in class AbstractJavadocCheckast - the token to processCopyright © 2001-2015. All Rights Reserved.