| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CodeWriter | append(CharSequence
The character sequence to append. If csq)csq is
null, then the four characters "null" are
appended to this writer.Overrides java. Implements java. Appends the specified character sequence to this writer. |
| public CodeWriter | append(CharSequence
The character sequence from which a subsequence will be
appended. If csq, int csq is null, then characters
will be appended as if csq contained the four
characters "null".The index of the first character in the subsequence start, int The index of the character following the last character in the
subsequence end)Overrides java. Implements java. Appends a subsequence of the specified character sequence to this writer. |
| public CodeWriter | append(char
The 16-bit character to append c)Overrides java. Implements java. Appends the specified character to this writer. |
| public CodeWriter | |
| public CodeWriter | |
| public CodeWriter | format(String
A format string as described in Format string syntax. format, Object... Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
The Java Virtual Machine Specification.
The behaviour on a
args)null argument depends on the conversion.Overrides java. Writes a formatted string to this writer using the specified format string and arguments. |
| public CodeWriter | format(Locale l, String
A format string as described in Format string syntax. format, Object... Arguments referenced by the format specifiers in the format
string. If there are more arguments than format specifiers, the
extra arguments are ignored. The number of arguments is
variable and may be zero. The maximum number of arguments is
limited by the maximum dimension of a Java array as defined by
The Java Virtual Machine Specification.
The behaviour on a
args)null argument depends on the conversion.Overrides java. Writes a formatted string to this writer using the specified format string and arguments. |
| public CodeWriter | |
| public String | |
| public CodeWriter | |
| public int | |
| public CodeWriter | Returns: this objectthe new size size)Set the current indentation size, this can only be done when the current indentation is |
| public CodeWriter | |
| public CodeWriter | |
| public void | println()
Overrides java. Terminates the current line by writing the line separator string. |
| public CodeWriter | |
| public CodeWriter | |
| public void | write(String
A String s, int Offset from which to start writing characters off, int Number of characters to write len)Overrides java. Writes a portion of a string. |
| public void | write(int
int specifying a character to be written. c)Overrides java. Writes a single character. |
| public Writer | |
| public CodeWriter |
| first | back to summary |
|---|---|
| private boolean first | |
| indent | back to summary |
|---|---|
| private int indent | |
| indentSize | back to summary |
|---|---|
| private int indentSize | |
| CodeWriter | back to summary |
|---|---|
| public CodeWriter(Writer out) | |
| append | back to summary |
|---|---|
| public CodeWriter append(CharSequence csq) Overrides java. Implements java. Doc from java. Appends the specified character sequence to this writer. An invocation of this method of the form out.write(csq.toString()) Depending on the specification of
| |
| append | back to summary |
|---|---|
| public CodeWriter append(CharSequence csq, int start, int end) Overrides java. Implements java. Doc from java. Appends a subsequence of the specified character sequence to this writer. An invocation of this method of the form
out.write(csq.subSequence(start, end).toString())
| |
| append | back to summary |
|---|---|
| public CodeWriter append(char c) Overrides java. Implements java. Doc from java. Appends the specified character to this writer. An invocation of this method of the form out.write(c)
| |
| code | back to summary |
|---|---|
| public CodeWriter code(String string) Print the specified
| |
| codeln | back to summary |
|---|---|
| public CodeWriter codeln(String line) Print the specified
| |
| format | back to summary |
|---|---|
| public CodeWriter format(String format, Object... args) Overrides java. Doc from java. Writes a formatted string to this writer using the specified format string and arguments. If automatic flushing is enabled, calls to this method will flush the output buffer. The locale always used is the one returned by
| |
| format | back to summary |
|---|---|
| public CodeWriter format(Locale l, String format, Object... args) Overrides java. Doc from java. Writes a formatted string to this writer using the specified format string and arguments. If automatic flushing is enabled, calls to this method will flush the output buffer.
| |
| indent | back to summary |
|---|---|
| public CodeWriter indent() Increment the current indentation.
| |
| indentation | back to summary |
|---|---|
public String indentation()
| |
| indented | back to summary |
|---|---|
| public CodeWriter indented(Runnable block) | |
| indentSize | back to summary |
|---|---|
public int indentSize()
| |
| indentSize | back to summary |
|---|---|
| public CodeWriter indentSize(int size) Set the current indentation size, this can only be done when the current indentation is
| |
| javaImport | back to summary |
|---|---|
| public CodeWriter javaImport(String name) Append the
| |
| newLine | back to summary |
|---|---|
| public CodeWriter newLine() Hides java. Print a new line char.
| |
| println | back to summary |
|---|---|
| public void println() Overrides java. Doc from java. Terminates the current line by writing the line separator string. The
line separator is | |
| stmt | back to summary |
|---|---|
| public CodeWriter stmt(String statement) This function prints an indentation before the
| |
| unindent | back to summary |
|---|---|
| public CodeWriter unindent() Decrement the current indentation.
| |
| write | back to summary |
|---|---|
| public void write(String s, int off, int len) Overrides java. Doc from java. Writes a portion of a string. | |
| write | back to summary |
|---|---|
| public void write(int c) Overrides java. Doc from java. Writes a single character.
| |
| writer | back to summary |
|---|---|
public Writer writer()
| |
| writeSeq | back to summary |
|---|---|
| public CodeWriter writeSeq(Stream<String> sequence, String delimiter) Write a
| |