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, setTokensfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildpublic 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()
AbstractCheckgetDefaultTokens in class AbstractCheckTokenTypespublic int[] getAcceptableTokens()
AbstractCheckgetAcceptableTokens in class AbstractCheckTokenTypespublic int[] getRequiredTokens()
AbstractCheckgetRequiredTokens in class AbstractCheckTokenTypespublic void visitToken(DetailAST ast)
AbstractCheckvisitToken in class AbstractCheckast - 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.