All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class harpoon.IR.QuadSSA.Edge

java.lang.Object
   |
   +----harpoon.IR.QuadSSA.Edge

public class Edge
extends Object
implements HCodeEdge
Edge objects connect Quad nodes in the control-flow graph. The hashCode and equals methods of Edge have been implemented so that Edges can be used as hash table keys to associate analysis data with control-flow edges.

Version:
$Id: Edge.java,v 1.5 1998/10/11 02:37:56 cananian Exp $
Author:
C. Scott Ananian <cananian@alumni.princeton.edu>

Method Index

 o equals(Object)
Compares two Edges for equality.
 o from()
Returns the source vertex of this Edge.
 o hashCode()
Returns a hash code value for this object.
 o to()
Returns the destination vertex of this Edge.
 o toString()
Returns a human-readable representation of the Edge.
 o which_pred()
Returns the predecessor index of this Edge in to.
 o which_succ()
Returns the successor index of this Edge in from.

Methods

 o from
 public HCodeElement from()
Returns the source vertex of this Edge.

 o to
 public HCodeElement to()
Returns the destination vertex of this Edge.

 o which_pred
 public int which_pred()
Returns the predecessor index of this Edge in to. this.to().prevEdge(this.which_pred()) == this.

 o which_succ
 public int which_succ()
Returns the successor index of this Edge in from. this.from().nextEdge(this.which_succ()) == this.

 o equals
 public boolean equals(Object obj)
Compares two Edges for equality.

Overrides:
equals in class Object
 o hashCode
 public int hashCode()
Returns a hash code value for this object.

Overrides:
hashCode in class Object
 o toString
 public String toString()
Returns a human-readable representation of the Edge.

Overrides:
toString in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index