public class EmptyPointsToSet extends PointsToSetInternal
PointsToSetInternal.P2SetVisitorDefaultTrue, PointsToSetInternal.P2SetVisitorInttype| Constructor and Description |
|---|
EmptyPointsToSet(Singletons.Global g) |
EmptyPointsToSet(Singletons.Global g,
Type type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Node n)
Adds n to this set, returns true if n was not already in this set.
|
boolean |
addAll(PointsToSetInternal other,
PointsToSetInternal exclude)
Adds contents of other into this set, returns true if this set
changed.
|
boolean |
contains(Node n)
Returns true iff the set contains n.
|
boolean |
forall(P2SetVisitor v)
Calls v's visit method on all nodes in this set.
|
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.
|
java.util.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.
|
java.util.Set<java.lang.String> |
possibleStringConstants()
If this points-to set consists entirely of string constants,
returns a set of these constant strings.
|
java.util.Set<Type> |
possibleTypes()
Set of all possible run-time types of objects in the set.
|
java.lang.String |
toString() |
static EmptyPointsToSet |
v() |
flushNew, getBitMask, getNewSet, getOldSet, getType, mergeWith, pointsToSetEquals, pointsToSetHashCode, setType, size, unFlushNewpublic EmptyPointsToSet(Singletons.Global g)
public EmptyPointsToSet(Singletons.Global g,
Type type)
public static EmptyPointsToSet v()
public boolean isEmpty()
public boolean hasNonEmptyIntersection(PointsToSet other)
hasNonEmptyIntersection in interface PointsToSethasNonEmptyIntersection in class PointsToSetInternalpublic java.util.Set<Type> possibleTypes()
possibleTypes in interface PointsToSetpossibleTypes in class PointsToSetInternalpublic boolean addAll(PointsToSetInternal other, PointsToSetInternal exclude)
addAll in class PointsToSetInternalpublic boolean forall(P2SetVisitor v)
forall in class PointsToSetInternalpublic boolean add(Node n)
add in class PointsToSetInternalpublic boolean contains(Node n)
contains in class PointsToSetInternalpublic java.util.Set<java.lang.String> possibleStringConstants()
PointsToSetpossibleStringConstants in interface PointsToSetpossibleStringConstants in class PointsToSetInternalpublic java.util.Set<ClassConstant> possibleClassConstants()
PointsToSetpossibleClassConstants in interface PointsToSetpossibleClassConstants in class PointsToSetInternalpublic java.lang.String toString()
toString in class PointsToSetInternal