Package | Description |
---|---|
org.stringtemplate.v4 | |
org.stringtemplate.v4.debug | |
org.stringtemplate.v4.gui | |
org.stringtemplate.v4.misc |
Modifier and Type | Field | Description |
---|---|---|
InstanceScope |
InstanceScope.parent |
Template that invoked us.
|
Modifier and Type | Method | Description |
---|---|---|
static List<InstanceScope> |
Interpreter.getScopeStack(InstanceScope scope,
boolean topdown) |
Modifier and Type | Method | Description |
---|---|---|
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) |
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 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()> . |
Constructor | Description |
---|---|
InstanceScope(InstanceScope parent,
ST st) |
Modifier and Type | Field | Description |
---|---|---|
InstanceScope |
InterpEvent.scope |
Constructor | Description |
---|---|
EvalExprEvent(InstanceScope scope,
int start,
int stop,
int exprStartChar,
int exprStopChar) |
|
EvalTemplateEvent(InstanceScope scope,
int exprStartChar,
int exprStopChar) |
|
IndentEvent(InstanceScope scope,
int start,
int stop,
int exprStartChar,
int exprStopChar) |
|
InterpEvent(InstanceScope scope,
int outputStartChar,
int outputStopChar) |
Modifier and Type | Field | Description |
---|---|---|
InstanceScope |
STViz.currentScope |
Modifier and Type | Method | Description |
---|---|---|
protected void |
STViz.updateAttributes(InstanceScope scope,
STViewFrame m) |
|
protected void |
STViz.updateStack(InstanceScope scope,
STViewFrame m) |
Constructor | Description |
---|---|
JTreeScopeStackModel(InstanceScope scope) |
Modifier and Type | Field | Description |
---|---|---|
InstanceScope |
STNoSuchAttributeException.scope |
|
InstanceScope |
STRuntimeMessage.scope |
Modifier and Type | Method | Description |
---|---|---|
void |
ErrorManager.runTimeError(Interpreter interp,
InstanceScope scope,
ErrorType error) |
|
void |
ErrorManager.runTimeError(Interpreter interp,
InstanceScope scope,
ErrorType error,
Object arg) |
|
void |
ErrorManager.runTimeError(Interpreter interp,
InstanceScope scope,
ErrorType error,
Object arg,
Object arg2) |
|
void |
ErrorManager.runTimeError(Interpreter interp,
InstanceScope scope,
ErrorType error,
Object arg,
Object arg2,
Object arg3) |
|
void |
ErrorManager.runTimeError(Interpreter interp,
InstanceScope scope,
ErrorType error,
Throwable e,
Object arg) |
Constructor | Description |
---|---|
STNoSuchAttributeException(String name,
InstanceScope scope) |
|
STRuntimeMessage(Interpreter interp,
ErrorType error,
int ip,
InstanceScope scope) |
|
STRuntimeMessage(Interpreter interp,
ErrorType error,
int ip,
InstanceScope scope,
Object arg) |
|
STRuntimeMessage(Interpreter interp,
ErrorType error,
int ip,
InstanceScope scope,
Throwable e,
Object arg) |
|
STRuntimeMessage(Interpreter interp,
ErrorType error,
int ip,
InstanceScope scope,
Throwable e,
Object arg,
Object arg2) |
|
STRuntimeMessage(Interpreter interp,
ErrorType error,
int ip,
InstanceScope scope,
Throwable e,
Object arg,
Object arg2,
Object arg3) |
Copyright © 2019. All rights reserved.