public class CodeWriter extends Object
pretty
flag is turned off, indentation and new lines are collapsed into nonPrettyLineSeparator
(defaults to a single space).Constructor and Description |
---|
CodeWriter() |
CodeWriter(OutputStream out) |
CodeWriter(Writer writer) |
public CodeWriter()
public CodeWriter(OutputStream out)
public CodeWriter(Writer writer)
@Deprecated public CodeWriter setFormat(boolean pretty)
setPretty(boolean)
public boolean isPretty()
public CodeWriter setPretty(boolean pretty)
public String getNonPrettyLineSeparator()
public CodeWriter setNonPrettyLineSeparator(String nonPrettyLineSeparator)
public String getIndentation()
public CodeWriter setIndentation(String indentation)
public int getIndentCount()
public CodeWriter setIndentCount(int indentCount)
public CodeWriter indent()
public long getLineCount()
public CodeWriter outdent()
public CodeWriter print(String s, Object... args)
public CodeWriter printif(boolean condition, String s, Object... args)
public CodeWriter printifNotEmpty(String s, Object... args)
@Deprecated public CodeWriter write(String s)
print(String)
public CodeWriter print(String s)
public CodeWriter printif(boolean condition, String s)
public CodeWriter print()
public CodeWriter newLine(boolean force)
public CodeWriter println(String s, Object... args)
public CodeWriter printlnif(boolean condition, String s, Object... args)
public CodeWriter printlnifNotEmpty(String s, Object... args)
public CodeWriter println(String s)
public CodeWriter printlnif(boolean condition, String s)
public CodeWriter printlnif(boolean condition)
@Deprecated public CodeWriter writeNewLine()
println()
public CodeWriter println()
public CodeWriter flush()
public CodeWriter close()
public String getSourceString()
Copyright (c) 2006-2024 North Concepts Inc. All Rights Reserved.