| Package | Description |
|---|---|
| com.google.template.soy.jssrc.internal | |
| com.google.template.soy.msgs.internal | |
| com.google.template.soy.parseinfo.passes | |
| com.google.template.soy.parsepasses |
Compiler passes used in parsing.
|
| com.google.template.soy.parsepasses.contextautoesc |
A pass that modifies a SoyFile to add escape directives where necessary based on a contextual
examination of template
print commands. |
| com.google.template.soy.pysrc.internal | |
| com.google.template.soy.shared.internal | |
| com.google.template.soy.sharedpasses |
Compiler passes shared between multiple backends or between frontend and backend.
|
| com.google.template.soy.sharedpasses.opti | |
| com.google.template.soy.sharedpasses.render | |
| com.google.template.soy.soytree |
Soy parse tree.
|
| com.google.template.soy.soytree.jssrc |
Soy parse tree nodes specific to the JavaScript Src backend.
|
| Modifier and Type | Method and Description |
|---|---|
List<JsExpr> |
GenJsExprsVisitor.exec(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
SoyMsgBundle |
ExtractMsgsVisitor.exec(SoyNode node)
Returns a SoyMsgBundle containing all messages extracted from the given SoyFileSetNode or
SoyFileNode (locale string is null).
|
Void |
InsertMsgsVisitor.exec(SoyNode node) |
protected void |
ExtractMsgsVisitor.visitSoyNode(SoyNode node) |
protected void |
InsertMsgsVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
SoyMsgBundle |
ExtractMsgsVisitor.execOnMultipleNodes(Iterable<? extends SoyNode> nodes)
Returns a SoyMsgBundle containing all messages extracted from the given nodes (locale string is
null).
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.ImmutableMap<String,String> |
GenerateParseInfoVisitor.exec(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
Void |
HandleCssCommandVisitor.exec(SoyNode node) |
Void |
SetDefaultForDelcallAllowsEmptyDefaultVisitor.exec(SoyNode soyNode) |
List<String> |
CheckCallsVisitor.exec(SoyNode soyNode) |
SyntaxVersion |
InferRequiredSyntaxVersionVisitor.exec(SoyNode node) |
Void |
ChangeCallsToPassAllDataVisitor.exec(SoyNode node) |
Void |
CheckDelegatesVisitor.exec(SoyNode soyNode) |
void |
RewriteNullCoalescingOpVisitor.exec(SoyNode node)
Runs this pass on the given Soy node's subtree.
|
Void |
SetFullCalleeNamesVisitor.exec(SoyNode soyNode) |
protected void |
HandleCssCommandVisitor.visitSoyNode(SoyNode node) |
protected void |
SetDefaultForDelcallAllowsEmptyDefaultVisitor.visitSoyNode(SoyNode node) |
protected void |
CheckCallsVisitor.visitSoyNode(SoyNode node) |
protected void |
PerformAutoescapeVisitor.visitSoyNode(SoyNode node) |
protected void |
InferRequiredSyntaxVersionVisitor.visitSoyNode(SoyNode node) |
protected void |
ChangeCallsToPassAllDataVisitor.visitSoyNode(SoyNode node) |
protected void |
CheckDelegatesVisitor.visitSoyNode(SoyNode node) |
protected void |
CheckFunctionCallsVisitor.visitSoyNode(SoyNode node)
Recursively identifies all Soy nodes that contain expressions, and recurse to
each expression.
|
protected void |
RewriteRemainderNodesVisitor.visitSoyNode(SoyNode node) |
protected void |
RewriteGenderMsgsVisitor.visitSoyNode(SoyNode node) |
protected void |
ReplaceHasDataFunctionVisitor.visitSoyNode(SoyNode node)
Recursively identifies all Soy nodes that contain expressions, and recurse to
each expression.
|
protected void |
VerifyPhnameAttrOnlyOnPlaceholdersVisitor.visitSoyNode(SoyNode node) |
protected void |
SetFullCalleeNamesVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
SoyAutoescapeException |
SoyAutoescapeException.associateNode(SoyNode node)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
static SoyAutoescapeException |
SoyAutoescapeException.createCausedWithNode(String message,
Throwable cause,
SoyNode node)
Creates a SoyAutoescapeException, with meta info filled in based on the given Soy node.
|
static SoyAutoescapeException |
SoyAutoescapeException.createWithNode(String message,
SoyNode node)
Creates a SoyAutoescapeException, with meta info filled in based on the given Soy node.
|
SoyAutoescapeException |
SoyAutoescapeException.maybeAssociateNode(SoyNode node)
Important: Do not use outside of Soy code (treat as superpackage-private).
|
protected void |
CheckEscapingSanityVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
List<PyExpr> |
GenPyExprsVisitor.exec(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<String> |
FindCalleesNotInFileVisitor.exec(SoyNode node) |
Boolean |
HasNodeTypesVisitor.exec(SoyNode soyNode) |
protected void |
FindCalleesNotInFileVisitor.visitSoyNode(SoyNode node) |
protected void |
HasNodeTypesVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
Map<SoyNode,List<SoyNode>> |
BuildAllDependeesMapVisitor.exec(SoyNode node) |
Map<SoyNode,List<SoyNode>> |
BuildAllDependeesMapVisitor.exec(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
FindIndirectParamsVisitor.IndirectParamsInfo |
FindIndirectParamsVisitor.exec(SoyNode node) |
Void |
AssertStrictAutoescapingVisitor.exec(SoyNode soyNode) |
Void |
CombineConsecutiveRawTextNodesVisitor.exec(SoyNode node) |
Void |
AssertNoExternalCallsVisitor.exec(SoyNode soyNode) |
Void |
RenameCssVisitor.exec(SoyNode node) |
Map<SoyNode,List<SoyNode>> |
BuildAllDependeesMapVisitor.exec(SoyNode node) |
Void |
RemoveHtmlCommentsVisitor.exec(SoyNode node) |
FindTransitiveDepTemplatesVisitor.TransitiveDepTemplatesInfo |
FindTransitiveDepTemplatesVisitor.exec(SoyNode rootTemplate)
Executes the function defined by this visitor.
|
Void |
ReportSyntaxVersionErrorsVisitor.exec(SoyNode node)
Executes the function defined by this visitor.
|
protected void |
FindIndirectParamsVisitor.visitSoyNode(SoyNode node) |
protected void |
AssertStrictAutoescapingVisitor.visitSoyNode(SoyNode node)
Fallback implementation for all other nodes.
|
protected void |
ClearSoyDocStringsVisitor.visitSoyNode(SoyNode node) |
protected void |
CombineConsecutiveRawTextNodesVisitor.visitSoyNode(SoyNode node) |
protected void |
CheckTemplateVisibility.visitSoyNode(SoyNode node) |
protected void |
AssertNoExternalCallsVisitor.visitSoyNode(SoyNode node) |
protected void |
RenameCssVisitor.visitSoyNode(SoyNode node) |
protected void |
ResolveExpressionTypesVisitor.visitSoyNode(SoyNode node) |
protected void |
CheckSoyDocVisitor.visitSoyNode(SoyNode node) |
protected void |
ResolveNamesVisitor.visitSoyNode(SoyNode node) |
protected void |
BuildAllDependeesMapVisitor.visitSoyNode(SoyNode node) |
protected void |
RemoveHtmlCommentsVisitor.visitSoyNode(SoyNode node) |
protected void |
FindTransitiveDepTemplatesVisitor.visitSoyNode(SoyNode node) |
protected void |
ResolvePackageRelativeCssNamesVisitor.visitSoyNode(SoyNode node) |
protected void |
CheckCallingParamTypesVisitor.visitSoyNode(SoyNode node) |
protected void |
ReportSyntaxVersionErrorsVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
Void |
SimplifyVisitor.exec(SoyNode node) |
protected void |
SimplifyVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Method and Description |
|---|---|
static RenderException |
RenderException.createFromRenderException(String message,
RenderException cause,
SoyNode node) |
static RenderException |
RenderException.createWithSource(String message,
SoyNode source) |
static RenderException |
RenderException.createWithSource(String message,
Throwable cause,
SoyNode source) |
Void |
RenderVisitor.exec(SoyNode node) |
protected void |
RenderVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractParentSoyNode<N extends SoyNode>
Abstract implementation of a ParentSoyNode.
|
static interface |
SoyNode.ParentSoyNode<N extends SoyNode>
A node in a Soy parse tree that may be a parent.
|
static interface |
SoyNode.SplitLevelTopNode<N extends SoyNode>
A node that represents the top of a split-level structure in the parse tree.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SoyNode.BlockCommandNode
A node that represents a Soy command that encloses a template block.
|
static interface |
SoyNode.BlockNode
A node that represents a template block.
|
static interface |
SoyNode.CommandNode
A node that represents a specific Soy command.
|
static interface |
SoyNode.ConditionalBlockNode
A node that represents a block of Soy code that is conditionally executed.
|
static interface |
SoyNode.ExprHolderNode
A node that holds some expressions in its fields/properties.
|
static interface |
SoyNode.LocalVarBlockNode
A node that adds a new local variable whose scope comprises the children of this code.
|
static interface |
SoyNode.LocalVarInlineNode
A node that adds a new local variable whose scope comprises the younger siblings of this node.
|
static interface |
SoyNode.LocalVarNode
A node that adds a new local variable.
|
static interface |
SoyNode.LoopNode
A node that represents a block of code that is executed in a loop.
|
static interface |
SoyNode.MsgBlockNode
A block node that can hold message content.
|
static interface |
SoyNode.MsgPlaceholderInitialNode
A node that can be the initial content (i.e.
|
static interface |
SoyNode.MsgSubstUnitNode
A substitution unit is any non-raw-text message part, since it will be replaced when the
message is rendered.
|
static interface |
SoyNode.ParentSoyNode<N extends SoyNode>
A node in a Soy parse tree that may be a parent.
|
static interface |
SoyNode.RenderUnitNode
A node that represents an independent unit of rendering.
|
static interface |
SoyNode.SplitLevelTopNode<N extends SoyNode>
A node that represents the top of a split-level structure in the parse tree.
|
static interface |
SoyNode.StandaloneNode
A node that can legally appear as the direct child of some block node (doesn't necessarily have
to be legal as the direct child of a template).
|
static interface |
SoyNode.StatementNode
A node that represents a specific Soy statement.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractParentSoyNode<N extends SoyNode>
Abstract implementation of a ParentSoyNode.
|
class |
AbstractSoyNode
Abstract implementation of a SoyNode.
|
class |
CallBasicNode
Node representing a call to a basic template.
|
class |
CallDelegateNode
Node representing a call to a delegate template.
|
class |
CallNode
Node representing a call.
|
class |
CallParamContentNode
Node representing a 'param' with content.
|
class |
CallParamNode
Abstract node representing a 'param'.
|
class |
CallParamValueNode
Node representing a 'param' with a value expression.
|
class |
CaseOrDefaultNode
Abstract node representing a 'case' or 'default' block in 'select', 'switch' or 'plural'
statements.
|
class |
CssNode
Node representing a 'css' statement.
|
class |
DebuggerNode
Node representing the 'debugger' statement.
|
class |
ForeachIfemptyNode
Node representing the 'ifempty' portion of a 'foreach' statement.
|
class |
ForeachNode
Node representing a 'foreach' statement.
|
class |
ForeachNonemptyNode
Node representing the loop portion of a 'foreach' statement.
|
class |
ForNode
Node representing a 'for' statement.
|
class |
IfCondNode
Node representing a block within an 'if' statement that has a conditional expression (i.e.
|
class |
IfElseNode
Node representing the 'else' block within an 'if' statement.
|
class |
IfNode
Node representing an 'if' statement.
|
class |
LetContentNode
Node representing a 'let' statement with content.
|
class |
LetNode
Abstract node representing a 'let' statement.
|
class |
LetValueNode
Node representing a 'let' statement with a value expression.
|
class |
LogNode
Node representing the 'log' statement.
|
class |
MsgFallbackGroupNode
Represents a group of one or more messages.
|
class |
MsgHtmlTagNode
Node representing an HTML tag within a
msg statement/block. |
class |
MsgNode
Node representing a 'msg' block.
|
class |
MsgPlaceholderNode
A node that is the direct child of a MsgBlockNode and will turn into a placeholder.
|
class |
MsgPluralCaseNode
Node representing a 'case' block in a 'plural' block.
|
class |
MsgPluralDefaultNode
Node representing the 'default' block in a 'plural' block.
|
class |
MsgPluralNode
Node representing a 'plural' block.
|
class |
MsgPluralRemainderNode
Node representing a 'remainder' section in a 'plural' block.
|
class |
MsgSelectCaseNode
Node representing a 'case' block in a 'select' block.
|
class |
MsgSelectDefaultNode
Node representing the 'default' block in a 'select' block.
|
class |
MsgSelectNode
Node representing a 'select' block.
|
class |
PrintDirectiveNode
Node representing a 'print' directive.
|
class |
PrintNode
Node representing a 'print' statement.
|
class |
RawTextNode
Node representing a contiguous raw text section.
|
class |
SoyFileNode
Node representing a Soy file.
|
class |
SoyFileSetNode
Node representing a Soy file set (the root of the Soy parse tree).
|
class |
SwitchCaseNode
Node representing a 'case' block in a 'switch' block.
|
class |
SwitchDefaultNode
Node representing the 'default' block in a 'switch' statement.
|
class |
SwitchNode
Node representing a 'switch' statement.
|
class |
TemplateBasicNode
Node representing a basic template.
|
class |
TemplateDelegateNode
Node representing a delegate template.
|
class |
TemplateNode
Node representing a template.
|
class |
XidNode
Node representing an 'xid' statement.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends SoyNode> |
SoytreeUtils.cloneListWithNewIds(List<T> origNodes,
IdGenerator nodeIdGen)
Clones the given list of nodes and then generates and sets new ids on all the cloned nodes (by
default, SoyNode.clone() creates cloned nodes with the same ids as the original nodes).
|
static <T extends SoyNode> |
SoytreeUtils.cloneWithNewIds(T origNode,
IdGenerator nodeIdGen)
Clones the given node and then generates and sets new ids on all the cloned nodes (by default,
SoyNode.clone() creates cloned nodes with the same ids as the original nodes).
|
static <T extends SoyNode> |
SoytreeUtils.getAllNodesOfType(SoyNode rootSoyNode,
Class<T> classObject)
Retrieves all nodes in a tree that are an instance of a particular class.
|
static <T extends SoyNode> |
SoytreeUtils.getAllNodesOfType(SoyNode rootSoyNode,
Class<T> classObject,
boolean doSearchSubtreesOfMatchedNodes)
Retrieves all nodes in a tree that are an instance of a particular class.
|
| Modifier and Type | Method and Description |
|---|---|
SoyNode |
SoyNode.clone()
Copies this node.
|
abstract SoyNode |
AbstractSoyNode.clone() |
| Modifier and Type | Method and Description |
|---|---|
static SoySyntaxException |
SoySyntaxExceptionUtils.associateNode(SoySyntaxException sse,
SoyNode node)
Adds meta info to an existing SoySyntaxException.
|
static SoySyntaxException |
SoySyntaxExceptionUtils.createCausedWithNode(String message,
Throwable cause,
SoyNode node)
Creates a SoySyntaxException, with meta info filled in based on the given Soy node.
|
static SoySyntaxException |
SoySyntaxExceptionUtils.createWithNode(String message,
SoyNode node)
Creates a SoySyntaxException, with meta info filled in based on the given Soy node.
|
static <R> void |
SoytreeUtils.execOnAllV2Exprs(SoyNode node,
AbstractExprNodeVisitor<R> exprNodeVisitor,
ErrorReporter errorReporter)
Given a Soy node and a visitor for expression trees, traverses the subtree of the node and
executes the visitor on all expressions held by nodes in the subtree.
|
static <R> void |
SoytreeUtils.execOnAllV2ExprsShortcircuitably(SoyNode node,
AbstractExprNodeVisitor<R> exprNodeVisitor,
SoytreeUtils.Shortcircuiter<R> shortcircuiter,
ErrorReporter errorReporter)
Given a Soy node and a visitor for expression trees, traverses the subtree of the node and
executes the visitor on all expressions held by nodes in the subtree.
|
static <T extends SoyNode> |
SoytreeUtils.getAllNodesOfType(SoyNode rootSoyNode,
Class<T> classObject)
Retrieves all nodes in a tree that are an instance of a particular class.
|
static <T extends SoyNode> |
SoytreeUtils.getAllNodesOfType(SoyNode rootSoyNode,
Class<T> classObject,
boolean doSearchSubtreesOfMatchedNodes)
Retrieves all nodes in a tree that are an instance of a particular class.
|
protected R |
AbstractReturningSoyNodeVisitor.visit(SoyNode node) |
protected void |
AbstractSoyNodeVisitor.visit(SoyNode node) |
protected R |
AbstractReturningSoyNodeVisitor.visitSoyNode(SoyNode node) |
protected void |
AbstractSoyNodeVisitor.visitSoyNode(SoyNode node) |
| Modifier and Type | Class and Description |
|---|---|
class |
GoogMsgDefNode
Represents a
goog.getMsg* definition of a group of one or more messages. |
class |
GoogMsgRefNode
Node representing a reference of a message variable (defined by
goog.getMsg). |