Package soot.jimple.spark.ondemand
Class AllocAndContextSet
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<T>
-
- soot.jimple.spark.ondemand.genericutil.ArraySet<AllocAndContext>
-
- soot.jimple.spark.ondemand.AllocAndContextSet
-
- All Implemented Interfaces:
Iterable<AllocAndContext>,Collection<AllocAndContext>,Set<AllocAndContext>,EqualsSupportingPointsToSet,PointsToSet
public final class AllocAndContextSet extends ArraySet<AllocAndContext> implements EqualsSupportingPointsToSet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class soot.jimple.spark.ondemand.genericutil.ArraySet
ArraySet.ArraySetIterator
-
-
Constructor Summary
Constructors Constructor Description AllocAndContextSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNonEmptyIntersection(PointsToSet other)Returns true if this set shares some objects with other.booleanpointsToSetEquals(Object other)Returnstrueif and only if other holds the same alloc nodes as this.intpointsToSetHashCode()Computes a hash code based on the contents of the points-to set.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.Set<String>possibleStringConstants()If this points-to set consists entirely of string constants, returns a set of these constant strings.Set<Type>possibleTypes()Set of all possible run-time types of objects in the set.-
Methods inherited from class soot.jimple.spark.ondemand.genericutil.ArraySet
add, addAll, addAll, clear, contains, empty, forall, get, intersects, isEmpty, iterator, remove, remove, size, toArray, toArray, toString
-
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
-
Methods inherited from class java.util.AbstractCollection
containsAll, retainAll
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface soot.PointsToSet
isEmpty
-
Methods inherited from interface java.util.Set
containsAll, retainAll, spliterator
-
-
-
-
Method Detail
-
hasNonEmptyIntersection
public boolean hasNonEmptyIntersection(PointsToSet other)
Description copied from interface:PointsToSetReturns true if this set shares some objects with other.- Specified by:
hasNonEmptyIntersectionin interfacePointsToSet
-
possibleClassConstants
public Set<ClassConstant> 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
-
possibleStringConstants
public Set<String> 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
-
possibleTypes
public Set<Type> possibleTypes()
Description copied from interface:PointsToSetSet of all possible run-time types of objects in the set.- Specified by:
possibleTypesin interfacePointsToSet
-
pointsToSetHashCode
public int pointsToSetHashCode()
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:
pointsToSetHashCodein interfaceEqualsSupportingPointsToSet
-
pointsToSetEquals
public boolean pointsToSetEquals(Object other)
Returnstrueif 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 interfaceEqualsSupportingPointsToSet
-
-