harpoon.IR.Properties
Class CFGEdge

java.lang.Object
  |
  +--harpoon.IR.Properties.CFGEdge
All Implemented Interfaces:
HCodeEdge
Direct Known Subclasses:
Edge, InstrEdge

public abstract class CFGEdge
extends Object
implements HCodeEdge

An CFGEdge connects two CFGraphables in a graph structure.

Version:
$Id: CFGEdge.java,v 1.2 2002/02/25 21:04:44 cananian Exp $
Author:
Duncan Bryce <duncan@lcs.mit.edu>
See Also:
CFGraphable

Constructor Summary
CFGEdge()
           
 
Method Summary
 HCodeElement from()
          Returns the source of this CFGEdge.
abstract  CFGraphable fromCFG()
          Returns the source of this CFGEdge.
 HCodeElement to()
          Returns the destination of this HCodeEdge.
abstract  CFGraphable toCFG()
          Returns the destination of this HCodeEdge.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFGEdge

public CFGEdge()
Method Detail

from

public HCodeElement from()
Returns the source of this CFGEdge. The return value is guaranteed to implement to CFGraphable interface.

Specified by:
from in interface HCodeEdge

fromCFG

public abstract CFGraphable fromCFG()
Returns the source of this CFGEdge.


to

public HCodeElement to()
Returns the destination of this HCodeEdge. The return value is guaranteed to implement to CFGraphable interface.

Specified by:
to in interface HCodeEdge

toCFG

public abstract CFGraphable toCFG()
Returns the destination of this HCodeEdge.