|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uci.eecs.doc.cascade.tree.AbstractTreeWriter
public abstract class AbstractTreeWriter
An abstract base class for exporting a control flow tree to various output formats.
| Field Summary | |
|---|---|
protected boolean |
showInstructions
|
protected List<Tree> |
trees
|
| Constructor Summary | |
|---|---|
AbstractTreeWriter(List<Tree> trees)
Creates a new TreeWriter object for the given control flow trees. |
|
| 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. |
abstract void |
write(Writer out)
Exports the control flow tree 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 List<Tree> trees
protected boolean showInstructions
| Constructor Detail |
|---|
public AbstractTreeWriter(List<Tree> trees)
trees - the list of control flow trees to be exported| Method Detail |
|---|
public void setShowInstructions(boolean showInstructions)
setShowInstructions in interface TreeWritershowInstructions - true if instructions should be displayed; false otherwisepublic void write()
System.out).
write in interface TreeWriter
public void write(String filename)
throws IOException
write in interface TreeWriterfilename - the name of a file in which to save the tree
IOException - if the tree cannot be written to disk
public abstract void write(Writer out)
throws IOException
write in interface TreeWriterout - an output stream in which to save the tree
IOException - if the tree cannot be written to the stream
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||