protected int |
Interpreter._exec(STWriter out,
InstanceScope scope) |
|
protected void |
Interpreter.addToList(InstanceScope scope,
List<Object> list,
Object o) |
|
Object |
Interpreter.convertAnythingIteratableToIterator(InstanceScope scope,
Object o) |
|
Iterator<?> |
Interpreter.convertAnythingToIterator(InstanceScope scope,
Object o) |
|
int |
Interpreter.exec(STWriter out,
InstanceScope scope) |
Execute template self and return how many characters it wrote to out .
|
Object |
Interpreter.first(InstanceScope scope,
Object v) |
Return the first attribute if multi-valued, or the attribute itself if
single-valued.
|
Object |
Interpreter.getAttribute(InstanceScope scope,
String name) |
Find an attribute via dynamic scoping up enclosing scope chain.
|
protected ST |
STGroup.getEmbeddedInstanceOf(Interpreter interp,
InstanceScope scope,
String name) |
|
static List<ST> |
Interpreter.getEnclosingInstanceStack(InstanceScope scope,
boolean topdown) |
|
static String |
Interpreter.getEnclosingInstanceStackString(InstanceScope scope) |
If an instance of x is enclosed in a y which is in a
z, return a String of these instance names in order from
topmost to lowest; here that would be [z y x] .
|
static List<EvalTemplateEvent> |
Interpreter.getEvalTemplateEventStack(InstanceScope scope,
boolean topdown) |
|
protected int |
Interpreter.getExprStartChar(InstanceScope scope) |
|
protected int |
Interpreter.getExprStopChar(InstanceScope scope) |
|
protected Object |
Interpreter.getObjectProperty(STWriter out,
InstanceScope scope,
Object o,
Object property) |
|
static List<InstanceScope> |
Interpreter.getScopeStack(InstanceScope scope,
boolean topdown) |
|
protected void |
Interpreter.indent(STWriter out,
InstanceScope scope,
int strIndex) |
|
Object |
Interpreter.last(InstanceScope scope,
Object v) |
Return the last attribute if multi-valued, or the attribute itself if
single-valued.
|
protected void |
Interpreter.map(InstanceScope scope,
Object attr,
ST st) |
|
protected void |
Interpreter.printForTrace(StringBuilder tr,
InstanceScope scope,
Object o) |
|
Object |
Interpreter.rest(InstanceScope scope,
Object v) |
Return everything but the first attribute if multi-valued, or
null if single-valued.
|
Object |
Interpreter.reverse(InstanceScope scope,
Object v) |
Return a list with the same elements as v but in reverse order.
|
protected void |
Interpreter.rot_map(InstanceScope scope,
Object attr,
List<ST> prototypes) |
Renders expressions of the form <names:a()> or
<names:a(),b()> .
|
protected List<ST> |
Interpreter.rot_map_iterator(InstanceScope scope,
Iterator<?> attr,
List<ST> prototypes) |
|
void |
Interpreter.setDefaultArguments(STWriter out,
InstanceScope scope) |
|
protected void |
Interpreter.setFirstArgument(InstanceScope scope,
ST st,
Object attr) |
|
Object |
Interpreter.strip(InstanceScope scope,
Object v) |
Return a new list without null values.
|
protected String |
Interpreter.toString(STWriter out,
InstanceScope scope,
Object value) |
|
protected void |
Interpreter.trace(InstanceScope scope,
int ip) |
|
protected void |
Interpreter.trackDebugEvent(InstanceScope scope,
InterpEvent e) |
For every event, we track in overall Interpreter.events list and in
self 's events list so that each template
has a list of events used to create it.
|
Object |
Interpreter.trunc(InstanceScope scope,
Object v) |
Return all but the last element.
|
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) |
|
protected ST.AttributeList |
Interpreter.zip_map(InstanceScope scope,
List<Object> exprs,
ST prototype) |
Renders expressions of the form <names,phones:{n,p | ...}> or
<a,b:t()> .
|