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, visitToken
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity
configure, contextualize, finishLocalSetup, getConfiguration, setupChild
public int[] getDefaultTokens()
Check
getDefaultTokens
in class Check
TokenTypes
public void init()
Check
public void beginTree(DetailAST aRootAST)
Check
public 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–2017. All rights reserved.