@Experimental @Immutable public interface Node
DependencyCollectorResult.getRoot()
Modifier and Type | Method and Description |
---|---|
boolean |
accept(NodeVisitor visitor)
Traverses this node and potentially its children using the specified visitor.
|
String |
asString()
Returns a string representation of this dependency node.
|
Node |
filter(Predicate<Node> filter)
Returns a new tree starting at this node, filtering the children.
|
List<Node> |
getChildren()
Gets the child nodes of this node.
|
Dependency |
getDependency() |
List<RemoteRepository> |
getRemoteRepositories() |
Optional<RemoteRepository> |
getRepository()
The repository where this artifact has been downloaded from.
|
default Stream<Node> |
stream()
Obtain a Stream containing this node and all its descendant.
|
Dependency getDependency()
@Nonnull List<Node> getChildren()
null
@Nonnull List<RemoteRepository> getRemoteRepositories()
@Nonnull Optional<RemoteRepository> getRepository()
boolean accept(@Nonnull NodeVisitor visitor)
visitor
- The visitor to call back, must not be null
.true
to visit siblings nodes of this node as well, false
to skip siblings.Node filter(Predicate<Node> filter)
filter
- the filter to applyString asString()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.