public final class FindCalleesNotInFileVisitor extends AbstractSoyNodeVisitor<Set<CallBasicNode>>
Important: Only deals with basic callees (not delegates). Calls to delegates are not applicable here because we cannot tell at compile time which delegate will be called (if any).
Precondition: All template and callee names should be full names (i.e. you must execute
SetFullCalleeNamesVisitor before executing this visitor).
exec(com.google.template.soy.soytree.SoyNode) should be called on a SoyFileNode. The returned set will be the full
names of all templates called by the templates in this file that that not in this file. In other
words, if T is the set of templates in this file and U is the set of templates not in this file,
then the returned set consists of the full names of all templates in U called by any template
in T.
| Constructor and Description |
|---|
FindCalleesNotInFileVisitor() |
| Modifier and Type | Method and Description |
|---|---|
Set<CallBasicNode> |
exec(SoyNode node)
Executes the function defined by this visitor.
|
protected void |
visitCallBasicNode(CallBasicNode node) |
protected void |
visitSoyFileNode(SoyFileNode node) |
protected void |
visitSoyNode(SoyNode node) |
visit, visitCallDelegateNode, visitCallNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitCssNode, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgFallbackGroupNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitMsgSubstUnitNode, visitPrintDirectiveNode, visitPrintNode, visitRawTextNode, visitSoyFileSetNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitTemplateNode, visitXidNodevisitChildren, visitChildrenAllowingConcurrentModificationpublic Set<CallBasicNode> exec(SoyNode node)
NodeVisitorexec in interface NodeVisitor<SoyNode,Set<CallBasicNode>>exec in class AbstractNodeVisitor<SoyNode,Set<CallBasicNode>>node - The node to execute the function on.protected void visitSoyFileNode(SoyFileNode node)
visitSoyFileNode in class AbstractSoyNodeVisitor<Set<CallBasicNode>>protected void visitCallBasicNode(CallBasicNode node)
visitCallBasicNode in class AbstractSoyNodeVisitor<Set<CallBasicNode>>protected void visitSoyNode(SoyNode node)
visitSoyNode in class AbstractSoyNodeVisitor<Set<CallBasicNode>>node - the visited node.