|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsofya.graphs.cfg.CFEdge.BranchID
public static class CFEdge.BranchID
A branch ID associated with an edge in a CFG.
Constructor Summary | |
---|---|
CFEdge.BranchID(int id,
SConstants.BranchType type)
Creates a new branch ID. |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object obj)
Compares this branch ID to another branch ID, ordering them by their integer IDs only. |
boolean |
equals(java.lang.Object obj)
Compares two branch IDs for equality; only the integer IDs are compared, types are ignored. |
int |
getID()
Gets the branch ID. |
SConstants.BranchType |
getType()
Gets the nearest branch type. |
int |
hashCode()
Returns the hash code for this branch ID, which is simply the integer ID (branch type is not part of the computation). |
java.lang.String |
toString()
Gets a string representation of the branch ID, including its nearest branch type. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CFEdge.BranchID(int id, SConstants.BranchType type)
id
- ID of the branch.type
- Nearest type associated with the branch.Method Detail |
---|
public int getID()
public SConstants.BranchType getType()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int compareTo(java.lang.Object obj)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |