|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.shared.dependency.graph.traversal.SerializingDependencyNodeVisitor
public class SerializingDependencyNodeVisitor
A dependency node visitor that serializes visited nodes to a writer.
Nested Class Summary | |
---|---|
static class |
SerializingDependencyNodeVisitor.GraphTokens
Provides tokens to use when serializing the dependency graph. |
Field Summary | |
---|---|
static SerializingDependencyNodeVisitor.GraphTokens |
EXTENDED_TOKENS
The extended ASCII tokens to use when outputing the dependency graph. |
static SerializingDependencyNodeVisitor.GraphTokens |
STANDARD_TOKENS
The standard ASCII tokens to use when outputing the dependency graph. |
static SerializingDependencyNodeVisitor.GraphTokens |
WHITESPACE_TOKENS
Whitespace tokens to use when outputing the dependency graph. |
Constructor Summary | |
---|---|
SerializingDependencyNodeVisitor(Writer writer)
Creates 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 | |
---|---|
boolean |
endVisit(DependencyNode node)
Ends the visit to to the specified dependency node. |
boolean |
visit(DependencyNode node)
Starts the visit to the specified dependency node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final SerializingDependencyNodeVisitor.GraphTokens WHITESPACE_TOKENS
public static final SerializingDependencyNodeVisitor.GraphTokens STANDARD_TOKENS
public static final SerializingDependencyNodeVisitor.GraphTokens EXTENDED_TOKENS
Constructor Detail |
---|
public SerializingDependencyNodeVisitor(Writer writer)
writer
- the writer to serialize topublic SerializingDependencyNodeVisitor(Writer writer, SerializingDependencyNodeVisitor.GraphTokens tokens)
writer
- the writer to serialize totokens
- the tokens to use when serializing the dependency graphMethod Detail |
---|
public boolean visit(DependencyNode node)
visit
in interface DependencyNodeVisitor
node
- the dependency node to visit
true
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 visit
true
to visit the specified dependency node's next sibling, false
to skip
the specified dependency node's next siblings and proceed to its parent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |