com.google.javascript.jscomp
Class Compiler.CodeBuilder
java.lang.Object
com.google.javascript.jscomp.Compiler.CodeBuilder
- Enclosing class:
- Compiler
public static class Compiler.CodeBuilder
- extends 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.
Method Summary |
int |
getLength()
Returns the length of the text buffer. |
String |
toString()
Returns all text in the text buffer. |
Compiler.CodeBuilder
public Compiler.CodeBuilder()
toString
public String toString()
- Returns all text in the text buffer.
- Overrides:
toString
in class Object
getLength
public int getLength()
- Returns the length of the text buffer.