Class Compiler.CodeBuilder

  • Enclosing class:
    Compiler

    public static class Compiler.CodeBuilder
    extends java.lang.Object
    Stores a buffer of text to which more can be appended. This is just like a StringBuilder except that we also track the number of lines.
    • Constructor Summary

      Constructors 
      Constructor Description
      CodeBuilder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getLength()
      Returns the length of the text buffer.
      java.lang.String toString()
      Returns all text in the text buffer.
      • Methods inherited from class java.lang.Object

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

      • CodeBuilder

        public CodeBuilder()
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns all text in the text buffer.
        Overrides:
        toString in class java.lang.Object
      • getLength

        public int getLength()
        Returns the length of the text buffer.