|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.uci.eecs.doc.cascade.graph.AbstractGraphWriter
public abstract class AbstractGraphWriter
An abstract base class for exporting a control flow graph to various output formats.
Field Summary | |
---|---|
protected EdgeIDProvider |
edgeIDProvider
|
protected EdgeLabelProvider |
edgeLabelProvider
|
protected Graph |
graph
|
protected VertexIDProvider |
vertexIDProvider
|
protected VertexLabelProvider |
vertexLabelProvider
|
Constructor Summary | |
---|---|
AbstractGraphWriter(Graph graph)
Creates a new GraphWriter object. |
|
AbstractGraphWriter(Graph graph,
VertexIDProvider vertexIDProvider,
VertexLabelProvider vertexLabelProvider,
EdgeIDProvider edgeIDProvider,
EdgeLabelProvider edgeLabelProvider)
Creates a new GraphWriter object. |
Method Summary | |
---|---|
void |
write(String filename)
Exports the control flow graph to the specified file. |
abstract void |
write(Writer out)
Exports the control flow graph to the specified output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final Graph graph
protected VertexIDProvider vertexIDProvider
protected VertexLabelProvider vertexLabelProvider
protected EdgeIDProvider edgeIDProvider
protected EdgeLabelProvider edgeLabelProvider
Constructor Detail |
---|
public AbstractGraphWriter(Graph graph)
graph
- the control flow graph to be exportedpublic AbstractGraphWriter(Graph graph, VertexIDProvider vertexIDProvider, VertexLabelProvider vertexLabelProvider, EdgeIDProvider edgeIDProvider, EdgeLabelProvider edgeLabelProvider)
graph
- the control flow graph to be exportedvertexIDProvider
- for generating vertex IDsvertexLabelProvider
- for generating vertex labelsedgeIDProvider
- for generating edge IDsedgeLabelProvider
- for generating edge labelsMethod Detail |
---|
public void write(String filename) throws IOException
write
in interface GraphWriter
filename
- the name of a file in which to save the graph
IOException
- if the graph cannot be written to diskpublic abstract void write(Writer out) throws IOException
write
in interface GraphWriter
out
- an output stream in which to save the graph
IOException
- if the graph cannot be written to the stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |