public class JavaSourceWriter extends SourceWriterBase
Experimental API - subject to change.
Constructor and Description |
---|
JavaSourceWriter(AbortablePrintWriter printWriter,
String targetPackageName,
Iterable<String> imports,
boolean isClass,
String classJavaDocComment,
Iterable<String> annotationDeclarations,
String targetClassShortName,
String superClassName,
Iterable<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(String s)
Write a string to the underlying output.
|
beginJavaDocComment, endJavaDocComment, indent, indentln, indentln, outdent, print, print, println, println, println
public JavaSourceWriter(AbortablePrintWriter printWriter, String targetPackageName, Iterable<String> imports, boolean isClass, String classJavaDocComment, Iterable<String> annotationDeclarations, String targetClassShortName, String superClassName, Iterable<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(String s)
SourceWriterBase
writeString
in class SourceWriterBase
Copyright © 2018. All rights reserved.