class BasicIdealGraphPrinter extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
BasicIdealGraphPrinter.Edge
Edge between two nodes.
|
Modifier and Type | Field and Description |
---|---|
private PrintStream |
stream |
Modifier | Constructor and Description |
---|---|
protected |
BasicIdealGraphPrinter(OutputStream stream)
Creates a new
IdealGraphPrinter that writes to the specified output stream. |
Modifier and Type | Method and Description |
---|---|
protected void |
begin()
Starts a new graph document.
|
protected void |
beginBlock(String name) |
protected void |
beginBlockNodes() |
protected void |
beginBytecodes() |
protected void |
beginControlFlow() |
protected void |
beginEdges() |
protected void |
beginGraph(String title) |
protected void |
beginGroup() |
protected void |
beginMethod(String name,
String shortName,
int bci) |
protected void |
beginNode(String id) |
protected void |
beginNodes() |
protected void |
beginProperties() |
protected void |
beginSuccessors() |
void |
close() |
protected void |
end()
Finishes the graph document and flushes the output stream.
|
protected void |
endBlock() |
protected void |
endBlockNodes() |
protected void |
endBytecodes() |
protected void |
endControlFlow() |
protected void |
endEdges() |
protected void |
endGraph() |
void |
endGroup()
Ends the current group.
|
protected void |
endMethod() |
protected void |
endNode() |
protected void |
endNodes() |
protected void |
endProperties() |
protected void |
endSuccessors() |
private static String |
escape(String s) |
protected void |
flush()
Flushes any buffered output.
|
boolean |
isValid() |
protected void |
printBlockNode(String nodeId) |
protected void |
printBytecode(int bci,
String mnemonic,
int[] extra) |
protected void |
printBytecodes(String disassembly) |
protected void |
printEdge(BasicIdealGraphPrinter.Edge edge) |
protected void |
printNode(String id,
Map<String,String> properties) |
protected void |
printProperties(Map<String,String> properties) |
protected void |
printProperty(String name,
String value) |
protected void |
printSuccessor(String name) |
private final PrintStream stream
protected BasicIdealGraphPrinter(OutputStream stream)
IdealGraphPrinter
that writes to the specified output stream.protected void flush()
protected void begin()
protected void beginGroup()
protected void beginMethod(String name, String shortName, int bci)
protected void beginBytecodes()
protected void printBytecode(int bci, String mnemonic, int[] extra)
protected void endBytecodes()
protected void printBytecodes(String disassembly)
protected void endMethod()
protected void beginGraph(String title)
protected void beginProperties()
protected void printProperty(String name, String value)
protected void endProperties()
protected void printProperties(Map<String,String> properties)
protected void beginNodes()
protected void endNode()
protected void endNodes()
protected void beginEdges()
protected void printEdge(BasicIdealGraphPrinter.Edge edge)
protected void endEdges()
protected void beginControlFlow()
protected void beginBlock(String name)
protected void beginSuccessors()
protected void printSuccessor(String name)
protected void endSuccessors()
protected void beginBlockNodes()
protected void printBlockNode(String nodeId)
protected void endBlockNodes()
protected void endBlock()
protected void endControlFlow()
protected void endGraph()
public void endGroup()
protected void end()
public void close()
public boolean isValid()