Stanse  -1
Public Member Functions | List of all members
cz.muni.stanse.codestructures.CFGPart Class Reference
Inheritance diagram for cz.muni.stanse.codestructures.CFGPart:
Inheritance graph
[legend]

Public Member Functions

CFGNode getStartNode ()
 
void setStartNode (CFGNode n)
 
CFGNode getEndNode ()
 
void setEndNode (CFGNode n)
 
boolean isEmpty ()
 
void append (CFGPart g)
 
void append (CFGNode n)
 
Set< CFGNodegetAllNodes ()
 
Set< CFGNodegetAllNodesOpt ()
 
Set< CFGNodegetAllNodesReverse ()
 
void drop ()
 
boolean equals (Object obj)
 
int hashCode ()
 
String toString ()
 
String toStringGraph ()
 Converts CFGPart to a string representation. More...
 
String toDot ()
 Converts CFGPart to a dot graph representation. More...
 

Detailed Description

Represents a control-flow graph of a procedure

Member Function Documentation

void cz.muni.stanse.codestructures.CFGPart.append ( CFGPart  g)
inline

Appends one CFG to the another

Parameters
ga CFG to append at the end of this instance
void cz.muni.stanse.codestructures.CFGPart.append ( CFGNode  n)
inline

Appends one CFGNode to the CFG

Parameters
na CFGNode to append at the end of this CFG
void cz.muni.stanse.codestructures.CFGPart.drop ( )
inline
boolean cz.muni.stanse.codestructures.CFGPart.equals ( Object  obj)
inline
Set<CFGNode> cz.muni.stanse.codestructures.CFGPart.getAllNodes ( )
inline

Returns all nodes in this CFG

Returns
list of all nodes
Set<CFGNode> cz.muni.stanse.codestructures.CFGPart.getAllNodesOpt ( )
inline

Returns all nodes in this CFG including optimized ones

Returns
list of all nodes
Set<CFGNode> cz.muni.stanse.codestructures.CFGPart.getAllNodesReverse ( )
inline
CFGNode cz.muni.stanse.codestructures.CFGPart.getEndNode ( )
inline

Returns end of the CFG

Returns
end node
CFGNode cz.muni.stanse.codestructures.CFGPart.getStartNode ( )
inline

Returns start of the CFG

Returns
start node
int cz.muni.stanse.codestructures.CFGPart.hashCode ( )
inline
boolean cz.muni.stanse.codestructures.CFGPart.isEmpty ( )
inline
void cz.muni.stanse.codestructures.CFGPart.setEndNode ( CFGNode  n)
inline

Sets end of the CFG

Parameters
nend node
void cz.muni.stanse.codestructures.CFGPart.setStartNode ( CFGNode  n)
inline

Sets start of the CFG

Parameters
nstart node
String cz.muni.stanse.codestructures.CFGPart.toDot ( )
inline

Converts CFGPart to a dot graph representation.

Useful for dumping cfgs to a file and generating e.g. PostScript from it. See Graphviz software.

Returns
dot representation stored in a string
String cz.muni.stanse.codestructures.CFGPart.toString ( )
inline
String cz.muni.stanse.codestructures.CFGPart.toStringGraph ( )
inline

Converts CFGPart to a string representation.

Useful for dumping to logs or console.

Returns
string representation

The documentation for this class was generated from the following file: