public class RegexpSinglelineJavaCheck extends AbstractCheck
AutomaticBean.OutputStreamOptions| Constructor and Description |
|---|
RegexpSinglelineJavaCheck() |
| 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.
|
int[] |
getRequiredTokens()
The tokens that this check must be registered for.
|
void |
setFormat(String format)
Set the format of the regular expression to match.
|
void |
setIgnoreCase(boolean ignoreCase)
Set whether to ignore case when matching.
|
void |
setIgnoreComments(boolean ignore)
Set whether to ignore comments when matching.
|
void |
setMaximum(int maximum)
Set the maximum number of matches required per file.
|
void |
setMessage(String message)
Set the message to report for a match.
|
void |
setMinimum(int minimum)
Set the minimum number of matches required per file.
|
clearMessages, destroy, finishTree, getClassLoader, getFileContents, getLine, getLines, getMessages, getTabWidth, getTokenNames, init, isCommentNodesRequired, leaveToken, log, log, log, setClassLoader, setFileContents, setTabWidth, setTokens, visitTokenfinishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverityconfigure, contextualize, getConfiguration, setupChildpublic RegexpSinglelineJavaCheck()
public int[] getDefaultTokens()
AbstractCheckgetDefaultTokens in class AbstractCheckTokenTypespublic int[] getAcceptableTokens()
AbstractCheckgetAcceptableTokens in class AbstractCheckTokenTypespublic int[] getRequiredTokens()
AbstractCheckgetRequiredTokens in class AbstractCheckTokenTypespublic void beginTree(DetailAST rootAST)
AbstractCheckbeginTree in class AbstractCheckrootAST - the root of the treepublic void setFormat(String format)
format - the format of the regular expression to match.public void setMessage(String message)
message - the message to report for a match.public void setMinimum(int minimum)
minimum - the minimum number of matches required per file.public void setMaximum(int maximum)
maximum - the maximum number of matches required per file.public void setIgnoreCase(boolean ignoreCase)
ignoreCase - whether to ignore case when matching.public void setIgnoreComments(boolean ignore)
ignore - whether to ignore comments when matching.Copyright © 2001–2018. All rights reserved.