Class SymbolLocator

java.lang.Object
org.languagetool.rules.SymbolLocator

public class SymbolLocator extends Object
Helper class for GenericUnpairedBracketsRule to identify symbols indexed with integers.
  • Field Details

    • symbol

      private final String symbol
    • index

      private final int index
    • startPos

      private final int startPos
    • sentence

      private final AnalyzedSentence sentence
  • Constructor Details

  • Method Details

    • getSymbol

      public String getSymbol()
      Returns:
      The symbol in the locator
      Since:
      2.5
    • getIndex

      int getIndex()
      Since:
      2.9
    • getStartPos

      int getStartPos()
      Since:
      2.9
    • getSentence

      AnalyzedSentence getSentence()
      Since:
      4.0
    • toString

      public String toString()
      Overrides:
      toString in class Object