
org.jvnet.maven.plugin.antrun.GraphVisitor Maven / Gradle / Ivy
package org.jvnet.maven.plugin.antrun;
/**
* Traverses a {@link DependencyGraph} in a depth-first order.
* All the reachable nodes and edges are visited.
*
* @author Kohsuke Kawaguchi
*/
public interface GraphVisitor {
/**
* Visits an edge.
*
* @return
* false to cut the traversal here and don't visit
* its destination node.
*/
boolean visit(DependencyGraph.Edge edge);
/**
* Visits a node.
*
* @return
* false to cut the traversal here and don't visit
* any of forward edges from this node.
*/
boolean visit(DependencyGraph.Node node);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy