com.ibm.wala.ipa.callgraph
Class CGEdge
java.lang.Object
com.ibm.wala.ipa.callgraph.CGEdge
- Direct Known Subclasses:
- CGLabeledEdge
public class CGEdge
- extends java.lang.Object
An explicit representation of an edge in a call graph.
NB: We do NOT enforce that any particular call graph implementation
actually contains CGEdge objects. In fact, the CGEdge is currently
not mentioned anywhere else in the callgraph API. This class is just
provided since some clients might find it a useful utility.
This abstraction does not include a call site reference, so this
edge might actually represent several distinct call sites.
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CGEdge
public CGEdge(CGNode src,
CGNode dest)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getDest
public CGNode getDest()
- Returns:
- the node at the tail of this edge
getSrc
public CGNode getSrc()
- Returns:
- the node at the head of this edge.