Class ChunkToken

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class ChunkToken
    extends antlr.CommonToken
    Tracks the various string and attribute chunks discovered by the lexer. Subclassed CommonToken so that I could pass the indentation to the parser, which will add it to the ASTExpr created for the $...$ attribute reference.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String indentation  
      • Fields inherited from class antlr.CommonToken

        col, line, text
      • Fields inherited from class antlr.Token

        badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP, type
    • Constructor Summary

      Constructors 
      Constructor Description
      ChunkToken()  
      ChunkToken​(int type, java.lang.String text, java.lang.String indentation)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getIndentation()  
      void setIndentation​(java.lang.String indentation)  
      java.lang.String toString()  
      • Methods inherited from class antlr.CommonToken

        getColumn, getLine, getText, setColumn, setLine, setText
      • Methods inherited from class antlr.Token

        getFilename, getType, setFilename, setType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • indentation

        protected java.lang.String indentation
    • Constructor Detail

      • ChunkToken

        public ChunkToken()
      • ChunkToken

        public ChunkToken​(int type,
                          java.lang.String text,
                          java.lang.String indentation)
    • Method Detail

      • getIndentation

        public java.lang.String getIndentation()
      • setIndentation

        public void setIndentation​(java.lang.String indentation)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class antlr.CommonToken