public class RegexpSinglelineJavaCheck extends Check
| Constructor and Description |
|---|
RegexpSinglelineJavaCheck() |
| Modifier and Type | Method and Description |
|---|---|
void |
beginTree(DetailAST aRootAST)
Called before the starting to process a tree.
|
int[] |
getDefaultTokens()
Returns the default token a check is interested in.
|
void |
init()
Initialise the check.
|
void |
setFormat(String aFormat)
Set the format of the regular expression to match.
|
void |
setIgnoreCase(boolean aIgnore)
Set whether to ignore case when matching.
|
void |
setIgnoreComments(boolean aIgnore)
Set whether to ignore comments when matching.
|
void |
setMaximum(int aMaximum)
Set the maximum number of matches required per file.
|
void |
setMessage(String aMessage)
Set the message to report for a match.
|
void |
setMinimum(int aMinimum)
Set the minimum number of matches required per file.
|
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitTokengetCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverityconfigure, contextualize, finishLocalSetup, getConfiguration, setupChildpublic int[] getDefaultTokens()
CheckgetDefaultTokens in class CheckTokenTypespublic void init()
Checkpublic void beginTree(DetailAST aRootAST)
Checkpublic void setFormat(String aFormat)
aFormat - the format of the regular expression to match.public void setMessage(String aMessage)
aMessage - the message to report for a match.public void setMinimum(int aMinimum)
aMinimum - the minimum number of matches required per file.public void setMaximum(int aMaximum)
aMaximum - the maximum number of matches required per file.public void setIgnoreCase(boolean aIgnore)
aIgnore - whether to ignore case when matching.public void setIgnoreComments(boolean aIgnore)
aIgnore - whether to ignore comments when matching.Copyright © 2001-2012. All Rights Reserved.