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>
-
equals(Object)
- Compares two Edges for equality.
-
from()
- Returns the source vertex of this Edge.
-
hashCode()
- Returns a hash code value for this object.
-
to()
- Returns the destination vertex of this Edge.
-
toString()
- Returns a human-readable representation of the Edge.
-
which_pred()
- Returns the predecessor index of this Edge in
to
.
-
which_succ()
- Returns the successor index of this Edge in
from
.
from
public HCodeElement from()
- Returns the source vertex of this Edge.
to
public HCodeElement to()
- Returns the destination vertex of this Edge.
which_pred
public int which_pred()
- Returns the predecessor index of this Edge in
to
.
this.to().prevEdge(this.which_pred()) == this
.
which_succ
public int which_succ()
- Returns the successor index of this Edge in
from
.
this.from().nextEdge(this.which_succ()) == this
.
equals
public boolean equals(Object obj)
- Compares two Edges for equality.
- Overrides:
- equals in class Object
hashCode
public int hashCode()
- Returns a hash code value for this object.
- Overrides:
- hashCode in class Object
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