public class JavaSourceWriter extends SourceWriterBase
Experimental API - subject to change.
Constructor and Description |
---|
JavaSourceWriter(AbortablePrintWriter printWriter,
java.lang.String targetPackageName,
java.lang.Iterable<java.lang.String> imports,
boolean isClass,
java.lang.String classJavaDocComment,
java.lang.Iterable<java.lang.String> annotationDeclarations,
java.lang.String targetClassShortName,
java.lang.String superClassName,
java.lang.Iterable<java.lang.String> interfaceNames) |
Modifier and Type | Method and Description |
---|---|
void |
abort()
Abort the source file being generated.
|
void |
close()
Close the source file being generated.
|
protected void |
writeString(java.lang.String s)
Write a string to the underlying output.
|
beginJavaDocComment, endJavaDocComment, indent, indentln, indentln, outdent, print, print, println, println, println
public JavaSourceWriter(AbortablePrintWriter printWriter, java.lang.String targetPackageName, java.lang.Iterable<java.lang.String> imports, boolean isClass, java.lang.String classJavaDocComment, java.lang.Iterable<java.lang.String> annotationDeclarations, java.lang.String targetClassShortName, java.lang.String superClassName, java.lang.Iterable<java.lang.String> interfaceNames)
printWriter
- targetPackageName
- imports
- isClass
- classJavaDocComment
- annotationDeclarations
- targetClassShortName
- superClassName
- interfaceNames
- public void abort()
SourceWriter
abort
in interface SourceWriter
abort
in class SourceWriterBase
public void close()
SourceWriter
close
in interface SourceWriter
close
in class SourceWriterBase
protected void writeString(java.lang.String s)
SourceWriterBase
writeString
in class SourceWriterBase