R - The return type of this visitor.public abstract class AbstractSoyNodeVisitor<R> extends AbstractNodeVisitor<SoyNode,R>
Same as AbstractReturningSoyNodeVisitor except that in this class, internal visit() calls do not return a value.
Important: Do not use outside of Soy code (treat as superpackage-private).
To create a visitor:
visit*Node() methods for some specific node types.
visitSoyNode(), which is usually needed. Other
fallback methods include visitLoopNode() and visitCallParamNode().
exec() if this visitor needs to return a non-null final
result and/or if this visitor has state that needs to be setup/reset before each unrelated
use of visit().
AbstractReturningSoyNodeVisitor| Constructor and Description |
|---|
AbstractSoyNodeVisitor() |
exec, visitChildren, visitChildrenAllowingConcurrentModificationprotected void visit(SoyNode node)
AbstractNodeVisitorvisit in class AbstractNodeVisitor<SoyNode,R>node - The node to visit.protected void visitChildren(SoyNode.ParentSoyNode<?> node)
node - The parent node whose children to visit.visitChildrenAllowingConcurrentModification(com.google.template.soy.soytree.SoyNode.ParentSoyNode<?>)protected void visitChildrenAllowingConcurrentModification(SoyNode.ParentSoyNode<?> node)
This method differs from visitChildren in that we are iterating through a copy of
the children. Thus, concurrent modification of the list of children is allowed.
node - The parent node whose children to visit.visitChildren(com.google.template.soy.soytree.SoyNode.ParentSoyNode<?>)protected void visitSoyFileSetNode(SoyFileSetNode node)
protected void visitSoyFileNode(SoyFileNode node)
protected void visitTemplateBasicNode(TemplateBasicNode node)
protected void visitTemplateDelegateNode(TemplateDelegateNode node)
protected void visitTemplateNode(TemplateNode node)
protected void visitRawTextNode(RawTextNode node)
protected void visitMsgFallbackGroupNode(MsgFallbackGroupNode node)
protected void visitMsgNode(MsgNode node)
protected void visitMsgPluralNode(MsgPluralNode node)
protected void visitMsgPluralCaseNode(MsgPluralCaseNode node)
protected void visitMsgPluralDefaultNode(MsgPluralDefaultNode node)
protected void visitMsgSelectNode(MsgSelectNode node)
protected void visitMsgSelectCaseNode(MsgSelectCaseNode node)
protected void visitMsgSelectDefaultNode(MsgSelectDefaultNode node)
protected void visitMsgPlaceholderNode(MsgPlaceholderNode node)
protected void visitMsgHtmlTagNode(MsgHtmlTagNode node)
protected void visitMsgSubstUnitNode(SoyNode.MsgSubstUnitNode node)
protected void visitPrintNode(PrintNode node)
protected void visitPrintDirectiveNode(PrintDirectiveNode node)
protected void visitLetValueNode(LetValueNode node)
protected void visitLetContentNode(LetContentNode node)
protected void visitLetNode(LetNode node)
protected void visitIfNode(IfNode node)
protected void visitIfCondNode(IfCondNode node)
protected void visitIfElseNode(IfElseNode node)
protected void visitSwitchNode(SwitchNode node)
protected void visitSwitchCaseNode(SwitchCaseNode node)
protected void visitSwitchDefaultNode(SwitchDefaultNode node)
protected void visitForNode(ForNode node)
protected void visitForIfemptyNode(ForIfemptyNode node)
protected void visitForNonemptyNode(ForNonemptyNode node)
protected void visitCallBasicNode(CallBasicNode node)
protected void visitCallDelegateNode(CallDelegateNode node)
protected void visitCallNode(CallNode node)
protected void visitCallParamValueNode(CallParamValueNode node)
protected void visitCallParamContentNode(CallParamContentNode node)
protected void visitCallParamNode(CallParamNode node)
protected void visitHtmlOpenTagNode(HtmlOpenTagNode node)
protected void visitHtmlCloseTagNode(HtmlCloseTagNode node)
protected void visitHtmlAttributeNode(HtmlAttributeNode node)
protected void visitHtmlAttributeValueNode(HtmlAttributeValueNode node)
protected void visitHtmlCommentNode(HtmlCommentNode node)
protected void visitVeLogNode(VeLogNode node)
protected void visitLogNode(LogNode node)
protected void visitDebuggerNode(DebuggerNode node)
protected void visitSoyNode(SoyNode node)
node - the visited node.