Class TokenDocument<T extends GenericToken>

    • Constructor Detail

      • TokenDocument

        public TokenDocument​(String fullText)
    • Method Detail

      • getFullText

        public String getFullText()
        Returns the original text of the file (without escaping).
      • lineNumberFromOffset

        public int lineNumberFromOffset​(int offset)
      • columnFromOffset

        public int columnFromOffset​(int offsetInclusive)
      • getFirstToken

        public abstract T getFirstToken()
        Returns the first token of the token chain.
        Throws:
        IllegalStateException - If the document has not been parsed yet