public class RegexpMultilineCheck extends AbstractFileSetCheck
AutomaticBean.OutputStreamOptions
Constructor and Description |
---|
RegexpMultilineCheck() |
Modifier and Type | Method and Description |
---|---|
void |
beginProcessing(String charset)
Called when about to be called to process a set of files.
|
protected void |
processFiltered(File file,
FileText fileText)
Called to process a file that matches the specified file extensions.
|
void |
setFormat(String format)
Sets the format of the regular expression to match.
|
void |
setIgnoreCase(boolean ignoreCase)
Sets whether to ignore case when matching.
|
void |
setMaximum(int maximum)
Sets the maximum number of matches required per file.
|
void |
setMessage(String message)
Sets the message to report for a match.
|
void |
setMinimum(int minimum)
Sets the minimum number of matches required per file.
|
addMessages, destroy, finishProcessing, fireErrors, getFileExtensions, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
configure, contextualize, getConfiguration, setupChild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure
contextualize
public RegexpMultilineCheck()
public void beginProcessing(String charset)
FileSetCheck
beginProcessing
in interface FileSetCheck
beginProcessing
in class AbstractFileSetCheck
charset
- the character set used to read the files.protected void processFiltered(File file, FileText fileText)
AbstractFileSetCheck
processFiltered
in class AbstractFileSetCheck
file
- the file to be processedfileText
- the contents of the file.public 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.Copyright © 2001–2018. All rights reserved.