Package com.google.gwt.codegen.server
Class StringSourceWriter
- java.lang.Object
-
- com.google.gwt.codegen.server.SourceWriterBase
-
- com.google.gwt.codegen.server.StringSourceWriter
-
- All Implemented Interfaces:
SourceWriter
public class StringSourceWriter extends SourceWriterBase
A SourceWriter that accumulates source and returns it in thetoString()
method.Experimental API - subject to change.
-
-
Constructor Summary
Constructors Constructor Description StringSourceWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
abort()
Abort the source file being generated.java.lang.String
toString()
protected void
writeString(java.lang.String s)
Write a string to the underlying output.-
Methods inherited from class com.google.gwt.codegen.server.SourceWriterBase
beginJavaDocComment, close, endJavaDocComment, indent, indentln, indentln, outdent, print, print, println, println, println
-
-
-
-
Method Detail
-
abort
public void abort()
Description copied from interface:SourceWriter
Abort the source file being generated.- Specified by:
abort
in interfaceSourceWriter
- Specified by:
abort
in classSourceWriterBase
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
writeString
protected void writeString(java.lang.String s)
Description copied from class:SourceWriterBase
Write a string to the underlying output.- Specified by:
writeString
in classSourceWriterBase
-
-