Class SerializingDependencyNodeVisitor
java.lang.Object
org.apache.maven.shared.dependency.graph.traversal.SerializingDependencyNodeVisitor
- All Implemented Interfaces:
DependencyNodeVisitor
A dependency node visitor that serializes visited nodes to a writer.
- Author:
- Mark Hobson
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Provides tokens to use when serializing the dependency graph. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SerializingDependencyNodeVisitor.GraphTokens
The extended ASCII tokens to use when outputing the dependency graph.static final SerializingDependencyNodeVisitor.GraphTokens
The standard ASCII tokens to use when outputing the dependency graph.static final SerializingDependencyNodeVisitor.GraphTokens
Whitespace tokens to use when outputing the dependency graph. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a dependency node visitor that serializes visited nodes to the specified writer using whitespace tokens.SerializingDependencyNodeVisitor
(Writer writer, SerializingDependencyNodeVisitor.GraphTokens tokens) Creates a dependency node visitor that serializes visited nodes to the specified writer using the specified tokens. -
Method Summary
Modifier and TypeMethodDescriptionboolean
endVisit
(DependencyNode node) Ends the visit to to the specified dependency node.boolean
visit
(DependencyNode node) Starts the visit to the specified dependency node.
-
Field Details
-
WHITESPACE_TOKENS
Whitespace tokens to use when outputing the dependency graph. -
STANDARD_TOKENS
The standard ASCII tokens to use when outputing the dependency graph. -
EXTENDED_TOKENS
The extended ASCII tokens to use when outputing the dependency graph.
-
-
Constructor Details
-
SerializingDependencyNodeVisitor
Creates a dependency node visitor that serializes visited nodes to the specified writer using whitespace tokens.- Parameters:
writer
- the writer to serialize to
-
-
Method Details