public class RuleMatchesAsJsonSerializer extends Object
Constructor and Description |
---|
RuleMatchesAsJsonSerializer() |
RuleMatchesAsJsonSerializer(int compactMode) |
RuleMatchesAsJsonSerializer(int compactMode,
Language lang) |
Modifier and Type | Method and Description |
---|---|
String |
ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint) |
String |
ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
String text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason) |
String |
ruleMatchesToJson(List<RuleMatch> matches,
String text,
int contextSize,
DetectedLanguage detectedLang) |
String |
ruleMatchesToJson2(List<CheckResults> res,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint,
JLanguageTool.Mode mode) |
public RuleMatchesAsJsonSerializer()
public RuleMatchesAsJsonSerializer(int compactMode)
public RuleMatchesAsJsonSerializer(int compactMode, Language lang)
public String ruleMatchesToJson(List<RuleMatch> matches, String text, int contextSize, DetectedLanguage detectedLang)
public String ruleMatchesToJson(List<RuleMatch> matches, List<RuleMatch> hiddenMatches, String text, int contextSize, DetectedLanguage detectedLang, String incompleteResultsReason)
incompleteResultsReason
- use a string that explains why results are incomplete (e.g. due to a timeout) -
a 'warnings' section will be added to the JSON. Use null
if results are complete.public String ruleMatchesToJson(List<RuleMatch> matches, List<RuleMatch> hiddenMatches, AnnotatedText text, int contextSize, DetectedLanguage detectedLang, String incompleteResultsReason, boolean showPremiumHint)
incompleteResultsReason
- use a string that explains why results are incomplete (e.g. due to a timeout) -
a 'warnings' section will be added to the JSON. Use null
if results are complete.public String ruleMatchesToJson2(List<CheckResults> res, List<RuleMatch> hiddenMatches, AnnotatedText text, int contextSize, DetectedLanguage detectedLang, String incompleteResultsReason, boolean showPremiumHint, JLanguageTool.Mode mode)
incompleteResultsReason
- use a string that explains why results are incomplete (e.g. due to a timeout) -
a 'warnings' section will be added to the JSON. Use null
if results are complete.