Literals and the elements of expressions are emitted via write(String).
Separators are emitted via writeSeparator(String) because they must be
handled specially when wrapping lines (we don't want to wrap
in between an element and it's separator).
| Modifier and Type | Field and Description |
|---|---|
| public static final int |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public void | |
| public String | |
| public void | |
| public void | |
| public void | |
| public int | |
| public int | |
| public int | |
| public int | writeWrap(String wrap)
Because we evaluate ST instance by invoking
|
| NO_WRAP | back to summary |
|---|---|
| public static final int NO_WRAP | |
| index | back to summary |
|---|---|
| public int index() Return the absolute char index into the output of the char we're about to write. Returns 0 if no char written yet. | |
| popAnchorPoint | back to summary |
|---|---|
| public void popAnchorPoint() | |
| popIndentation | back to summary |
|---|---|
| public String popIndentation() | |
| pushAnchorPoint | back to summary |
|---|---|
| public void pushAnchorPoint() | |
| pushIndentation | back to summary |
|---|---|
| public void pushIndentation(String indent) | |
| setLineWidth | back to summary |
|---|---|
| public void setLineWidth(int lineWidth) | |
| write | back to summary |
|---|---|
| public int write(String str) throws IOException Write the string and return how many actual characters were written.
With auto-indentation and wrapping, more chars than | |
| write | back to summary |
|---|---|
| public int write(String str, String wrap) throws IOException Same as write, but wrap lines using the indicated string as the
wrap character (such as | |
| writeSeparator | back to summary |
|---|---|
| public int writeSeparator(String str) throws IOException Write a separator. Same as | |
| writeWrap | back to summary |
|---|---|
| public int writeWrap(String wrap) throws IOException Because we evaluate ST instance by invoking
| |