Package proguard.analysis.cpa.defaults
Class SetAbstractState<T>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<E>
-
- java.util.HashSet<T>
-
- proguard.analysis.cpa.defaults.SetAbstractState<T>
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable,java.lang.Iterable<T>,java.util.Collection<T>,java.util.Set<T>,AbstractState<SetAbstractState<T>>
public class SetAbstractState<T> extends java.util.HashSet<T> implements AbstractState<SetAbstractState<T>>
ThisSetAbstractStaterepresents a set with the subset ordering.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SetAbstractState(java.util.Collection<? extends T> c)Create a set abstract state from a collection.SetAbstractState(T... items)Create a set abstract state from its elements.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> SetAbstractState<T>bottom()SetAbstractState<T>copy()Creates a copy of itself.booleanisLessOrEqual(SetAbstractState<T> abstractState)Compares itself to theabstractState(i.e., compare the states on the partial order provided by the domain of the analysis).SetAbstractState<T>join(SetAbstractState<T> abstractState)Computes a join over itself and another abstract stateabstractState(i.e., finds the least upper bound on the semilattice).-
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size, spliterator
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface proguard.analysis.cpa.interfaces.AbstractState
equals, getPrecision, hashCode, isLess
-
-
-
-
Constructor Detail
-
SetAbstractState
public SetAbstractState(T... items)
Create a set abstract state from its elements.- Parameters:
items- an array of elements
-
SetAbstractState
public SetAbstractState(java.util.Collection<? extends T> c)
Create a set abstract state from a collection.- Parameters:
c- a collection of elements
-
-
Method Detail
-
join
public SetAbstractState<T> join(SetAbstractState<T> abstractState)
Description copied from interface:AbstractStateComputes a join over itself and another abstract stateabstractState(i.e., finds the least upper bound on the semilattice).- Specified by:
joinin interfaceAbstractState<T>
-
isLessOrEqual
public boolean isLessOrEqual(SetAbstractState<T> abstractState)
Description copied from interface:AbstractStateCompares itself to theabstractState(i.e., compare the states on the partial order provided by the domain of the analysis).- Specified by:
isLessOrEqualin interfaceAbstractState<T>
-
copy
public SetAbstractState<T> copy()
Description copied from interface:AbstractStateCreates a copy of itself.- Specified by:
copyin interfaceAbstractState<T>
-
bottom
public static <T> SetAbstractState<T> bottom()
-
-