Package qilin.core.sets
Class UnmodifiablePointsToSet
java.lang.Object
qilin.core.sets.UnmodifiablePointsToSet
- All Implemented Interfaces:
PointsToSet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanReturns true iff the set contains n.booleaninthashCode()booleanReturns true if this set shares some objects with other.booleanisEmpty()Returns true if this set contains no run-time objects.iterator()booleanpointsToSetEquals(Object other) Returnstrueif and only if other holds the same alloc nodes as this.intComputes 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.intsize()Size of objects in this set.toString()
-
Constructor Details
-
UnmodifiablePointsToSet
-
-
Method Details
-
isEmpty
public boolean isEmpty()Description copied from interface:PointsToSetReturns true if this set contains no run-time objects.- Specified by:
isEmptyin interfacePointsToSet
-
contains
Description copied from interface:PointsToSetReturns true iff the set contains n.- Specified by:
containsin interfacePointsToSet
-
hasNonEmptyIntersection
Description copied from interface:PointsToSetReturns true if this set shares some objects with other.- Specified by:
hasNonEmptyIntersectionin interfacePointsToSet
-
possibleTypes
Description copied from interface:PointsToSetSet of all possible run-time types of objects in the set.- Specified by:
possibleTypesin interfacePointsToSet
-
possibleStringConstants
Description copied from interface:PointsToSetIf 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:
possibleStringConstantsin interfacePointsToSet
-
possibleClassConstants
Description copied from interface:PointsToSetIf 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:
possibleClassConstantsin interfacePointsToSet
-
size
public int size()Description copied from interface:PointsToSetSize of objects in this set.- Specified by:
sizein interfacePointsToSet
-
clear
public void clear()- Specified by:
clearin interfacePointsToSet
-
toString
-
pointsToSetHashCode
public int pointsToSetHashCode()Description copied from interface:PointsToSetComputes 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:
pointsToSetHashCodein interfacePointsToSet
-
pointsToSetEquals
Description copied from interface:PointsToSetReturnstrueif 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:
pointsToSetEqualsin interfacePointsToSet
-
toCIPointsToSet
- Specified by:
toCIPointsToSetin interfacePointsToSet
-
toCollection
- Specified by:
toCollectionin interfacePointsToSet
-
iterator
- Specified by:
iteratorin interfacePointsToSet
-
equals
-
hashCode
public int hashCode()
-