public class ImportControlCheck extends Check
Modifier and Type | Field and Description |
---|---|
static String |
MSG_DISALLOWED
A key is pointing to the warning message text in "messages.properties"
file.
|
static String |
MSG_MISSING_FILE
A key is pointing to the warning message text in "messages.properties"
file.
|
static String |
MSG_UNKNOWN_PKG
A key is pointing to the warning message text in "messages.properties"
file.
|
Constructor and Description |
---|
ImportControlCheck() |
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.
|
void |
setFile(String name)
Set the pnameter for the file containing the import control
configuration.
|
void |
setUrl(String url)
Set the parameter for the url containing the import control
configuration.
|
void |
visitToken(DetailAST ast)
Called to process a token.
|
destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getRequiredTokens, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public static final String MSG_MISSING_FILE
public static final String MSG_UNKNOWN_PKG
public static final String MSG_DISALLOWED
public int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public int[] getAcceptableTokens()
Check
getAcceptableTokens
in class Check
TokenTypes
public void beginTree(DetailAST rootAST)
Check
public void visitToken(DetailAST ast)
Check
visitToken
in class Check
ast
- the token to processpublic void setUrl(String url)
url
- the url of the file to load.org.apache.commons.beanutils.ConversionException
- on error loading the file.public void setFile(String name)
name
- the name of the file to load.org.apache.commons.beanutils.ConversionException
- on error loading the file.Copyright © 2001–2015. All rights reserved.