harpoon.IR.Properties
Interface CFGraphable

All Superinterfaces:
HCodeElement
All Known Implementing Classes:
Instr, Instr, Quad

public interface CFGraphable
extends HCodeElement

CFGraphable defines an interface for intermediate representations that are inherently interconnected in a directed control-flow graphs.

Version:
$Id: CFGraphable.java,v 1.2 2002/02/25 21:04:44 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>
See Also:
CFGrapher, CFGrapher.DEFAULT

Method Summary
 Collection edgeC()
          Returns a Collection of all the edges to and from this HCodeElement.
 CFGEdge[] edges()
          Returns an array of all the edges to and from this CFGraphable.
 CFGEdge[] pred()
          Returns an array of all the edges entering this CFGraphable.
 Collection predC()
          Returns a Collection of all the edges to this HCodeElement.
 CFGEdge[] succ()
          Returns an array of all the edges leaving this CFGraphable.
 Collection succC()
          Returns a Collection of all the edges from this HCodeElement.
 
Methods inherited from interface harpoon.ClassFile.HCodeElement
getID, getLineNumber, getSourceFile
 

Method Detail

edges

public CFGEdge[] edges()
Returns an array of all the edges to and from this CFGraphable.


pred

public CFGEdge[] pred()
Returns an array of all the edges entering this CFGraphable.


succ

public CFGEdge[] succ()
Returns an array of all the edges leaving this CFGraphable.


edgeC

public Collection edgeC()
Returns a Collection of all the edges to and from this HCodeElement.


predC

public Collection predC()
Returns a Collection of all the edges to this HCodeElement. Each CFGEdge returned is guaranteed to return this in response to a call to to(); the actual predecessor will be returned from from().


succC

public Collection succC()
Returns a Collection of all the edges from this HCodeElement. Each CFGEdge returned is guaranteed to return this in response to a call to from(); the actual successor to this will be returned from to().