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 voidabort()Abort the source file being generated.java.lang.StringtoString()protected voidwriteString(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:SourceWriterAbort the source file being generated.- Specified by:
abortin interfaceSourceWriter- Specified by:
abortin classSourceWriterBase
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
writeString
protected void writeString(java.lang.String s)
Description copied from class:SourceWriterBaseWrite a string to the underlying output.- Specified by:
writeStringin classSourceWriterBase
-
-