public class CodeWriter extends Object
Constructor and Description |
---|
CodeWriter(OutputStream out) |
CodeWriter(Writer writer) |
Modifier and Type | Method and Description |
---|---|
CodeWriter |
close() |
CodeWriter |
flush() |
String |
getIndentation() |
CodeWriter |
indent() |
CodeWriter |
outdent() |
CodeWriter |
print() |
CodeWriter |
print(String s) |
CodeWriter |
print(String s,
Object... args) |
CodeWriter |
printif(boolean condition,
String s) |
CodeWriter |
printif(boolean condition,
String s,
Object... args) |
CodeWriter |
println() |
CodeWriter |
println(String s) |
CodeWriter |
println(String s,
Object... args) |
CodeWriter |
printlnif(boolean condition,
String s) |
CodeWriter |
printlnif(boolean condition,
String s,
Object... args) |
CodeWriter |
setIndentation(String indentation) |
public CodeWriter(OutputStream out)
public CodeWriter(Writer writer)
public String getIndentation()
public CodeWriter setIndentation(String indentation)
public CodeWriter indent()
public CodeWriter outdent()
public CodeWriter print(String s, Object... args)
public CodeWriter printif(boolean condition, String s, Object... args)
public CodeWriter print(String s)
public CodeWriter printif(boolean condition, String s)
public CodeWriter print()
public CodeWriter println(String s, Object... args)
public CodeWriter printlnif(boolean condition, String s, Object... args)
public CodeWriter println(String s)
public CodeWriter printlnif(boolean condition, String s)
public CodeWriter println()
public CodeWriter flush()
public CodeWriter close()