Class | Description |
---|---|
AutoEscaper |
Run a context parser (currently only HTML parser) over the AST, determine nodes that need
escaping, and apply the appropriate escaping command to those nodes.
|
DataCommandConsolidator |
Consolidates runs of (unescaped literal output) data commands, deferring output until another
output command (var, call, etc) is encountered.
|
InlineRewriter |
Rewrites the AST to replace all 'inline' commands with their associated inner
command sub-tree, where all whitespace data commands have been removed.
|
SequenceOptimizer |
Simple optimizer to simplify expression sequences which only have a single element.
|
StructuralWhitespaceStripper |
Detects sequences of commands corresponding to a line in the template containing only structural
commands, comments or whitespace and rewrites the syntax tree to effectively remove any data
(text) associated with that line (including the trailing whitespace).
|
SyntaxTreeBuilder |
Parses a JSilver text template into an abstract syntax tree (AST).
|
SyntaxTreeDumper |
Dumps the syntax tree to text.
|
SyntaxTreeOptimizer |
Visitor that can be applied to the AST to optimize it by replacing nodes with more efficient
implementations than the default SableCC generated versions.
|
TemplateSyntaxTree |
Simple wrapper class to encapsulate the root node of the AST and allow additional information to
be associated with it.
|
TypeResolver |
AST visitor to add numeric expressions to the syntax tree.
|
VarOptimizer |
Recursively optimizes the syntax tree with a set of simple operations.
|
Copyright © 2010–2015 Google. All rights reserved.