Class NodeTraversal.AbstractNodeTypePruningCallback

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean shouldTraverse​(NodeTraversal nodeTraversal, Node n, Node parent)
      Visits a node in pre order (before visiting its children) and decides whether this node's children should be traversed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractNodeTypePruningCallback

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

        public AbstractNodeTypePruningCallback​(java.util.Set<java.lang.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