harpoon.IR.Assem
Class InstrEdge

java.lang.Object
  extended by harpoon.IR.Properties.CFGEdge<Instr,InstrEdge>
      extended by harpoon.IR.Assem.InstrEdge
All Implemented Interfaces:
HCodeEdge<Instr>, Graph.Edge<Instr,InstrEdge>

public class InstrEdge
extends CFGEdge<Instr,InstrEdge>

InstrEdge is an object representing an edge between two Instrs.

Version:
$Id: InstrEdge.java,v 1.5 2003/05/09 16:35:26 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)
           
 Instr from()
          Returns the source of this CFGEdge.
 int hashCode()
           
 Instr to()
          Returns the destination of this HCodeEdge.
 String toString()
           
 
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

to

public Instr to()
Description copied from class: CFGEdge
Returns the destination of this HCodeEdge. The return value is guaranteed to implement to CFGraphable interface.

Specified by:
to in interface HCodeEdge<Instr>
Specified by:
to in interface Graph.Edge<Instr,InstrEdge>
Specified by:
to in class CFGEdge<Instr,InstrEdge>

from

public Instr from()
Description copied from class: CFGEdge
Returns the source of this CFGEdge. The return value is guaranteed to implement to CFGraphable interface.

Specified by:
from in interface HCodeEdge<Instr>
Specified by:
from in interface Graph.Edge<Instr,InstrEdge>
Specified by:
from in class CFGEdge<Instr,InstrEdge>

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