Package com.google.gwt.codegen.server
Class JavaSourceWriter
java.lang.Object
com.google.gwt.codegen.server.SourceWriterBase
com.google.gwt.codegen.server.JavaSourceWriter
- All Implemented Interfaces:
SourceWriter
A mechanism to write Java source files.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class com.google.gwt.codegen.server.SourceWriterBase
beginJavaDocComment, endJavaDocComment, indent, indentln, indentln, outdent, print, print, println, println, println
-
Constructor Details
-
JavaSourceWriter
public JavaSourceWriter(AbortablePrintWriter printWriter, String targetPackageName, Iterable<String> imports, boolean isClass, String classJavaDocComment, Iterable<String> annotationDeclarations, String targetClassShortName, String superClassName, Iterable<String> interfaceNames) - Parameters:
printWriter
-targetPackageName
-imports
-isClass
-classJavaDocComment
-annotationDeclarations
-targetClassShortName
-superClassName
-interfaceNames
-
-
-
Method Details
-
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
-
close
public void close()Description copied from interface:SourceWriter
Close the source file being generated.- Specified by:
close
in interfaceSourceWriter
- Overrides:
close
in classSourceWriterBase
-
writeString
Description copied from class:SourceWriterBase
Write a string to the underlying output.- Specified by:
writeString
in classSourceWriterBase
- Parameters:
s
-
-