Representation of points-to sets that consist of CSObj.
| 33 | * Representation of points-to sets that consist of {@link CSObj}. |
| 34 | */ |
| 35 | public interface PointsToSet extends Iterable<CSObj>, Copyable<PointsToSet> { |
| 36 | |
| 37 | /** |
| 38 | * Adds an object to this set. |
| 39 | * |
| 40 | * @return true if this points-to set changed as a result of the call, |
| 41 | * otherwise false. |
| 42 | */ |
| 43 | boolean addObject(CSObj obj); |
| 44 | |
| 45 | /** |
| 46 | * Adds all objects in given pts to this set. |
| 47 | * |
| 48 | * @return true if this points-to set changed as a result of the call, |
| 49 | * otherwise false. |
| 50 | */ |
| 51 | boolean addAll(PointsToSet pts); |
| 52 | |
| 53 | /** |
| 54 | * Adds all objects in given pts to this set. |
| 55 | * |
| 56 | * @return the difference between {@code pts} and this set. |
| 57 | */ |
| 58 | PointsToSet addAllDiff(PointsToSet pts); |
| 59 | |
| 60 | /** |
| 61 | * @return true if this set contains given object, otherwise false. |
| 62 | */ |
| 63 | boolean contains(CSObj obj); |
| 64 | |
| 65 | /** |
| 66 | * @return whether this set if empty. |
| 67 | */ |
| 68 | boolean isEmpty(); |
| 69 | |
| 70 | /** |
| 71 | * @return the number of objects in this set. |
| 72 | */ |
| 73 | int size(); |
| 74 | |
| 75 | /** |
| 76 | * @return all objects in this set. |
| 77 | */ |
| 78 | Set<CSObj> getObjects(); |
| 79 | |
| 80 | /** |
| 81 | * @return all objects in this set. |
| 82 | */ |
| 83 | Stream<CSObj> objects(); |
| 84 | |
| 85 | @Override |
| 86 | default Iterator<CSObj> iterator() { |
| 87 | return getObjects().iterator(); |
| 88 | } |
| 89 | } |
no outgoing calls
no test coverage detected