Class SetFact<E>
java.lang.Object
pascal.taie.analysis.dataflow.fact.SetFact<E>
- Type Parameters:
E
- type of elements
- Direct Known Subclasses:
ToppedSetFact
Represents set-like data-flow facts.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Adds an element to this fact.void
clear()
Clears all content in this fact.boolean
copy()
Creates and returns a copy of this fact.boolean
void
int
hashCode()
boolean
Intersects this fact with other fact.intersectWith
(SetFact<E> other) boolean
isEmpty()
iterator()
boolean
Removes an element from this fact.boolean
Removes all elements of other fact.boolean
Removes all the elements of this fact that satisfy the given predicate.void
Sets the content of this set to the same as other set.int
size()
stream()
toString()
boolean
Unions other fact into this fact.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
spliterator
-
Field Details
-
set
-
-
Constructor Details
-
SetFact
-
SetFact
public SetFact()
-
-
Method Details
-
contains
- Returns:
- true if this set contains the specified element, otherwise false.
-
add
Adds an element to this fact.- Returns:
- true if this fact changed as a result of the call, otherwise false.
-
remove
Removes an element from this fact.- Returns:
- true if an element was removed as a result of the call, otherwise false.
-
removeIf
Removes all the elements of this fact that satisfy the given predicate.- Returns:
- true if any elements were removed as a result of the call, otherwise false.
-
removeAll
Removes all elements of other fact.- Returns:
- true if this fact changed as a result of the call, otherwise false.
-
union
Unions other fact into this fact.- Returns:
- true if this fact changed as a result of the call, otherwise false.
-
unionWith
- Returns:
- a new fact which is the union of this and other facts.
-
intersect
Intersects this fact with other fact.- Returns:
- true if this fact changed as a result of the call, otherwise false.
-
intersectWith
- Returns:
- a new fact which is the intersection of this and other facts.
-
set
Sets the content of this set to the same as other set. -
copy
Creates and returns a copy of this fact. -
clear
public void clear()Clears all content in this fact. -
isEmpty
public boolean isEmpty() -
stream
-
iterator
-
forEach
-
size
public int size() -
equals
-
hashCode
public int hashCode() -
toString
-