Modifier and Type | Class and Description |
---|---|
class |
EscapingEvaluator
Generates a JavaExpression to determine whether a given CS expression should be escaped before
displaying.
|
class |
ExpressionTranslator
Translates a CS expression (from the AST) into an equivalent Java expression.
|
class |
TemplateTranslator
Translates a JSilver AST into compilable Java code.
|
class |
VariableTranslator
Translates a variable name (e.g.
|
Modifier and Type | Class and Description |
---|---|
class |
ExpressionEvaluator
Walks the tree of a PExpression node and evaluates the expression.
|
class |
TemplateInterpreter
Main JSilver interpreter.
|
class |
VariableLocator
Walks a PVariable node from the parse tree and returns a Data path name.
|
Modifier and Type | Class and Description |
---|---|
class |
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.
|
class |
DataCommandConsolidator
Consolidates runs of (unescaped literal output) data commands, deferring output until another
output command (var, call, etc) is encountered.
|
class |
InlineRewriter
Rewrites the AST to replace all 'inline' commands with their associated inner
command sub-tree, where all whitespace data commands have been removed.
|
class |
SequenceOptimizer
Simple optimizer to simplify expression sequences which only have a single element.
|
class |
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).
|
class |
SyntaxTreeDumper
Dumps the syntax tree to text.
|
class |
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.
|
class |
TypeResolver
AST visitor to add numeric expressions to the syntax tree.
|
class |
VarOptimizer
Recursively optimizes the syntax tree with a set of simple operations.
|
Modifier and Type | Class and Description |
---|---|
class |
AnalysisAdapter |
class |
DepthFirstAdapter |
class |
ReversedDepthFirstAdapter |
Modifier and Type | Field and Description |
---|---|
Analysis |
Parser.ignoredTokens |
Copyright © 2010–2015 Google. All rights reserved.