public class JavadocTypeCheck extends AbstractCheck
Does not perform checks for author and version tags for inner classes, as they should be redundant because of outer class.
AutomaticBean.OutputStreamOptions| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MSG_JAVADOC_MISSING
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_MISSING_TAG
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_TAG_FORMAT
A key is pointing to the warning message text in "messages.properties"
file.
|
static java.lang.String |
MSG_UNKNOWN_TAG
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 |
|---|
JavadocTypeCheck() |
| 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 |
setAllowedAnnotations(java.lang.String... userAnnotations)
Sets list of annotations.
|
void |
setAllowMissingParamTags(boolean flag)
Controls whether to allow a type which has type parameters to
omit matching param tags in the javadoc.
|
void |
setAllowUnknownTags(boolean flag)
Controls whether to flag errors for unknown tags.
|
void |
setAuthorFormat(java.util.regex.Pattern pattern)
Set the author tag pattern.
|
void |
setExcludeScope(Scope excludeScope)
Set the excludeScope.
|
void |
setScope(Scope scope)
Sets the scope to check.
|
void |
setVersionFormat(java.util.regex.Pattern pattern)
Set the version format pattern.
|
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 java.lang.String MSG_JAVADOC_MISSING
public static final java.lang.String MSG_UNKNOWN_TAG
public static final java.lang.String MSG_TAG_FORMAT
public static final java.lang.String MSG_MISSING_TAG
public static final java.lang.String MSG_UNUSED_TAG
public static final java.lang.String MSG_UNUSED_TAG_GENERAL
public JavadocTypeCheck()
public void setExcludeScope(Scope excludeScope)
excludeScope - a scope.public void setAuthorFormat(java.util.regex.Pattern pattern)
pattern - a pattern.public void setVersionFormat(java.util.regex.Pattern pattern)
pattern - a pattern.public void setAllowMissingParamTags(boolean flag)
flag - a Boolean valuepublic void setAllowUnknownTags(boolean flag)
flag - a Boolean valuepublic void setAllowedAnnotations(java.lang.String... userAnnotations)
userAnnotations - user's value.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 processCopyright © 2001-2019. All Rights Reserved.