public final class AllocAndContextSet extends ArraySet<AllocAndContext> implements EqualsSupportingPointsToSet
ArraySet.ArraySetIterator
Constructor and Description |
---|
AllocAndContextSet() |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNonEmptyIntersection(PointsToSet other)
Returns true if this set shares some objects with other.
|
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.
|
add, addAll, addAll, clear, contains, empty, forall, get, intersects, isEmpty, iterator, remove, remove, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isEmpty
public boolean hasNonEmptyIntersection(PointsToSet other)
PointsToSet
hasNonEmptyIntersection
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 int pointsToSetHashCode()
pointsToSetHashCode
in interface EqualsSupportingPointsToSet
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