public class FilteringDependencyNodeVisitor extends Object implements DependencyNodeVisitor
Constructor and Description |
---|
FilteringDependencyNodeVisitor(DependencyNodeVisitor visitor,
DependencyNodeFilter filter)
Creates a dependency node visitor that delegates nodes that are accepted by the specified filter to the specified
visitor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
endVisit(DependencyNode node)
Ends the visit to to the specified dependency node.
|
DependencyNodeFilter |
getDependencyNodeFilter()
Gets the dependency node filter that this visitor applies before delegation.
|
DependencyNodeVisitor |
getDependencyNodeVisitor()
Gets the dependency node visitor that this visitor delegates to.
|
boolean |
visit(DependencyNode node)
Starts the visit to the specified dependency node.
|
public FilteringDependencyNodeVisitor(DependencyNodeVisitor visitor, DependencyNodeFilter filter)
visitor
- the dependency node visitor to delegate tofilter
- the dependency node filter to apply before delegationpublic 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 DependencyNodeVisitor getDependencyNodeVisitor()
public DependencyNodeFilter getDependencyNodeFilter()
Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.