Package org.languagetool.rules
Class SymbolLocator
java.lang.Object
org.languagetool.rules.SymbolLocator
Helper class for
GenericUnpairedBracketsRule to identify
symbols indexed with integers.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final AnalyzedSentenceprivate final intprivate final intprivate final GenericUnpairedBracketsRule.Symbol -
Constructor Summary
ConstructorsConstructorDescriptionSymbolLocator(GenericUnpairedBracketsRule.Symbol symbol, int index, int startPos, AnalyzedSentence sentence, int sentenceIndex) -
Method Summary
Modifier and TypeMethodDescription(package private) intgetIndex()(package private) AnalyzedSentenceint(package private) inttoString()
-
Field Details
-
symbol
-
index
private final int index -
startPos
private final int startPos -
sentence
-
sentenceIndex
private final int sentenceIndex
-
-
Constructor Details
-
SymbolLocator
SymbolLocator(GenericUnpairedBracketsRule.Symbol symbol, int index, int startPos, AnalyzedSentence sentence, int sentenceIndex)
-
-
Method Details
-
getSymbol
- Returns:
- The symbol in the locator
- Since:
- 2.5 - API changed in 5.3
-
getIndex
int getIndex()- Since:
- 2.9
-
getStartPos
int getStartPos()- Since:
- 2.9
-
getSentence
AnalyzedSentence getSentence()- Since:
- 4.0
-
getSentenceIndex
public int getSentenceIndex()- Since:
- 5.3
-
toString
-