|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.puppycrawl.tools.checkstyle.api.AutomaticBean
com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
com.puppycrawl.tools.checkstyle.api.Check
com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineJavaCheck
public class RegexpSinglelineJavaCheck
Implementation of a check that looks for a single line in Java files. Supports ignoring comments for matches.
| Constructor Summary | |
|---|---|
RegexpSinglelineJavaCheck()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.Check |
|---|
destroy, finishTree, getAcceptableTokens, getClassLoader, getFileContents, getLines, getRequiredTokens, getTabWidth, getTokenNames, leaveToken, log, log, setClassLoader, setFileContents, setMessages, setTabWidth, setTokens, visitToken |
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter |
|---|
getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, log, setId, setSeverity |
| Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean |
|---|
configure, contextualize, finishLocalSetup, getConfiguration, setupChild |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexpSinglelineJavaCheck()
| Method Detail |
|---|
public int[] getDefaultTokens()
Check
getDefaultTokens in class CheckTokenTypespublic void init()
Check
init in class Checkpublic void beginTree(DetailAST aRootAST)
Check
beginTree in class CheckaRootAST - the root of the treepublic 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.
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||