All Classes and Interfaces
Class
Description
An automatically created aggregate of properties.
Deal with structs created via
ST.addAggr(java.lang.String, java.lang.Object...)
("structname.{prop1, prop2}", ...);
.This interface describes an object that knows how to format or otherwise
render an object appropriately.
Essentially a char filter that knows how to auto-indent output by maintaining
a stack of indent levels.
Temporary data used during construction and functions that fill it / use it.
The result of compiling an
ST
.A compiler for a single template.
An event that happens when building ST trees, adding attributes etc...
A line number and char position within a line.
Used during tests to track all errors.
All the errors that can happen and how to generate a message.
Represents the name of a formal argument defined in a template:
This class knows how to execute template bytecodes relative to a particular
STGroup
.An inclusive interval
a..b
.From a scope, get stack of enclosing scopes in order from root down
to scope.
An object that knows how to convert property references to appropriate
actions on a model object.
A hash table that maps a key to a list of elements not just a single.
Just pass through the text.
An instance of the StringTemplate.
Just an alias for
ArrayList
, but this way I can track whether a
list is something ST created or it's an incoming list.Events during template hierarchy construction (not evaluation)
<@r()>
, <@r>...<@end>
, and @t.r() ::= "..."
defined manually by coderUsed for semantic errors that occur at compile time not during
interpretation.
How to handle messages.
A directory or directory tree of
.st
template files and/or group files.A directory or directory tree full of templates and/or group files.
The internal representation of a single group file (which must end in
".stg").
A group derived from a string not a file or directory.
This class represents the tokenizer for templates.
We build
STToken
tokens instead of relying on CommonToken
so we can override STLexer.STToken.toString()
.Upon error, ST creates an
STMessage
or subclass instance and notifies
the listener.<name>
where name
is not found up the dynamic scoping chain.For
<a.b>
, object a
does not have a property b
.Build an AST from a single StringTemplate template
A directory of templates without headers like ST v3 had.
This render knows to perform a few format operations on
String
objects:
upper
: Convert to upper case.
lower
: Convert to lower case.
cap
: Convert first character to upper case.
url-encode
:
xml-encode
:
A unique set of strings where we can get a string's index.
Used to track errors that occur in the ST interpreter.
Generic StringTemplate output writer filter.