public class JavadocStyleCheck extends AbstractCheck
AutomaticBean.OutputStreamOptions
Modifier and Type | Field and Description |
---|---|
static String |
MSG_EMPTY
Message property key for the Unclosed HTML message.
|
static String |
MSG_EXTRA_HTML
Message property key for the Extra HTML message.
|
static String |
MSG_INCOMPLETE_TAG
Message property key for the Unclosed HTML message.
|
static String |
MSG_JAVADOC_MISSING
Message property key for the Unclosed HTML message.
|
static String |
MSG_NO_PERIOD
Message property key for the Unclosed HTML message.
|
static String |
MSG_UNCLOSED_HTML
Message property key for the Unclosed HTML message.
|
Constructor and Description |
---|
JavadocStyleCheck() |
Modifier and Type | Method and Description |
---|---|
int[] |
getAcceptableTokens()
The configurable token set.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
setCheckEmptyJavadoc(boolean flag)
Sets the flag that determines if empty Javadoc checking should be done.
|
void |
setCheckFirstSentence(boolean flag)
Sets the flag that determines if the first sentence is checked for
proper end of sentence punctuation.
|
void |
setCheckHtml(boolean flag)
Sets the flag that determines if HTML checking is to be performed.
|
void |
setEndOfSentenceFormat(Pattern pattern)
Set the format for matching the end of a sentence.
|
void |
setExcludeScope(Scope excludeScope)
Set the excludeScope.
|
void |
setScope(Scope scope)
Sets the scope to check.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
beginTree, clearMessages, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokens
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
configure, contextualize, getConfiguration, setupChild
public static final String MSG_JAVADOC_MISSING
public static final String MSG_EMPTY
public static final String MSG_NO_PERIOD
public static final String MSG_INCOMPLETE_TAG
public static final String MSG_UNCLOSED_HTML
public static final String MSG_EXTRA_HTML
public JavadocStyleCheck()
public int[] getDefaultTokens()
AbstractCheck
getDefaultTokens
in class AbstractCheck
TokenTypes
public int[] getAcceptableTokens()
AbstractCheck
getAcceptableTokens
in class AbstractCheck
TokenTypes
public int[] getRequiredTokens()
AbstractCheck
getRequiredTokens
in class AbstractCheck
TokenTypes
public void visitToken(DetailAST ast)
AbstractCheck
visitToken
in class AbstractCheck
ast
- the token to processpublic void setExcludeScope(Scope excludeScope)
excludeScope
- a scope.public void setEndOfSentenceFormat(Pattern pattern)
pattern
- a pattern.public void setCheckFirstSentence(boolean flag)
flag
- true
if the first sentence is to be checkedpublic void setCheckHtml(boolean flag)
flag
- true
if HTML checking is to be performed.public void setCheckEmptyJavadoc(boolean flag)
flag
- true
if empty Javadoc checking should be done.Copyright © 2001–2018. All rights reserved.