Class RegexpOnFilenameOrgCheck
- java.lang.Object
-
- com.puppycrawl.tools.checkstyle.api.AutomaticBean
-
- com.puppycrawl.tools.checkstyle.api.AbstractViolationReporter
-
- com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
-
- com.thomasjensen.checkstyle.addons.checks.regexp.RegexpOnFilenameOrgCheck
-
- All Implemented Interfaces:
Configurable
,Contextualizable
,FileSetCheck
public class RegexpOnFilenameOrgCheck extends AbstractFileSetCheck
This check applies a given regular expression to the names of files.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.puppycrawl.tools.checkstyle.api.AutomaticBean
AutomaticBean.OutputStreamOptions
-
-
Constructor Summary
Constructors Constructor Description RegexpOnFilenameOrgCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
processFiltered(File pFile, FileText pLines)
protected void
processFiltered(File pFile, List<String> pLines)
void
setMode(String pMode)
void
setRegexp(String pRegexp)
Setter.void
setSelection(String pSelection)
Setter.void
setSimple(boolean pSimple)
-
Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractFileSetCheck
addViolations, beginProcessing, 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.api.AutomaticBean
configure, contextualize, getConfiguration, setupChild
-
Methods inherited from class java.lang.Object
clone, equals, 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
-
setSelection
public void setSelection(String pSelection)
Setter.- Parameters:
pSelection
- the new value ofselection
-
setMode
public void setMode(String pMode)
-
setSimple
public void setSimple(boolean pSimple)
-
setRegexp
public void setRegexp(String pRegexp)
Setter.- Parameters:
pRegexp
- the new value ofregexp
-
processFiltered
protected void processFiltered(File pFile, FileText pLines)
- Specified by:
processFiltered
in classAbstractFileSetCheck
-
-