public class TreeToGraphVisitor extends AbstractTargetToSourceVisitor
TransformationTree
Visitor for generating parameters to create a
dot-graph from a treeModifier and Type | Field and Description |
---|---|
static String |
CELL_PREFIX
Cell node ID prefix
|
static String |
SOURCE_PREFIX
Source node ID prefix
|
static String |
TARGET_PREFIX
Target node ID prefix
|
Constructor and Description |
---|
TreeToGraphVisitor()
standard constructor
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.SetMultimap<String,String> |
getAllConnections()
returns all collected node-connections from the tree
|
Set<String> |
getAllIds()
returns the identifiers of all collected nodes from the tree
|
TransformationNode |
getNode(String key)
returns a certain node through his identifier
|
boolean |
includeAnnotatedNodes()
Specifies if annotated nodes should be included in the traversal.
|
void |
leave(CellNode cell)
Called after a cell node has been visited.
|
void |
leave(SourceNode source)
Called after a source node has been visited.
|
void |
leave(TargetNode target)
Called after a target node has been visited.
|
void |
leave(TransformationTree root)
Called after a transformation tree root has been visited.
|
boolean |
visit(CellNode cell)
Visit a cell node.
|
boolean |
visit(SourceNode source)
Visit a source node.
|
boolean |
visit(TargetNode target)
Visit a target node.
|
boolean |
visit(TransformationTree root)
Visit a transformation tree root.
|
isFromTargetToSource
public static final String TARGET_PREFIX
public static final String SOURCE_PREFIX
public static final String CELL_PREFIX
public boolean visit(TransformationTree root)
TransformationNodeVisitor
visit
in interface TransformationNodeVisitor
visit
in class AbstractTransformationNodeVisitor
root
- the transformation tree rootTransformationNodeVisitor.visit(TransformationTree)
public boolean visit(TargetNode target)
TransformationNodeVisitor
visit
in interface TransformationNodeVisitor
visit
in class AbstractTransformationNodeVisitor
target
- the target nodeTransformationNodeVisitor.visit(TargetNode)
public boolean visit(CellNode cell)
TransformationNodeVisitor
visit
in interface TransformationNodeVisitor
visit
in class AbstractTransformationNodeVisitor
cell
- the cell nodeTransformationNodeVisitor.visit(CellNode)
public boolean visit(SourceNode source)
TransformationNodeVisitor
visit
in interface TransformationNodeVisitor
visit
in class AbstractTransformationNodeVisitor
source
- the source nodeTransformationNodeVisitor.visit(SourceNode)
public void leave(TransformationTree root)
TransformationNodeVisitor
leave
in interface TransformationNodeVisitor
leave
in class AbstractTransformationNodeVisitor
root
- the transformation tree rootTransformationNodeVisitor.leave(TransformationTree)
public void leave(TargetNode target)
TransformationNodeVisitor
leave
in interface TransformationNodeVisitor
leave
in class AbstractTransformationNodeVisitor
target
- the target nodeTransformationNodeVisitor.leave(TargetNode)
public void leave(CellNode cell)
TransformationNodeVisitor
leave
in interface TransformationNodeVisitor
leave
in class AbstractTransformationNodeVisitor
cell
- the cell nodeTransformationNodeVisitor.leave(CellNode)
public void leave(SourceNode source)
TransformationNodeVisitor
leave
in interface TransformationNodeVisitor
leave
in class AbstractTransformationNodeVisitor
source
- the source nodeTransformationNodeVisitor.leave(SourceNode)
public boolean includeAnnotatedNodes()
TransformationNodeVisitor
TransformationNodeVisitor.includeAnnotatedNodes()
public com.google.common.collect.SetMultimap<String,String> getAllConnections()
public Set<String> getAllIds()
public TransformationNode getNode(String key)
key
- the identiferBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a