public class SuggestionReplacer extends Object
| Constructor and Description |
|---|
SuggestionReplacer(PlainTextMapping textMapping,
String originalText) |
SuggestionReplacer(PlainTextMapping textMapping,
String originalText,
ErrorMarker errorMarker) |
SuggestionReplacer(PlainTextMapping textMapping,
String originalText,
String errorMarkerStart,
String errorMarkerEnd)
Deprecated.
use
SuggestionReplacer(PlainTextMapping, String, ErrorMarker) instead (deprecated since 2.6) |
| Modifier and Type | Method and Description |
|---|---|
List<RuleMatchApplication> |
applySuggestionsToOriginalText(RuleMatch match)
Applies the suggestions from the rule to the original text.
|
public SuggestionReplacer(PlainTextMapping textMapping, String originalText)
originalText - the original text that includes markuppublic SuggestionReplacer(PlainTextMapping textMapping, String originalText, ErrorMarker errorMarker)
public SuggestionReplacer(PlainTextMapping textMapping, String originalText, String errorMarkerStart, String errorMarkerEnd)
SuggestionReplacer(PlainTextMapping, String, ErrorMarker) instead (deprecated since 2.6)public List<RuleMatchApplication> applySuggestionsToOriginalText(RuleMatch match)