Class STLexer.STToken

  • All Implemented Interfaces:
    Serializable, org.antlr.runtime.Token
    Enclosing class:
    STLexer


    public static class STLexer.STToken
    extends org.antlr.runtime.CommonToken
    We build STToken tokens instead of relying on CommonToken so we can override toString(). It just converts token types to token names like 23 to "LDELIM".
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.antlr.runtime.CommonToken

        channel, charPositionInLine, index, input, line, start, stop, text, type
      • Fields inherited from interface org.antlr.runtime.Token

        DEFAULT_CHANNEL, DOWN, EOF, EOR_TOKEN_TYPE, HIDDEN_CHANNEL, INVALID_TOKEN, INVALID_TOKEN_TYPE, MIN_TOKEN_TYPE, SKIP_TOKEN, UP
    • Constructor Summary

      Constructors

      Constructor and Description
      STToken(org.antlr.runtime.CharStream input, int type, int start, int stop)
       
      STToken(int type, String text)
       
    • Method Summary

      Modifier and Type Method and Description
      String toString()
       
      • Methods inherited from class org.antlr.runtime.CommonToken

        getChannel, getCharPositionInLine, getInputStream, getLine, getStartIndex, getStopIndex, getText, getTokenIndex, getType, setChannel, setCharPositionInLine, setInputStream, setLine, setStartIndex, setStopIndex, setText, setTokenIndex, setType
    • Constructor Detail

      • STToken

        public STToken(org.antlr.runtime.CharStream input,
                       int type,
                       int start,
                       int stop)
      • STToken

        public STToken(int type,
                       String text)
    • Method Detail

      • toString

        public String toString()