public class PointsToRel
extends java.lang.Object
implements java.lang.Cloneable
Constructor and Description |
---|
PointsToRel(Symbol head,
Symbol tail)
Constructor - default false relationship
|
PointsToRel(Symbol head,
Symbol tail,
boolean type)
Constructor
|
Modifier and Type | Method and Description |
---|---|
PointsToRel |
clone() |
boolean |
equals(java.lang.Object o) |
Symbol |
getPointedToSymbol()
Return the tail of the relationship
|
Symbol |
getPointerSymbol()
Return the head of the relationship
|
int |
hashCode() |
boolean |
isDefinite()
Is the relationship definitely valid
|
PointsToRel |
mergeRel(PointsToRel rel)
Merge this rel with the input rel.
|
void |
setDefinite()
Set to definite
|
void |
setPossible()
Set to possible
|
java.lang.String |
toString() |
public PointsToRel(Symbol head, Symbol tail, boolean type)
head
- Symbol for head location, always a pointertail
- Symbol for tail locationtype
- The definiteness of the relationshippublic PointsToRel clone()
clone
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public Symbol getPointerSymbol()
public Symbol getPointedToSymbol()
public boolean isDefinite()
public void setDefinite()
public void setPossible()
public PointsToRel mergeRel(PointsToRel rel)
rel
- input relationshippublic java.lang.String toString()
toString
in class java.lang.Object