public class JavadocVariableCheck extends AbstractCheck
serialVersionUID fields.| Modifier and Type | Field and Description |
|---|---|
private Scope |
excludeScope
The visibility scope where Javadoc comments shouldn't be checked.
|
private java.util.regex.Pattern |
ignoreNamePattern
The pattern to ignore variable name.
|
static java.lang.String |
MSG_JAVADOC_MISSING
A key is pointing to the warning message text in "messages.properties"
file.
|
private Scope |
scope
The scope to check.
|
| Constructor and Description |
|---|
JavadocVariableCheck() |
| 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.
|
private boolean |
isIgnored(DetailAST ast)
Decides whether the variable name of an AST is in the ignore list.
|
void |
setExcludeScope(Scope excludeScope)
Set the excludeScope.
|
void |
setIgnoreNamePattern(java.util.regex.Pattern pattern)
Sets the variable names to ignore in the check.
|
void |
setScope(Scope scope)
Sets the scope to check.
|
private boolean |
shouldCheck(DetailAST ast)
Whether we should check this node.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
beginTree, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokensgetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic static final java.lang.String MSG_JAVADOC_MISSING
private Scope scope
private Scope excludeScope
private java.util.regex.Pattern ignoreNamePattern
public void setScope(Scope scope)
scope - a scope.public void setExcludeScope(Scope excludeScope)
excludeScope - a scope.public void setIgnoreNamePattern(java.util.regex.Pattern pattern)
pattern - a pattern.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 processprivate boolean isIgnored(DetailAST ast)
ast - the AST to checkprivate boolean shouldCheck(DetailAST ast)
ast - a given node.