public final class GraphvizInjectionPlanVisitor extends AbstractInjectionPlanNodeVisitor implements EdgeVisitor<InjectionPlan<?>>
Constructor and Description |
---|
GraphvizInjectionPlanVisitor(boolean showLegend)
Create a new visitor to build a graphviz string for the injection plan.
|
Modifier and Type | Method and Description |
---|---|
static String |
getGraphvizString(InjectionPlan<?> injectionPlan,
boolean showLegend)
Produce a Graphviz DOT string for a given TANG injection plan.
|
String |
toString() |
boolean |
visit(Constructor<?> node)
Process current injection plan node of Constructor type.
|
boolean |
visit(InjectionPlan<?> nodeFrom,
InjectionPlan<?> nodeTo)
Process current edge of the injection plan.
|
boolean |
visit(JavaInstance<?> node)
Process current injection plan node of JavaInstance type.
|
boolean |
visit(Subplan<?> node)
Process current injection plan node of Subplan type.
|
visit
public GraphvizInjectionPlanVisitor(boolean showLegend)
showLegend
- if true, show legend on the graph.public static String getGraphvizString(InjectionPlan<?> injectionPlan, boolean showLegend)
injectionPlan
- TANG injection plan.showLegend
- if true, show legend on the graph.public boolean visit(Constructor<?> node)
visit
in class AbstractInjectionPlanNodeVisitor
node
- Current injection plan node.public boolean visit(JavaInstance<?> node)
visit
in class AbstractInjectionPlanNodeVisitor
node
- Current injection plan node.public boolean visit(Subplan<?> node)
visit
in class AbstractInjectionPlanNodeVisitor
node
- Current injection plan node.public boolean visit(InjectionPlan<?> nodeFrom, InjectionPlan<?> nodeTo)
visit
in interface EdgeVisitor<InjectionPlan<?>>
nodeFrom
- Current injection plan node.nodeTo
- Destination injection plan node.Copyright © 2017 The Apache Software Foundation. All rights reserved.