Package com.acrolinx.sidebar
Class LookupRanges
java.lang.Object
com.acrolinx.sidebar.LookupRanges
- Direct Known Subclasses:
LookupRangesDiff
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<List<? extends AbstractMatch>>getMatchesWithCorrectedRanges(String checkedText, String changedText, List<? extends AbstractMatch> matches) Abstract method used to get the current location of matches.
-
Constructor Details
-
LookupRanges
public LookupRanges()
-
-
Method Details
-
getMatchesWithCorrectedRanges
public abstract Optional<List<? extends AbstractMatch>> getMatchesWithCorrectedRanges(String checkedText, String changedText, 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.
-