com.google.template.soy.soytree
Interface SoytreeUtils.Shortcircuiter<R>

Type Parameters:
R - The ExprNode visitor's return type.
Enclosing class:
SoytreeUtils

public static interface SoytreeUtils.Shortcircuiter<R>

Helper interface for visitAllExprsShortcircuitably.


Method Summary
 boolean shouldShortcircuit(AbstractExprNodeVisitor<R> exprNodeVisitor)
          Called at various points during a pass initiated by visitAllExprsShortcircuitably.
 

Method Detail

shouldShortcircuit

boolean shouldShortcircuit(AbstractExprNodeVisitor<R> exprNodeVisitor)
Called at various points during a pass initiated by visitAllExprsShortcircuitably. This method should return whether or not to shortcircuit the pass (at the current point in the pass).

Parameters:
exprNodeVisitor - The expression visitor being used by visitAllExprsShortcircuitably.
Returns:
Whether to shortcircuit the pass (at the current point in the pass).