com.google.template.soy.sharedpasses
Class AssertNoExternalCallsVisitor

java.lang.Object
  extended by com.google.template.soy.basetree.AbstractNodeVisitor<SoyNode,R>
      extended by com.google.template.soy.soytree.AbstractSoyNodeVisitor<Void>
          extended by com.google.template.soy.sharedpasses.AssertNoExternalCallsVisitor
All Implemented Interfaces:
NodeVisitor<SoyNode,Void>

public class AssertNoExternalCallsVisitor
extends AbstractSoyNodeVisitor<Void>

Visitor to check that there are no external calls. Used by backends that disallow external calls, such as the Tofu (JavaObj) backend.

exec(com.google.template.soy.soytree.SoyNode) should be called on a SoyFileSetNode or a SoyFileNode. There is no return value. A SoySyntaxException is thrown if an error is found.


Constructor Summary
AssertNoExternalCallsVisitor()
           
 
Method Summary
 Void exec(SoyNode soyNode)
          Executes the function defined by this visitor.
protected  void visitCallBasicNode(CallBasicNode node)
           
protected  void visitSoyNode(SoyNode node)
           
 
Methods inherited from class com.google.template.soy.soytree.AbstractSoyNodeVisitor
visit, visitCallDelegateNode, visitCallNode, visitCallParamContentNode, visitCallParamNode, visitCallParamValueNode, visitChildren, visitChildrenAllowingConcurrentModification, visitCssNode, visitDebuggerNode, visitForeachIfemptyNode, visitForeachNode, visitForeachNonemptyNode, visitForNode, visitGoogMsgNode, visitGoogMsgRefNode, visitIfCondNode, visitIfElseNode, visitIfNode, visitLetContentNode, visitLetNode, visitLetValueNode, visitLogNode, visitLoopNode, visitMsgHtmlTagNode, visitMsgNode, visitMsgPlaceholderNode, visitMsgPluralCaseNode, visitMsgPluralDefaultNode, visitMsgPluralNode, visitMsgPluralRemainderNode, visitMsgSelectCaseNode, visitMsgSelectDefaultNode, visitMsgSelectNode, visitPrintDirectiveNode, visitPrintNode, visitRawTextNode, visitSoyFileNode, visitSoyFileSetNode, visitSwitchCaseNode, visitSwitchDefaultNode, visitSwitchNode, visitTemplateBasicNode, visitTemplateDelegateNode, visitTemplateNode
 
Methods inherited from class com.google.template.soy.basetree.AbstractNodeVisitor
visitChildren, visitChildrenAllowingConcurrentModification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssertNoExternalCallsVisitor

public AssertNoExternalCallsVisitor()
Method Detail

exec

public Void exec(SoyNode soyNode)
Description copied from interface: NodeVisitor
Executes the function defined by this visitor.

Specified by:
exec in interface NodeVisitor<SoyNode,Void>
Overrides:
exec in class AbstractNodeVisitor<SoyNode,Void>
Parameters:
soyNode - The node to execute the function on.

visitCallBasicNode

protected void visitCallBasicNode(CallBasicNode node)
Overrides:
visitCallBasicNode in class AbstractSoyNodeVisitor<Void>

visitSoyNode

protected void visitSoyNode(SoyNode node)
Overrides:
visitSoyNode in class AbstractSoyNodeVisitor<Void>
Parameters:
node - the visited node.