Package com.qulice.checkstyle
Class ConditionalRegexpMultilineCheck
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.AbstractAutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
-
- com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck
-
- com.qulice.checkstyle.ConditionalRegexpMultilineCheck
-
- All Implemented Interfaces:
com.puppycrawl.tools.checkstyle.api.Configurable
,com.puppycrawl.tools.checkstyle.api.Contextualizable
,com.puppycrawl.tools.checkstyle.api.FileSetCheck
public final class ConditionalRegexpMultilineCheck extends com.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck
Performs multiline regexp match only if a regexp condition passes.- Since:
- 0.5
-
-
Constructor Summary
Constructors Constructor Description ConditionalRegexpMultilineCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
processFiltered(File file, com.puppycrawl.tools.checkstyle.api.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, setMatchAcrossLines, setMaximum, setMessage, setMinimum
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
addViolations, destroy, finishProcessing, fireErrors, getFileContents, getFileExtensions, getMessageDispatcher, getTabWidth, getViolations, init, log, log, process, setFileContents, setFileExtensions, setMessageDispatcher, setTabWidth
-
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.AbstractAutomaticBean
configure, contextualize, getConfiguration, setupChild
-
-
-
-
Method Detail
-
processFiltered
public void processFiltered(File file, com.puppycrawl.tools.checkstyle.api.FileText lines)
- Overrides:
processFiltered
in classcom.puppycrawl.tools.checkstyle.checks.regexp.RegexpMultilineCheck
-
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.
-
-