Interface SkipNodeAndSubTreesCallback

  • All Superinterfaces:
    NodeCallback

    public interface SkipNodeAndSubTreesCallback
    extends NodeCallback
    If this type of callback is passed to the tree walker, then it is called on every node, before calling other callbacks or even callbacks of children.
    • Method Detail

      • shallBeSkipped

        boolean shallBeSkipped​(Node node)
        Called before any other callback on this node is called. The instance of the callback can then decide if the walker shall continue to call the other callbacks and visit the children or not.
        Parameters:
        node - the node, which was reached by the tree walker
        Returns:
        true if the node and all is children shall be skipped this walking iteration, false if not