Package | Description |
---|---|
org.stringtemplate.v4 |
Modifier and Type | Class and Description |
---|---|
class |
AutoIndentWriter
Essentially a char filter that knows how to auto-indent output by maintaining
a stack of indent levels.
|
class |
NoIndentWriter
Just pass through the text.
|
Modifier and Type | Method and Description |
---|---|
protected int |
Interpreter._exec(STWriter out,
InstanceScope scope) |
int |
Interpreter.exec(STWriter out,
InstanceScope scope)
Execute template
self and return how many characters it wrote to out . |
protected Object |
Interpreter.getObjectProperty(STWriter out,
InstanceScope scope,
Object o,
Object property) |
protected void |
Interpreter.indent(STWriter out,
InstanceScope scope,
int strIndex) |
void |
Interpreter.setDefaultArguments(STWriter out,
InstanceScope scope)
Set any default argument values that were not set by the invoking
template or by
ST.add(java.lang.String, java.lang.Object) directly. |
protected String |
Interpreter.toString(STWriter out,
InstanceScope scope,
Object value) |
int |
ST.write(STWriter out) |
int |
ST.write(STWriter out,
Locale locale) |
int |
ST.write(STWriter out,
Locale locale,
STErrorListener listener) |
int |
ST.write(STWriter out,
STErrorListener listener) |
protected int |
Interpreter.writeIterator(STWriter out,
InstanceScope scope,
Object o,
String[] options) |
protected int |
Interpreter.writeObject(STWriter out,
InstanceScope scope,
Object o,
String[] options)
Generic method to emit text for an object.
|
protected int |
Interpreter.writeObjectNoOptions(STWriter out,
InstanceScope scope,
Object o)
Write out an expression result that doesn't use expression options.
|
protected int |
Interpreter.writeObjectWithOptions(STWriter out,
InstanceScope scope,
Object o,
Object[] options)
Write out an expression result that uses expression options.
|
protected int |
Interpreter.writePOJO(STWriter out,
InstanceScope scope,
Object o,
String[] options) |
Copyright © 2024. All rights reserved.