Package | Description |
---|---|
org.stringtemplate.v4 | |
org.stringtemplate.v4.compiler |
Modifier and Type | Field and Description |
---|---|
CompiledST |
ST.impl
The implementation for this template among all instances of same template .
|
protected static CompiledST |
STGroup.NOT_FOUND_ST
Used to indicate that the template doesn't exist.
|
Modifier and Type | Field and Description |
---|---|
protected Map<String,CompiledST> |
STGroup.templates
Maps template name to
CompiledST object. |
Modifier and Type | Method and Description |
---|---|
CompiledST |
STGroup.compile(String srcName,
String name,
List<FormalArgument> args,
String template,
org.antlr.runtime.Token templateToken)
Compile a template.
|
CompiledST |
STGroup.defineRegion(String enclosingTemplateName,
org.antlr.runtime.Token regionT,
String template,
org.antlr.runtime.Token templateToken) |
CompiledST |
STGroup.defineTemplate(String templateName,
String template)
for testing
|
CompiledST |
STGroup.defineTemplate(String name,
String argsS,
String template)
for testing
|
CompiledST |
STGroup.defineTemplate(String fullyQualifiedTemplateName,
org.antlr.runtime.Token nameT,
List<FormalArgument> args,
String template,
org.antlr.runtime.Token templateToken) |
CompiledST |
STGroup.defineTemplateAlias(org.antlr.runtime.Token aliasT,
org.antlr.runtime.Token targetT)
Make name and alias for target.
|
protected CompiledST |
STGroup.load(String name)
Load st from disk if directory or load whole group file if .stg file (then
return just one template).
|
protected CompiledST |
STGroupDir.load(String name)
Load a template from directory or group file.
|
protected CompiledST |
STGroupFile.load(String name) |
protected CompiledST |
STGroupString.load(String name) |
CompiledST |
STGroup.loadAbsoluteTemplateFile(String fileName)
Load template file into this group using absolute
fileName . |
CompiledST |
STGroupDir.loadTemplateFile(String prefix,
String unqualifiedFileName)
Load .st as relative file name relative to root by
prefix . |
CompiledST |
STGroup.loadTemplateFile(String prefix,
String unqualifiedFileName,
org.antlr.runtime.CharStream templateStream)
Load template stream into this group.
|
CompiledST |
STRawGroupDir.loadTemplateFile(String prefix,
String unqualifiedFileName,
org.antlr.runtime.CharStream templateStream) |
protected CompiledST |
STGroup.lookupImportedTemplate(String name) |
CompiledST |
STGroup.lookupTemplate(String name)
Look up a fully-qualified name.
|
CompiledST |
STGroup.rawGetTemplate(String name) |
Modifier and Type | Method and Description |
---|---|
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.
|
void |
STGroup.rawDefineTemplate(String name,
CompiledST code,
org.antlr.runtime.Token defT) |
Modifier and Type | Field and Description |
---|---|
CompiledST |
FormalArgument.compiledDefaultValue |
Modifier and Type | Field and Description |
---|---|
List<CompiledST> |
CompiledST.implicitlyDefinedTemplates
A list of all regions and subtemplates.
|
Modifier and Type | Method and Description |
---|---|
CompiledST |
CompiledST.clone()
Cloning the
CompiledST for an ST instance allows
ST.add(java.lang.String, java.lang.Object) to be called safely during interpretation for templates
that do not contain formal arguments. |
CompiledST |
Compiler.compile(String template) |
CompiledST |
Compiler.compile(String name,
String template)
Compile full template with unknown formal arguments.
|
CompiledST |
Compiler.compile(String srcName,
String name,
List<FormalArgument> args,
String template,
org.antlr.runtime.Token templateToken)
Compile full template with respect to a list of formal arguments.
|
static CompiledST |
Compiler.defineBlankRegion(CompiledST outermostImpl,
org.antlr.runtime.Token nameToken) |
CompiledST |
CodeGenerator.template(String name,
List<FormalArgument> args) |
Modifier and Type | Method and Description |
---|---|
void |
CompiledST.addImplicitlyDefinedTemplate(CompiledST sub) |
static CompiledST |
Compiler.defineBlankRegion(CompiledST outermostImpl,
org.antlr.runtime.Token nameToken) |
Constructor and Description |
---|
BytecodeDisassembler(CompiledST code) |
Copyright © 2024. All rights reserved.