Package soot.jimple.spark.sets
Class PointsToSetEqualsWrapper
- java.lang.Object
-
- soot.jimple.spark.sets.PointsToSetEqualsWrapper
-
- All Implemented Interfaces:
PointsToSet
public class PointsToSetEqualsWrapper extends Object implements PointsToSet
A decorator that implements equals/hashCode forPointsToSetsupporting theEqualsSupportingPointsToSetinterface.- Author:
- Eric Bodden
-
-
Field Summary
Fields Modifier and Type Field Description protected EqualsSupportingPointsToSetpts
-
Constructor Summary
Constructors Constructor Description PointsToSetEqualsWrapper(EqualsSupportingPointsToSet pts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)inthashCode()booleanhasNonEmptyIntersection(PointsToSet other)Returns true if this set shares some objects with other.booleanisEmpty()Returns true if this set contains no run-time objects.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.StringtoString()EqualsSupportingPointsToSetunwarp()protected ObjectunwrapIfNecessary(Object obj)
-
-
-
Field Detail
-
pts
protected EqualsSupportingPointsToSet pts
-
-
Constructor Detail
-
PointsToSetEqualsWrapper
public PointsToSetEqualsWrapper(EqualsSupportingPointsToSet pts)
-
-
Method Detail
-
unwarp
public EqualsSupportingPointsToSet unwarp()
-
hasNonEmptyIntersection
public boolean hasNonEmptyIntersection(PointsToSet other)
Description copied from interface:PointsToSetReturns true if this set shares some objects with other.- Specified by:
hasNonEmptyIntersectionin interfacePointsToSet- Parameters:
other-- Returns:
- See Also:
PointsToSet.hasNonEmptyIntersection(soot.PointsToSet)
-
isEmpty
public boolean isEmpty()
Description copied from interface:PointsToSetReturns true if this set contains no run-time objects.- Specified by:
isEmptyin interfacePointsToSet- Returns:
- See Also:
PointsToSet.isEmpty()
-
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- Returns:
- See Also:
PointsToSet.possibleClassConstants()
-
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- Returns:
- See Also:
PointsToSet.possibleStringConstants()
-
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- Returns:
- See Also:
PointsToSet.possibleTypes()
-
-