Module org.jooq.codegen
Package org.jooq.codegen
Class GeneratorWriter<W extends GeneratorWriter<W>>
java.lang.Object
org.jooq.codegen.GeneratorWriter<W>
- Direct Known Subclasses:
JavaWriter,TextWriter
A wrapper for a
PrintWriter
This wrapper postpones the actual write to the wrapped PrintWriter
until all information about the target Java class is available. This way, the
import dependencies can be calculated at the end.
- Author:
- Lukas Eder
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGeneratorWriter(File file) protectedGeneratorWriter(File file, String encoding) protectedGeneratorWriter(File file, String encoding, Files files) protectedGeneratorWriter(File file, Files files) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringbeforeClose(String string) close()content()protected Stringencoding()file()intindent()indent(int tabs) voidnewlineString(String string) print(char value) print(int value) println()println(int value) printlnIf(boolean condition) intvoidprintMarginForBlockComment(int i) Get a reference to aClass.Get a reference to aClass.String[]Get a reference to a list ofClass.protected String[]Get a reference to a list ofClass.protected StringGet a reference to aClass.Get a reference to a list ofClass.Get a reference to a list ofClass.inttab()tab(int tabs) voidtoString()
-
Constructor Details
-
GeneratorWriter
-
GeneratorWriter
-
GeneratorWriter
-
GeneratorWriter
-
-
Method Details
-
tabString
-
tabString
-
newlineString
-
newlineString
-
printMarginForBlockComment
public int printMarginForBlockComment() -
printMarginForBlockComment
public void printMarginForBlockComment(int i) -
file
-
print
-
print
-
print
-
print
-
printlnIf
-
println
-
println
-
println
-
println
-
indentInc
-
indentDec
-
indent
-
indent
public int indent() -
tab
-
tab
public int tab() -
close
-
encoding
-
beforeClose
-
ref
Get a reference to aClass. -
ref
Get a reference to aClass. -
ref
Get a reference to a list ofClass. -
ref
Get a reference to a list ofClass.Subtypes may override this to generate import statements.
-
ref
Get a reference to aClass. -
ref
Get a reference to a list ofClass. -
ref
Get a reference to a list ofClass.Subtypes may override this to generate import statements.
-
content
-
toString
-