Class SourceCodePrinter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Appendable out  
    • Constructor Summary

      Constructors 
      Constructor Description
      SourceCodePrinter​(java.lang.Appendable out)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void finish()  
      int getIndent()  
      void indent​(int offset)  
      void newLine()  
      void print​(java.lang.Object... args)  
      void print​(java.lang.String s)  
      void printf​(java.lang.String fmt, java.lang.Object... args)  
      void println()  
      void println​(java.lang.Object... args)  
      void printModifiers​(int mods)  
      void printRefClassName​(java.lang.String cn)  
      void printRefClassName​(java.lang.String className, java.lang.String[] typeArgs)  
      void setIndent​(int indent)  
      • Methods inherited from class java.lang.Object

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

      • out

        protected final java.lang.Appendable out
    • Constructor Detail

      • SourceCodePrinter

        public SourceCodePrinter​(java.lang.Appendable out)
    • Method Detail

      • getIndent

        public int getIndent()
      • setIndent

        public void setIndent​(int indent)
      • finish

        public void finish()
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • newLine

        public void newLine()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • indent

        public void indent​(int offset)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • println

        public void println​(java.lang.Object... args)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • printRefClassName

        public void printRefClassName​(java.lang.String cn)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • printRefClassName

        public void printRefClassName​(java.lang.String className,
                                      java.lang.String[] typeArgs)
                               throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.String s)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • print

        public void print​(java.lang.Object... args)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • printf

        public void printf​(java.lang.String fmt,
                           java.lang.Object... args)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • printModifiers

        public void printModifiers​(int mods)
                            throws java.io.IOException
        Throws:
        java.io.IOException