public class SerializingDependencyNodeVisitor extends Object implements DependencyNodeVisitor
Modifier and Type | Class and Description |
---|---|
static class |
SerializingDependencyNodeVisitor.TreeTokens
Provides tokens to use when serializing the dependency tree.
|
Modifier and Type | Field and Description |
---|---|
static SerializingDependencyNodeVisitor.TreeTokens |
EXTENDED_TOKENS
The extended ASCII tokens to use when outputing the dependency tree.
|
static SerializingDependencyNodeVisitor.TreeTokens |
STANDARD_TOKENS
The standard ASCII tokens to use when outputing the dependency tree.
|
static SerializingDependencyNodeVisitor.TreeTokens |
WHITESPACE_TOKENS
Whitespace tokens to use when outputing the dependency tree.
|
Constructor and Description |
---|
SerializingDependencyNodeVisitor(Writer writer)
Creates a dependency node visitor that serializes visited nodes to the specified writer using whitespace tokens.
|
SerializingDependencyNodeVisitor(Writer writer,
SerializingDependencyNodeVisitor.TreeTokens tokens)
Creates a dependency node visitor that serializes visited nodes to the specified writer using the specified
tokens.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final SerializingDependencyNodeVisitor.TreeTokens WHITESPACE_TOKENS
public static final SerializingDependencyNodeVisitor.TreeTokens STANDARD_TOKENS
public static final SerializingDependencyNodeVisitor.TreeTokens EXTENDED_TOKENS
public SerializingDependencyNodeVisitor(Writer writer)
writer
- the writer to serialize topublic SerializingDependencyNodeVisitor(Writer writer, SerializingDependencyNodeVisitor.TreeTokens tokens)
writer
- the writer to serialize totokens
- the tokens to use when serializing the dependency treepublic 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 parentCopyright © 2002–2014 The Apache Software Foundation. All rights reserved.