Class GrammarToken



  • public class GrammarToken
    extends CommonToken
    A CommonToken that can also track it's original location, derived from options on the element ref like BEGIN .
    • Field Detail

      • originalTokenIndex

        public int originalTokenIndex
    • Constructor Detail

      • GrammarToken

        public GrammarToken(Grammar g,
                            Token oldToken)
    • Method Detail

      • getCharPositionInLine

        public int getCharPositionInLine()
      • getLine

        public int getLine()
      • getTokenIndex

        public int getTokenIndex()
      • getStartIndex

        public int getStartIndex()
      • getStopIndex

        public int getStopIndex()
      • toString

        public String toString()