public class WrappedPointsToSet extends java.lang.Object implements EqualsSupportingPointsToSet
Constructor and Description |
---|
WrappedPointsToSet(PointsToSetInternal wrapped) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
PointsToSetInternal |
getWrapped() |
int |
hashCode() |
boolean |
hasNonEmptyIntersection(PointsToSet other)
Returns true if this set shares some objects with other.
|
boolean |
isEmpty()
Returns true if this set contains no run-time objects.
|
boolean |
pointsToSetEquals(java.lang.Object other)
Returns
true if and only if other holds the same alloc nodes as this. |
int |
pointsToSetHashCode()
Computes a hash code based on the contents of the points-to set.
|
java.util.Set<ClassConstant> |
possibleClassConstants()
If this points-to set consists entirely of objects of
type java.lang.Class of a known class,
returns a set of ClassConstant's that are these classes.
|
java.util.Set<java.lang.String> |
possibleStringConstants()
If this points-to set consists entirely of string constants,
returns a set of these constant strings.
|
java.util.Set<Type> |
possibleTypes()
Set of all possible run-time types of objects in the set.
|
java.lang.String |
toString() |
protected java.lang.Object |
unwrapIfNecessary(java.lang.Object obj) |
public WrappedPointsToSet(PointsToSetInternal wrapped)
public PointsToSetInternal getWrapped()
public boolean hasNonEmptyIntersection(PointsToSet other)
PointsToSet
hasNonEmptyIntersection
in interface PointsToSet
public boolean isEmpty()
PointsToSet
isEmpty
in interface PointsToSet
public java.util.Set<ClassConstant> possibleClassConstants()
PointsToSet
possibleClassConstants
in interface PointsToSet
public java.util.Set<java.lang.String> possibleStringConstants()
PointsToSet
possibleStringConstants
in interface PointsToSet
public java.util.Set<Type> possibleTypes()
PointsToSet
possibleTypes
in interface PointsToSet
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean pointsToSetEquals(java.lang.Object other)
true
if and only if other holds the same alloc nodes as this.
Note that equals() is not overwritten on purpose.
This is because Spark relies on comparison by object identity.pointsToSetEquals
in interface EqualsSupportingPointsToSet
public int pointsToSetHashCode()
pointsToSetHashCode
in interface EqualsSupportingPointsToSet
protected java.lang.Object unwrapIfNecessary(java.lang.Object obj)