public class CollectingDependencyNodeVisitor extends Object implements DependencyNodeVisitor
Constructor and Description |
---|
CollectingDependencyNodeVisitor()
Creates a dependency node visitor that collects visited nodes for further processing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
endVisit(DependencyNode node)
Ends the visit to to the specified dependency node.
|
List<DependencyNode> |
getNodes()
Gets the list of collected dependency nodes.
|
boolean |
visit(DependencyNode node)
Starts the visit to the specified dependency node.
|
public CollectingDependencyNodeVisitor()
public boolean visit(DependencyNode node)
visit
in interface DependencyNodeVisitor
node
- the dependency node to visittrue
to visit the specified dependency node's children, false
to skip the
specified dependency node's children and proceed to its next siblingpublic boolean endVisit(DependencyNode node)
endVisit
in interface DependencyNodeVisitor
node
- the dependency node to visittrue
to visit the specified dependency node's next sibling, false
to skip the
specified dependency node's next siblings and proceed to its parentpublic List<DependencyNode> getNodes()
Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.