Package io.codemodder
Interface LineIncludesExcludes
- All Known Implementing Classes:
LineIncludesExcludes.ExcludeBasedLineIncludesExcludes
,LineIncludesExcludes.IncludeBasedLineIncludesExcludes
,LineIncludesExcludes.MatchesEverything
public interface LineIncludesExcludes
For a given file, this type provides an API for callers to understand if certain line numbers are
allowed.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Given a set of lines to exclude, determine if we should allow changes to this line.static class
Given a set of lines to include, determine if we should allow changes to this line.static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic LineIncludesExcludes
fromExcludedLines
(Set<Integer> allowedLines) static LineIncludesExcludes
fromIncludedLines
(Set<Integer> allowedLines) boolean
matches
(int line) Return true if the include/exclude rules allow changes to this line.
-
Method Details
-
matches
boolean matches(int line) Return true if the include/exclude rules allow changes to this line. -
fromIncludedLines
-
fromExcludedLines
-