Package com.qulice.checkstyle
Class ConditionalRegexpMultilineCheck
-
- All Implemented Interfaces:
Configurable
,Contextualizable
,FileSetCheck
public final class ConditionalRegexpMultilineCheck extends RegexpMultilineCheck
Performs multiline regexp match only if a regexp condition passes.- Since:
- 0.5
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
AutomaticBean.OutputStreamOptions
-
-
Constructor Summary
Constructors Constructor Description ConditionalRegexpMultilineCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processFiltered(File file, FileText lines)
void
setCondition(String cond)
Condition regexp that has to match before checking the core one.-
Methods inherited from class com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck
beginProcessing, setFormat, setIgnoreCase, setMaximum, setMessage, setMinimum
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
addMessages, destroy, finishProcessing, fireErrors, getFileExtensions, getMessageDispatcher, init, log, log, process, setFileExtensions, setMessageDispatcher
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
finishLocalSetup, getCustomMessages, getId, getMessageBundle, getSeverity, getSeverityLevel, setId, setSeverity
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
configure, contextualize, 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
-
-
-
-
Method Detail
-
processFiltered
public void processFiltered(File file, FileText lines)
- Overrides:
processFiltered
in classRegexpMultilineCheck
-
setCondition
public void setCondition(String cond)
Condition regexp that has to match before checking the core one.- Parameters:
cond
- Regexp that has to match in file.
-
-