edu.uci.eecs.doc.cascade.tree
Interface TreeWriter

All Known Implementing Classes:
AbstractTreeWriter, SVGTreeWriter, SVGTreeWriter, TextTreeWriter, TextTreeWriter

public interface TreeWriter

An interface for exporting a control flow tree to various output formats.

Author:
Trevor Harmon

Method Summary
 void setShowInstructions(boolean showInstructions)
          Tells whether the string representations of the nodes should include a list of the node's bytecode instructions.
 void write()
          Prints the control flow tree to standard output (System.out).
 void write(String filename)
          Exports the control flow tree to the specified file.
 void write(Writer out)
          Exports the control flow tree to the specified output stream.
 

Method Detail

setShowInstructions

void setShowInstructions(boolean showInstructions)
Tells whether the string representations of the nodes should include a list of the node's bytecode instructions.

Parameters:
showInstructions - true if instructions should be displayed; false otherwise

write

void write()
Prints the control flow tree to standard output (System.out).


write

void write(String filename)
           throws IOException
Exports the control flow tree to the specified file.

Parameters:
filename - the name of a file in which to save the tree
Throws:
IOException - if the tree cannot be written to disk

write

void write(Writer out)
           throws IOException
Exports the control flow tree to the specified output stream.

Parameters:
out - an output stream in which to save the tree
Throws:
IOException - if the tree cannot be written to the stream