| Package | Description |
|---|---|
| org.stringtemplate.v4 | |
| org.stringtemplate.v4.gui | |
| org.stringtemplate.v4.misc |
| Modifier and Type | Field and Description |
|---|---|
ST |
InstanceScope.st
Template we're executing.
|
| Modifier and Type | Method and Description |
|---|---|
ST |
ST.add(java.lang.String name,
java.lang.Object value)
Inject an attribute (name/value pair).
|
ST |
ST.addAggr(java.lang.String aggrSpec,
java.lang.Object... values)
Split
aggrName.{propName1,propName2} into list
[propName1, propName2] and the aggrName. |
ST |
STGroup.createSingleton(org.antlr.runtime.Token templateToken)
Create singleton template for use with dictionary values.
|
ST |
STGroup.createStringTemplate(CompiledST impl) |
ST |
STGroup.createStringTemplateInternally(CompiledST impl)
Differentiate so we can avoid having creation events for regions,
map operations, and other implicit "new ST" events during rendering.
|
ST |
STGroup.createStringTemplateInternally(ST proto) |
protected ST |
STGroup.getEmbeddedInstanceOf(Interpreter interp,
InstanceScope scope,
java.lang.String name) |
ST |
STGroup.getInstanceOf(java.lang.String name)
The primary means of getting an instance of a template from this
group.
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<ST> |
Interpreter.getEnclosingInstanceStack(InstanceScope scope,
boolean topdown) |
protected java.util.List<ST> |
Interpreter.rot_map_iterator(InstanceScope scope,
java.util.Iterator<?> attr,
java.util.List<ST> prototypes) |
| Modifier and Type | Method and Description |
|---|---|
ST |
STGroup.createStringTemplateInternally(ST proto) |
java.lang.Object |
ModelAdaptor.getProperty(Interpreter interp,
ST self,
java.lang.Object o,
java.lang.Object property,
java.lang.String propertyName)
Lookup property name in
o and return its value. |
protected void |
Interpreter.map(InstanceScope scope,
java.lang.Object attr,
ST st) |
protected void |
Interpreter.setFirstArgument(InstanceScope scope,
ST st,
java.lang.Object attr) |
protected ST.AttributeList |
Interpreter.zip_map(InstanceScope scope,
java.util.List<java.lang.Object> exprs,
ST prototype)
Renders expressions of the form
<names,phones:{n,p | ...}> or
<a,b:t()>. |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<ST> |
Interpreter.rot_map_iterator(InstanceScope scope,
java.util.Iterator<?> attr,
java.util.List<ST> prototypes) |
protected void |
Interpreter.rot_map(InstanceScope scope,
java.lang.Object attr,
java.util.List<ST> prototypes)
Renders expressions of the form
<names:a()> or
<names:a(),b()>. |
| Constructor and Description |
|---|
InstanceScope(InstanceScope parent,
ST st) |
ST(ST proto)
Clone a prototype template.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JTreeScopeStackModel.addAttributeDescriptions(ST st,
JTreeScopeStackModel.StringTree node,
java.util.Set<java.lang.String> names) |
| Modifier and Type | Field and Description |
|---|---|
ST |
STMessage.self
if in debug mode, has created instance, add attr events and eval
template events.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
MapModelAdaptor.getProperty(Interpreter interp,
ST self,
java.lang.Object o,
java.lang.Object property,
java.lang.String propertyName) |
java.lang.Object |
ObjectModelAdaptor.getProperty(Interpreter interp,
ST self,
java.lang.Object o,
java.lang.Object property,
java.lang.String propertyName) |
java.lang.Object |
AggregateModelAdaptor.getProperty(Interpreter interp,
ST self,
java.lang.Object o,
java.lang.Object property,
java.lang.String propertyName) |
java.lang.Object |
STModelAdaptor.getProperty(Interpreter interp,
ST self,
java.lang.Object o,
java.lang.Object property,
java.lang.String propertyName) |
void |
ErrorManager.internalError(ST self,
java.lang.String msg,
java.lang.Throwable e) |
void |
ErrorManager.IOError(ST self,
ErrorType error,
java.lang.Throwable e) |
void |
ErrorManager.IOError(ST self,
ErrorType error,
java.lang.Throwable e,
java.lang.Object arg) |
| Constructor and Description |
|---|
STMessage(ErrorType error,
ST self) |
STMessage(ErrorType error,
ST self,
java.lang.Throwable cause) |
STMessage(ErrorType error,
ST self,
java.lang.Throwable cause,
java.lang.Object arg) |
STMessage(ErrorType error,
ST self,
java.lang.Throwable cause,
java.lang.Object arg,
java.lang.Object arg2) |
STMessage(ErrorType error,
ST self,
java.lang.Throwable cause,
java.lang.Object arg,
java.lang.Object arg2,
java.lang.Object arg3) |
STMessage(ErrorType error,
ST self,
java.lang.Throwable cause,
org.antlr.runtime.Token where,
java.lang.Object arg) |
Copyright © 2019. All Rights Reserved.