Package com.google.gwt.codegen.server
Class SourceWriterBase
java.lang.Object
com.google.gwt.codegen.server.SourceWriterBase
- All Implemented Interfaces:
- SourceWriter
- Direct Known Subclasses:
- JavaSourceWriter,- StringSourceWriter
Base implementation of 
SourceWriter that implements all the indenting
 and keeping track of comments.
 Experimental API - subject to change.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract voidabort()Abort the source file being generated.voidBegin emitting a JavaDoc comment.voidclose()Close the source file being generated.voidEnd emitting a JavaDoc comment.voidindent()Increase indent level.voidPrint a line at an increased indentation level without altering the indent level for the next line.voidFormat and print a line at an increased indentation level without altering the indent level for the next line.voidoutdent()Decrease indent level.voidWrite a string without a line terminator.voidFormat and print a string without a line terminator.voidprintln()Write a line terminator.voidWrite a string with a line terminator.voidFormat and print a string with a line terminator.protected abstract voidWrite a string to the underlying output.
- 
Constructor Details- 
SourceWriterBasepublic SourceWriterBase()
 
- 
- 
Method Details- 
abortpublic abstract void abort()Description copied from interface:SourceWriterAbort the source file being generated.- Specified by:
- abortin interface- SourceWriter
 
- 
beginJavaDocCommentpublic void beginJavaDocComment()Description copied from interface:SourceWriterBegin emitting a JavaDoc comment.- Specified by:
- beginJavaDocCommentin interface- SourceWriter
 
- 
closepublic void close()Description copied from interface:SourceWriterClose the source file being generated.- Specified by:
- closein interface- SourceWriter
 
- 
endJavaDocCommentpublic void endJavaDocComment()Description copied from interface:SourceWriterEnd emitting a JavaDoc comment.- Specified by:
- endJavaDocCommentin interface- SourceWriter
 
- 
indentpublic void indent()Description copied from interface:SourceWriterIncrease indent level.- Specified by:
- indentin interface- SourceWriter
 
- 
indentlnDescription copied from interface:SourceWriterPrint a line at an increased indentation level without altering the indent level for the next line.- Specified by:
- indentlnin interface- SourceWriter
- Parameters:
- string-
 
- 
indentlnDescription copied from interface:SourceWriterFormat and print a line at an increased indentation level without altering the indent level for the next line.- Specified by:
- indentlnin interface- SourceWriter
- Parameters:
- format- format string, as in- String.format(String, Object...)
- args- arguments for the format string
 
- 
outdentpublic void outdent()Description copied from interface:SourceWriterDecrease indent level.- Specified by:
- outdentin interface- SourceWriter
 
- 
printDescription copied from interface:SourceWriterWrite a string without a line terminator.- Specified by:
- printin interface- SourceWriter
- Parameters:
- s-
 
- 
printDescription copied from interface:SourceWriterFormat and print a string without a line terminator.- Specified by:
- printin interface- SourceWriter
- Parameters:
- format- format string, as in- String.format(String, Object...)
- args- arguments for the format string
 
- 
printlnpublic void println()Description copied from interface:SourceWriterWrite a line terminator.- Specified by:
- printlnin interface- SourceWriter
 
- 
printlnDescription copied from interface:SourceWriterWrite a string with a line terminator.- Specified by:
- printlnin interface- SourceWriter
- Parameters:
- string-
 
- 
printlnDescription copied from interface:SourceWriterFormat and print a string with a line terminator.- Specified by:
- printlnin interface- SourceWriter
- Parameters:
- format- format string, as in- String.format(String, Object...)
- args- arguments for the format string
 
- 
writeStringWrite a string to the underlying output.- Parameters:
- s-
 
 
-