Package org.apache.maven.internal.impl
Class DefaultNode
java.lang.Object
org.apache.maven.internal.impl.AbstractNode
org.apache.maven.internal.impl.DefaultNode
- All Implemented Interfaces:
Node
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.eclipse.aether.graph.DependencyNode
protected final InternalSession
protected final boolean
-
Constructor Summary
ConstructorDescriptionDefaultNode
(InternalSession session, org.eclipse.aether.graph.DependencyNode node, boolean verbose) -
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns a string representation of this dependency node.Gets the child nodes of this node.The repository where this artifact has been downloaded from.Methods inherited from class org.apache.maven.internal.impl.AbstractNode
accept, filter, toString
-
Field Details
-
session
-
node
-
verbose
protected final boolean verbose
-
-
Constructor Details
-
DefaultNode
public DefaultNode(@Nonnull InternalSession session, @Nonnull org.eclipse.aether.graph.DependencyNode node, boolean verbose)
-
-
Method Details
-
getArtifact
- Returns:
- artifact for this node
-
getDependency
- Returns:
- dependency for this node
-
getChildren
Description copied from interface:Node
Gets the child nodes of this node.- Returns:
- the child nodes of this node, never
null
-
getRemoteRepositories
- Returns:
- repositories of this node
-
getRepository
Description copied from interface:Node
The repository where this artifact has been downloaded from. -
asString
Description copied from interface:Node
Returns a string representation of this dependency node.- Specified by:
asString
in interfaceNode
- Overrides:
asString
in classAbstractNode
- Returns:
- the string representation
-