Package qilin.core.sets
Class UnmodifiablePointsToSet
java.lang.Object
qilin.core.sets.UnmodifiablePointsToSet
- All Implemented Interfaces:
PointsToSet
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
boolean
Returns true iff the set contains n.boolean
int
hashCode()
boolean
Returns true if this set shares some objects with other.boolean
isEmpty()
Returns true if this set contains no run-time objects.iterator()
boolean
pointsToSetEquals
(Object other) Returnstrue
if and only if other holds the same alloc nodes as this.int
Computes a hash code based on the contents of the points-to set.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.If this points-to set consists entirely of string constants, returns a set of these constant strings.Set of all possible run-time types of objects in the set.int
size()
Size of objects in this set.toString()
-
Constructor Details
-
UnmodifiablePointsToSet
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:PointsToSet
Returns true if this set contains no run-time objects.- Specified by:
isEmpty
in interfacePointsToSet
-
contains
Description copied from interface:PointsToSet
Returns true iff the set contains n.- Specified by:
contains
in interfacePointsToSet
-
hasNonEmptyIntersection
Description copied from interface:PointsToSet
Returns true if this set shares some objects with other.- Specified by:
hasNonEmptyIntersection
in interfacePointsToSet
-
possibleTypes
Description copied from interface:PointsToSet
Set of all possible run-time types of objects in the set.- Specified by:
possibleTypes
in interfacePointsToSet
-
possibleStringConstants
Description copied from interface:PointsToSet
If this points-to set consists entirely of string constants, returns a set of these constant strings. If this point-to set may contain something other than constant strings, returns null.- Specified by:
possibleStringConstants
in interfacePointsToSet
-
possibleClassConstants
Description copied from interface:PointsToSet
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. If this point-to set may contain something else, returns null.- Specified by:
possibleClassConstants
in interfacePointsToSet
-
size
public int size()Description copied from interface:PointsToSet
Size of objects in this set.- Specified by:
size
in interfacePointsToSet
-
clear
public void clear()- Specified by:
clear
in interfacePointsToSet
-
toString
-
pointsToSetHashCode
public int pointsToSetHashCode()Description copied from interface:PointsToSet
Computes a hash code based on the contents of the points-to set. Note that hashCode() is not overwritten on purpose. This is because Spark relies on comparison by object identity.- Specified by:
pointsToSetHashCode
in interfacePointsToSet
-
pointsToSetEquals
Description copied from interface:PointsToSet
Returnstrue
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.- Specified by:
pointsToSetEquals
in interfacePointsToSet
-
toCIPointsToSet
- Specified by:
toCIPointsToSet
in interfacePointsToSet
-
toCollection
- Specified by:
toCollection
in interfacePointsToSet
-
iterator
- Specified by:
iterator
in interfacePointsToSet
-
equals
-
hashCode
public int hashCode()
-