harpoon.IR.Assem
Class InstrEdge

java.lang.Object
  |
  +--harpoon.IR.Properties.CFGEdge
        |
        +--harpoon.IR.Assem.InstrEdge
All Implemented Interfaces:
HCodeEdge

public class InstrEdge
extends CFGEdge

InstrEdge is an object representing an edge between two Instrs.

Version:
$Id: InstrEdge.java,v 1.2 2002/02/25 21:04:11 cananian Exp $
Author:
Felix S. Klock II <pnkfelix@mit.edu>

Field Summary
 Instr from
           
 Instr to
           
 
Constructor Summary
InstrEdge(Instr from, Instr to)
          Creates a InstrEdge representing < from, to > .
 
Method Summary
 boolean equals(Object o)
           
 CFGraphable fromCFG()
          Returns the source of this CFGEdge.
 int hashCode()
           
 CFGraphable toCFG()
          Returns the destination of this HCodeEdge.
 String toString()
           
 
Methods inherited from class harpoon.IR.Properties.CFGEdge
from, to
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

from

public final Instr from

to

public final Instr to
Constructor Detail

InstrEdge

public InstrEdge(Instr from,
                 Instr to)
Creates a InstrEdge representing < from, to > .

Method Detail

toCFG

public CFGraphable toCFG()
Description copied from class: CFGEdge
Returns the destination of this HCodeEdge.

Specified by:
toCFG in class CFGEdge

fromCFG

public CFGraphable fromCFG()
Description copied from class: CFGEdge
Returns the source of this CFGEdge.

Specified by:
fromCFG in class CFGEdge

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object