|
||||||||||
| 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.AbstractFileSetCheck
com.puppycrawl.tools.checkstyle.checks.regexp.RegexpSinglelineCheck
public class RegexpSinglelineCheck
Implementation of a check that looks for a single line in any file type.
| Constructor Summary | |
|---|---|
RegexpSinglelineCheck()
|
|
| Method Summary | |
|---|---|
void |
beginProcessing(String aCharset)
Called when about to be called to process a set of files. |
protected void |
processFiltered(File aFile,
List<String> aLines)
Called to process a file that matches the specified file extensions. |
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 |
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.AbstractFileSetCheck |
|---|
destroy, finishProcessing, fireErrors, getMessageCollector, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher |
| 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 |
| Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Configurable |
|---|
configure |
| Methods inherited from interface com.puppycrawl.tools.checkstyle.api.Contextualizable |
|---|
contextualize |
| Constructor Detail |
|---|
public RegexpSinglelineCheck()
| Method Detail |
|---|
public void beginProcessing(String aCharset)
AbstractFileSetCheck
beginProcessing in interface FileSetCheckbeginProcessing in class AbstractFileSetCheckaCharset - the character set used to read the files.
protected void processFiltered(File aFile,
List<String> aLines)
AbstractFileSetCheck
processFiltered in class AbstractFileSetCheckaFile - the file to be processedaLines - an immutable list of the contents of the file.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.
|
Back to the Checkstyle Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||