public class UnmodifiablePointsToSet extends Object implements PointsToSet
| Constructor and Description |
|---|
UnmodifiablePointsToSet(PTA pta,
PointsToSetInternal pts) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(AllocNode n)
Returns true iff the set contains n.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
hasNonEmptyIntersection(PointsToSet other)
Returns true if this set shares some objects with other.
|
boolean |
isEmpty()
Returns true if this set contains no run-time objects.
|
Iterator<AllocNode> |
iterator() |
boolean |
pointsToSetEquals(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.
|
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.
|
int |
size()
Size of objects in this set.
|
PointsToSet |
toCIPointsToSet() |
Collection<AllocNode> |
toCollection() |
String |
toString() |
public UnmodifiablePointsToSet(PTA pta, PointsToSetInternal pts)
public boolean isEmpty()
PointsToSetisEmpty in interface PointsToSetpublic boolean contains(AllocNode n)
PointsToSetcontains in interface PointsToSetpublic boolean hasNonEmptyIntersection(PointsToSet other)
PointsToSethasNonEmptyIntersection in interface PointsToSetpublic Set<Type> possibleTypes()
PointsToSetpossibleTypes in interface PointsToSetpublic Set<String> possibleStringConstants()
PointsToSetpossibleStringConstants in interface PointsToSetpublic Set<ClassConstant> possibleClassConstants()
PointsToSetpossibleClassConstants in interface PointsToSetpublic int size()
PointsToSetsize in interface PointsToSetpublic void clear()
clear in interface PointsToSetpublic int pointsToSetHashCode()
PointsToSetpointsToSetHashCode in interface PointsToSetpublic boolean pointsToSetEquals(Object other)
PointsToSettrue 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 PointsToSetpublic PointsToSet toCIPointsToSet()
toCIPointsToSet in interface PointsToSetpublic Collection<AllocNode> toCollection()
toCollection in interface PointsToSetpublic Iterator<AllocNode> iterator()
iterator in interface PointsToSetCopyright © 2024 Soot OSS. All rights reserved.