Class NodeTraversal.AbstractNodeTypePruningCallback

java.lang.Object
com.google.javascript.jscomp.NodeTraversal.AbstractNodeTypePruningCallback
All Implemented Interfaces:
NodeTraversal.Callback
Enclosing class:
NodeTraversal

public abstract static class NodeTraversal.AbstractNodeTypePruningCallback extends Object implements NodeTraversal.Callback
Abstract callback to visit a pruned set of nodes.
  • Constructor Details

    • AbstractNodeTypePruningCallback

      public AbstractNodeTypePruningCallback(Set<Integer> nodeTypes)
      Creates an abstract pruned callback.
      Parameters:
      nodeTypes - the nodes to include in the traversal
    • AbstractNodeTypePruningCallback

      public AbstractNodeTypePruningCallback(Set<Integer> nodeTypes, boolean include)
      Creates an abstract pruned callback.
      Parameters:
      nodeTypes - the nodes to include/exclude in the traversal
      include - whether to include or exclude the nodes in the traversal
  • Method Details