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
ConstructorsModifierConstructorDescriptionprotected
GeneratorWriter
(File file) protected
GeneratorWriter
(File file, String encoding) protected
GeneratorWriter
(File file, String encoding, Files files) protected
GeneratorWriter
(File file, Files files) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
beforeClose
(String string) close()
content()
protected String
encoding()
file()
int
indent()
indent
(int tabs) void
newlineString
(String string) print
(char value) print
(int value) println()
println
(int value) printlnIf
(boolean condition) int
void
printMarginForBlockComment
(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 String
Get a reference to aClass
.Get a reference to a list ofClass
.Get a reference to a list ofClass
.int
tab()
tab
(int tabs) void
toString()
-
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
-