Package org.languagetool.rules
Class RemoteRuleResult
java.lang.Object
org.languagetool.rules.RemoteRuleResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Set<AnalyzedSentence> private final booleanprivate final Map<AnalyzedSentence, List<RuleMatch>> private final boolean -
Constructor Summary
ConstructorsConstructorDescriptionRemoteRuleResult(boolean remote, boolean success, List<RuleMatch> matches, List<AnalyzedSentence> processedSentences) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisRemote()booleanmatchesForSentence(AnalyzedSentence sentence) get matches for a specific sentence
-
Field Details
-
remote
private final boolean remote -
success
private final boolean success -
matches
-
processedSentences
-
sentenceMatches
-
-
Constructor Details
-
RemoteRuleResult
public RemoteRuleResult(boolean remote, boolean success, List<RuleMatch> matches, List<AnalyzedSentence> processedSentences)
-
-
Method Details
-
isRemote
public boolean isRemote() -
isSuccess
public boolean isSuccess() -
getMatches
-
matchedSentences
-
processedSentences
-
matchesForSentence
get matches for a specific sentence- Parameters:
sentence- sentence to look up- Returns:
- null if sentence not processed, else returned matches
-