public final class FindCalleesNotInFileVisitor extends AbstractSoyNodeVisitor<SortedSet<String>>
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.
errorReporter| Constructor and Description |
|---|
FindCalleesNotInFileVisitor(ErrorReporter errorReporter) |
| Modifier and Type | Method and Description |
|---|---|
SortedSet<String> |
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, 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, visitSoyFileSetNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitTemplateNode, visitXidNodevisitChildren, visitChildrenAllowingConcurrentModificationpublic FindCalleesNotInFileVisitor(ErrorReporter errorReporter)
public SortedSet<String> exec(SoyNode node)
NodeVisitorexec in interface NodeVisitor<SoyNode,SortedSet<String>>exec in class AbstractNodeVisitor<SoyNode,SortedSet<String>>node - The node to execute the function on.protected void visitSoyFileNode(SoyFileNode node)
visitSoyFileNode in class AbstractSoyNodeVisitor<SortedSet<String>>protected void visitCallBasicNode(CallBasicNode node)
visitCallBasicNode in class AbstractSoyNodeVisitor<SortedSet<String>>protected void visitSoyNode(SoyNode node)
visitSoyNode in class AbstractSoyNodeVisitor<SortedSet<String>>node - the visited node.