Package io.codemodder
Interface IncludesExcludes
- All Known Implementing Classes:
IncludesExcludes.Default,IncludesExcludes.MatchesEverything
public interface IncludesExcludes
This is the main interaction point with types for detecting if a path should be included.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Method Summary
Modifier and TypeMethodDescriptionstatic IncludesExcludesany()Return anIncludesExcludesthat matches all files and lines.Do we have any includes that match the file and line number?static PathMatcherparsePattern(File repositoryRoot, String pattern) booleanshouldInspect(File file) Do we have any includes that include this file?static IncludesExcludesCreate anIncludesExcludes.
-
Method Details
-
shouldInspect
Do we have any includes that include this file? -
getIncludesExcludesForFile
Do we have any includes that match the file and line number? -
withSettings
static IncludesExcludes withSettings(File repositoryRoot, List<String> includePatterns, List<String> excludePatterns) Create anIncludesExcludes.- Throws:
NullPointerException- if any value is null
-
parsePattern
-
any
Return anIncludesExcludesthat matches all files and lines.
-