cz::muni::stanse::codestructures::CFGPart Class Reference

Inheritance diagram for cz::muni::stanse::codestructures::CFGPart:
[legend]
Collaboration diagram for cz::muni::stanse::codestructures::CFGPart:
[legend]

List of all members.

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< CFGNodegetAllNodesReverse ()
void drop ()
boolean equals (Object obj)
int hashCode ()
String toString ()
String toStringGraph ()
 Converts CFGPart to a string representation.
String toDot ()
 Converts CFGPart to a dot graph representation.

Protected Member Functions

Set< CFGNodegetAllNodes ()
Set< CFGNodegetAllNodesOpt ()


Detailed Description

Represents a control-flow graph of a procedure

Member Function Documentation

CFGNode cz::muni::stanse::codestructures::CFGPart::getStartNode (  )  [inline]

Returns start of the CFG

Returns:
start node

void cz::muni::stanse::codestructures::CFGPart::setStartNode ( CFGNode  n  )  [inline]

Sets start of the CFG

Parameters:
n start node

CFGNode cz::muni::stanse::codestructures::CFGPart::getEndNode (  )  [inline]

Returns end of the CFG

Returns:
end node

void cz::muni::stanse::codestructures::CFGPart::setEndNode ( CFGNode  n  )  [inline]

Sets end of the CFG

Parameters:
n end node

boolean cz::muni::stanse::codestructures::CFGPart::isEmpty (  )  [inline]

void cz::muni::stanse::codestructures::CFGPart::append ( CFGPart  g  )  [inline]

Appends one CFG to the another

Parameters:
g a 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:
n a CFGNode to append at the end of this CFG

Set<CFGNode> cz::muni::stanse::codestructures::CFGPart::getAllNodes (  )  [inline, protected]

Returns all nodes in this CFG

Returns:
list of all nodes

Set<CFGNode> cz::muni::stanse::codestructures::CFGPart::getAllNodesOpt (  )  [inline, protected]

Returns all nodes in this CFG including optimized ones

Returns:
list of all nodes

Set<CFGNode> cz::muni::stanse::codestructures::CFGPart::getAllNodesReverse (  )  [inline]

void cz::muni::stanse::codestructures::CFGPart::drop (  )  [inline]

boolean cz::muni::stanse::codestructures::CFGPart::equals ( Object  obj  )  [inline]

int cz::muni::stanse::codestructures::CFGPart::hashCode (  )  [inline]

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

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


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

Generated on Thu Jan 13 16:24:08 2011 for Stanse by  doxygen 1.5.6