edu.uci.eecs.doc.cascade.graph
Class Exit

java.lang.Object
  extended by edu.uci.eecs.doc.cascade.graph.Vertex
      extended by edu.uci.eecs.doc.cascade.graph.Exit

public class Exit
extends Vertex

Represents the single exit point in control flow graphs. Note that even if the control flow ends at multiple points (e.g., if the method has multiple return statements), all such points branch to this exit node, so there is only one exit point.

Author:
Trevor Harmon

Field Summary
 
Fields inherited from class edu.uci.eecs.doc.cascade.graph.Vertex
graph
 
Constructor Summary
Exit(Graph graph)
          Creates a new Exit object.
 
Method Summary
 String toString()
          Converts the exit node to a string representation.
 
Methods inherited from class edu.uci.eecs.doc.cascade.graph.Vertex
asList, getGraph
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Exit

public Exit(Graph graph)
Creates a new Exit object.

Parameters:
graph - the control flow graph to which this vertex belongs
Method Detail

toString

public String toString()
Converts the exit node to a string representation.

Overrides:
toString in class Object
Returns:
the string "Exit"