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 class
static class
Matches every file, indicates that the codemods should use their own filtering. -
Method Summary
Modifier and TypeMethodDescriptionstatic IncludesExcludes
any()
Return anIncludesExcludes
that matches all files and lines.Do we have any includes that match the file and line number?static PathMatcher
parsePattern
(File repositoryRoot, String pattern) boolean
shouldInspect
(File file) Do we have any includes that include this file?static IncludesExcludes
Create 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 anIncludesExcludes
that matches all files and lines.
-