public class JavadocMethodCheck extends AbstractCheck
AutomaticBean.OutputStreamOptions| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MSG_CLASS_INFO
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_DUPLICATE_TAG
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_EXPECTED_TAG
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_INVALID_INHERIT_DOC
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_RETURN_EXPECTED
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_UNUSED_TAG
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_UNUSED_TAG_GENERAL
A key is pointing to the warning message text in "messages.properties"
file.
|
| Constructor and Description |
|---|
JavadocMethodCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTree(DetailAST rootAST)
Called before the starting to process a tree.
|
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 |
leaveToken(DetailAST ast)
Called after all the child nodes have been process.
|
void |
setAllowedAnnotations(java.lang.String... userAnnotations)
Sets list of annotations.
|
void |
setAllowMissingParamTags(boolean flag)
Controls whether to allow a method which has parameters to omit matching
param tags in the javadoc.
|
void |
setAllowMissingReturnTag(boolean flag)
Controls whether to allow a method which returns non-void type to omit
the return tag in the javadoc.
|
void |
setAllowMissingThrowsTags(boolean flag)
Controls whether to allow a method which declares that it throws
exceptions to omit matching throws tags in the javadoc.
|
void |
setAllowThrowsTagsForSubclasses(boolean flag)
Controls whether to allow documented exception that are subclass of one
of declared exceptions.
|
void |
setAllowUndeclaredRTE(boolean flag)
Controls whether to allow documented exceptions that are not declared if
they are a subclass of java.lang.RuntimeException.
|
void |
setExcludeScope(Scope excludeScope)
Set the excludeScope.
|
void |
setLogLoadErrors(boolean logLoadErrors)
Deprecated.
No substitute.
|
void |
setScope(Scope scope)
Set the scope.
|
void |
setSuppressLoadErrors(boolean suppressLoadErrors)
Deprecated.
No substitute.
|
void |
setValidateThrows(boolean value)
Allow validating throws tag.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
clearMessages, destroy, finishTree, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, log, log, log, setFileContents, setTabWidth, setTokensfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildpublic static final java.lang.String MSG_CLASS_INFO
public static final java.lang.String MSG_UNUSED_TAG_GENERAL
public static final java.lang.String MSG_INVALID_INHERIT_DOC
public static final java.lang.String MSG_UNUSED_TAG
public static final java.lang.String MSG_EXPECTED_TAG
public static final java.lang.String MSG_RETURN_EXPECTED
public static final java.lang.String MSG_DUPLICATE_TAG
public JavadocMethodCheck()
public void setValidateThrows(boolean value)
value - user's value.public void setAllowedAnnotations(java.lang.String... userAnnotations)
userAnnotations - user's value.public void setExcludeScope(Scope excludeScope)
excludeScope - a scope.public void setAllowUndeclaredRTE(boolean flag)
flag - a Boolean valuepublic void setAllowThrowsTagsForSubclasses(boolean flag)
flag - a Boolean valuepublic void setAllowMissingParamTags(boolean flag)
flag - a Boolean valuepublic void setAllowMissingThrowsTags(boolean flag)
flag - a Boolean valuepublic void setAllowMissingReturnTag(boolean flag)
flag - a Boolean value@Deprecated public final void setLogLoadErrors(boolean logLoadErrors)
logLoadErrors - true if errors should be logged@Deprecated public final void setSuppressLoadErrors(boolean suppressLoadErrors)
suppressLoadErrors - true if errors shouldn't be shownpublic final int[] getRequiredTokens()
AbstractCheckgetRequiredTokens in class AbstractCheckTokenTypespublic int[] getDefaultTokens()
AbstractCheckgetDefaultTokens in class AbstractCheckTokenTypespublic int[] getAcceptableTokens()
AbstractCheckgetAcceptableTokens in class AbstractCheckTokenTypespublic void beginTree(DetailAST rootAST)
AbstractCheckbeginTree in class AbstractCheckrootAST - the root of the treepublic final void visitToken(DetailAST ast)
AbstractCheckvisitToken in class AbstractCheckast - the token to processpublic final void leaveToken(DetailAST ast)
AbstractCheckleaveToken in class AbstractCheckast - the token leavingCopyright © 2001-2019. All Rights Reserved.