Package com.acrolinx.sidebar
Class LookupRanges
- java.lang.Object
-
- com.acrolinx.sidebar.LookupRanges
-
- Direct Known Subclasses:
LookupRangesDiff
public abstract class LookupRanges extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description LookupRanges()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.util.Optional<java.util.List<? extends AbstractMatch>>
getMatchesWithCorrectedRanges(java.lang.String checkedText, java.lang.String changedText, java.util.List<? extends AbstractMatch> matches)
Abstract method used to get the current location of matches.
-
-
-
Method Detail
-
getMatchesWithCorrectedRanges
public abstract java.util.Optional<java.util.List<? extends AbstractMatch>> getMatchesWithCorrectedRanges(java.lang.String checkedText, java.lang.String changedText, java.util.List<? extends AbstractMatch> matches)
Abstract method used to get the current location of matches. As the location within the current document might have changed since the last check.- Parameters:
checkedText
- The current text as it was when a check was performed on it.changedText
- The current text within the editor.matches
- The matches as given for the checked text.- Returns:
- An Optional with a list with the corrected ranges will be returned. In case the text within these ranges is not present anymore an empty Optional will be returned.
-
-