Class ANTLRUtil


  • public class ANTLRUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ANTLRUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void debugNodeStream​(org.antlr.runtime.tree.BufferedTreeNodeStream nodes, java.io.PrintStream out)  
      static void debugTokenStream​(org.antlr.runtime.CommonTokenStream tokens, java.io.PrintStream out)  
      static void debugTree​(org.antlr.runtime.tree.Tree tree, java.io.PrintStream out)  
      static java.lang.String generateArrow​(int charPositionInLine)  
      static java.lang.String getLine​(LineArrayListWriter writer, int lineno)  
      static java.lang.String getLine​(java.io.Reader reader, int lineno)  
      static int tabCompensate​(java.lang.String line, int charPositionInLine)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ANTLRUtil

        public ANTLRUtil()
    • Method Detail

      • debugNodeStream

        public static void debugNodeStream​(org.antlr.runtime.tree.BufferedTreeNodeStream nodes,
                                           java.io.PrintStream out)
      • debugTokenStream

        public static void debugTokenStream​(org.antlr.runtime.CommonTokenStream tokens,
                                            java.io.PrintStream out)
      • debugTree

        public static void debugTree​(org.antlr.runtime.tree.Tree tree,
                                     java.io.PrintStream out)
      • getLine

        public static java.lang.String getLine​(java.io.Reader reader,
                                               int lineno)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getLine

        public static java.lang.String getLine​(LineArrayListWriter writer,
                                               int lineno)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • generateArrow

        public static java.lang.String generateArrow​(int charPositionInLine)
      • tabCompensate

        public static int tabCompensate​(java.lang.String line,
                                        int charPositionInLine)