public class CheckOverridesVisitor extends AbstractSoyNodeVisitor<Void>
Important: Do not use outside of Soy code (treat as superpackage-private).
Overrides are only allowed in Soy V1. An override is a template with the same name as an earlier template, intended to replace the earlier definition.
exec(com.google.template.soy.soytree.SoyNode) should be called on a full parse tree. This visitor will check that all
overrides are explicit. There is no return value. A SoySyntaxException is thrown if a
non-explicit override is found.
| Constructor and Description |
|---|
CheckOverridesVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Void |
exec(SoyNode node)
Executes the function defined by this visitor.
|
protected void |
visitSoyFileNode(SoyFileNode node) |
protected void |
visitSoyFileSetNode(SoyFileSetNode node) |
protected void |
visitTemplateBasicNode(TemplateBasicNode node) |
protected void |
visitTemplateDelegateNode(TemplateDelegateNode node) |
visit, visitCallBasicNode, visitCallDelegateNode, visitCallNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitCssNode, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitGoogMsgDefNode, visitGoogMsgRefNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgFallbackGroupNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgPluralRemainderNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitMsgSubstUnitNode, visitPrintDirectiveNode, visitPrintNode, visitRawTextNode, visitSoyNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateNode, visitXidNodevisitChildren, visitChildrenAllowingConcurrentModificationpublic Void exec(SoyNode node)
NodeVisitorexec in interface NodeVisitor<SoyNode,Void>exec in class AbstractNodeVisitor<SoyNode,Void>node - The node to execute the function on.protected void visitSoyFileSetNode(SoyFileSetNode node)
visitSoyFileSetNode in class AbstractSoyNodeVisitor<Void>SoySyntaxException - If a non-explicit override is found.protected void visitSoyFileNode(SoyFileNode node)
visitSoyFileNode in class AbstractSoyNodeVisitor<Void>SoySyntaxException - If a non-explicit override is found.protected void visitTemplateBasicNode(TemplateBasicNode node)
visitTemplateBasicNode in class AbstractSoyNodeVisitor<Void>SoySyntaxException - If a non-explicit override is found.protected void visitTemplateDelegateNode(TemplateDelegateNode node)
visitTemplateDelegateNode in class AbstractSoyNodeVisitor<Void>