| Package | Description |
|---|---|
| com.google.template.soy.basetree |
Classes shared by Soy parse trees and expression parse trees.
|
| com.google.template.soy.exprtree |
Expression parse tree.
|
| com.google.template.soy.html | |
| com.google.template.soy.html.passes | |
| com.google.template.soy.incrementaldomsrc | |
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.msgs.internal | |
| com.google.template.soy.parseinfo.passes | |
| com.google.template.soy.passes | |
| com.google.template.soy.pysrc.internal | |
| com.google.template.soy.shared.internal | |
| com.google.template.soy.sharedpasses.render | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractNodeVisitor<N extends Node,R>
Base class for
AbstractXxxNodeVisitor classes. |
class |
AbstractReturningNodeVisitor<N extends Node,R>
Base class for
AbstractXxxNodeVisitor classes. |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractExprNodeVisitor<R>
Abstract base class for all ExprNode visitors.
|
class |
AbstractReturningExprNodeVisitor<R>
Abstract base class for all ExprNode visitors.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractHtmlSoyNodeVisitor<R>
Like
AbstractSoyNodeVisitor, but also visits nodes containing information about the HTML
structure of the page. |
class |
AbstractReturningHtmlSoyNodeVisitor<R>
Like
AbstractReturningHtmlSoyNodeVisitor, but also visits nodes containing information
about the HTML structure of the page. |
| Modifier and Type | Class and Description |
|---|---|
class |
HtmlTransformVisitor
Translates fragments of HTML tags, text nodes and attributes found in
RawTextNodes to
the following nodes:
HtmlAttributeNode
HtmlCloseTagNode
HtmlOpenTagEndNode
HtmlOpenTagStartNode
HtmlTextNode
Also annotates msg and print nodes with their HtmlContext. |
class |
VoidElementVerifyingVisitor
Looks for void element closing tags that are not immediately preceded by an open tag of the
same type.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenIncrementalDomCodeVisitor
Generates a series of JavaScript control statements and function calls for rendering one or more
templates as HTML.
|
class |
GenIncrementalDomExprsVisitor
Overrides the base class to provide the correct helpers classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CanInitOutputVarVisitor
Visitor for determining whther the code generated from a given node's subtree can be made to
also initialize the current variable (if not already initialized).
|
class |
ExtractMsgVariablesVisitor
Moves
MsgFallbackGroupNodes to separate {let} and print nodes. |
class |
GenDirectivePluginRequiresVisitor
A visitor to generate a set of Closure JS library names required by the plugins used by this
template.
|
class |
GenJsCodeVisitor
Visitor for generating full JS code (i.e.
|
class |
GenJsCodeVisitorAssistantForMsgs
Assistant visitor for GenJsCodeVisitor to handle messages.
|
class |
GenJsExprsVisitor
Visitor for generating JS expressions for parse tree nodes.
|
class |
IsComputableAsJsExprsVisitor
Visitor to determine whether the output string for the subtree rooted at a given node is
computable as the concatenation of one or more JS expressions.
|
class |
OptimizeBidiCodeGenVisitor
Visitor for replacing any
PrintNode whose expression is a single call to
bidiMark(), bidiStartEdge(), or bidiEndEdge() with an equivalent
RawTextNode. |
class |
TranslateToJsExprVisitor
Visitor for translating a Soy expression (in the form of an
ExprNode) into an
equivalent JS expression. |
| Modifier and Type | Class and Description |
|---|---|
class |
ExtractMsgsVisitor
Visitor for extracting messages from a Soy parse tree.
|
class |
InsertMsgsVisitor
Visitor for inserting translated messages into Soy tree.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenerateParseInfoVisitor
Visitor for generating Java classes containing the parse info.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BuildAllDependeesMapVisitor
Visitor for building a map from each node to its list of dependees (ordered by nearest dependee
first).
|
class |
ChangeCallsToPassAllDataVisitor
Visitor to change
calls to use data="all" whenever possible. |
class |
ClearSoyDocStringsVisitor
Visitor for removing SoyDoc strings from
TemplateNodes (saves memory when they're not
needed). |
class |
CombineConsecutiveRawTextNodesVisitor
Visitor for combining any consecutive sequences of
RawTextNodes into one equivalent
RawTextNode. |
class |
FindIndirectParamsVisitor
Visitor for finding the indirect params of a given template.
|
class |
FindTransitiveDepTemplatesVisitor
Visitor for finding the set of templates transitively called by a given template.
|
class |
InferRequiredSyntaxVersionVisitor
Visitor to infer the required syntax version of a Soy file due to features used.
|
class |
ResolveFunctionsVisitor
Decorates
FunctionNodes with corresponding SoyFunctions,
so that later passes can simply read the functions off the AST. |
class |
RewriteRemaindersVisitor
Visitor for finding
print nodes that are actually remainder nodes,
and replacing them with the appropriate expression. |
class |
StrictDepsVisitor
Visitor to check that there are no external calls.
|
class |
VerifyPhnameAttrOnlyOnPlaceholdersVisitor
Visitor to verify that all occurrences of the 'phname' attribute are on message placeholders.
|
| Modifier and Type | Class and Description |
|---|---|
class |
GenPyExprsVisitor
Visitor for generating Python expressions for parse tree nodes.
|
class |
TranslateToPyExprVisitor
Visitor for translating a Soy expression (in the form of an
ExprNode) into an
equivalent Python expression. |
| Modifier and Type | Class and Description |
|---|---|
class |
FindCalleesNotInFileVisitor
Visitor for finding the templates called in a file that are not defined in the file.
|
| Modifier and Type | Class and Description |
|---|---|
class |
EvalVisitor
Visitor for evaluating the expression rooted at a given ExprNode.
|
class |
RenderVisitor
Visitor for rendering the template subtree rooted at a given SoyNode.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractReturningSoyNodeVisitor<R>
Abstract base class for all SoyNode visitors.
|
class |
AbstractSoyNodeVisitor<R>
Abstract base class for all SoyNode visitors.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
SoytreeUtils.visitAllNodes(Node node,
NodeVisitor<? super Node,Boolean> visitor)
Runs the visitor on all nodes (including
expr nodes) reachable from the given
node. |