public class GraphMLWriter extends XMLGraphWriter implements IReportWriter
DependencyGraph
as a yed-format graphml file.
This graph will walk through the graph from the ICompilationUnit
stored in roots
and construct a graphml report from the edges.
In yed, the edges will be visually distinguishable from each other:
doc, graph, roots
Constructor and Description |
---|
GraphMLWriter(DependencyGraph graph,
Collection<ICompilationUnit> roots,
boolean useExternalDependencies,
LinkageChecker linkageChecker)
GraphMLWriter constructor
|
Modifier and Type | Method and Description |
---|---|
void |
writeToStream(OutputStream outStream,
Collection<ICompilerProblem> problems)
Writes the current graph state and root compilation nodes to the output stream specified
as a link report.
|
formatXMLStyleQName, writeReport
public GraphMLWriter(DependencyGraph graph, Collection<ICompilationUnit> roots, boolean useExternalDependencies, LinkageChecker linkageChecker)
graph
- A DependencyGraph
that this class will report onroots
- A list of ICompilationUnit
that the graph walker will start on.
Only units that are reachable from these units will be reported on.linkageChecker
- class to check the linkage of compilation units.
May not be null.public void writeToStream(OutputStream outStream, Collection<ICompilerProblem> problems) throws InterruptedException
IReportWriter
This should only be called when all compilation units are finished. There are no guarantees on the effects if called when compiler threads are still running.
writeToStream
in interface IReportWriter
writeToStream
in class XMLGraphWriter
outStream
- An OutputStream
that the report will be written toproblems
- A Collection
of ICompilerProblem
that this class will add to in case of exceptions or problemsInterruptedException
- can occur if this method is called while compilation is happeningCopyright © 2016 The Apache Software Foundation. All rights reserved.