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 classGiven a set of lines to exclude, determine if we should allow changes to this line.static classGiven a set of lines to include, determine if we should allow changes to this line.static class -
Method Summary
Modifier and TypeMethodDescriptionstatic LineIncludesExcludesfromExcludedLines(Set<Integer> allowedLines) static LineIncludesExcludesfromIncludedLines(Set<Integer> allowedLines) booleanmatches(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
-