Package proguard.analysis.cpa.defaults
Class ListAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<AbstractSpaceT>
proguard.analysis.cpa.defaults.ListAbstractState<AbstractSpaceT>
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<AbstractSpaceT>,Collection<AbstractSpaceT>,List<AbstractSpaceT>,RandomAccess,AbstractState<ListAbstractState<AbstractSpaceT>>
public class ListAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>>
extends ArrayList<AbstractSpaceT>
implements AbstractState<ListAbstractState<AbstractSpaceT>>
This
ListAbstractState represents a list of AbstractStates with the semilattice operators lifted to the
list.- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionCreate a list abstract state with initial capacity 0.ListAbstractState(int initalCapacity) Create a list abstract state with selected initial capacity. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of itself.getOrDefault(int index, AbstractSpaceT defaultState) Returns the abstract state atindex, if present, returns thedefaultStateotherwise.booleanisLessOrEqual(ListAbstractState<AbstractSpaceT> abstractState) Compares itself to theabstractState(i.e., compare the states on the partial order provided by the domain of the analysis).join(ListAbstractState<AbstractSpaceT> abstractState) Computes a join over itself and another abstract stateabstractState(i.e., finds the least upper bound on the semilattice).set(int index, AbstractSpaceT element, AbstractSpaceT defaultState) Sets an element atindextoelem.Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface proguard.analysis.cpa.interfaces.AbstractState
equals, getPrecision, hashCode, isLessMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
ListAbstractState
public ListAbstractState()Create a list abstract state with initial capacity 0. -
ListAbstractState
public ListAbstractState(int initalCapacity) Create a list abstract state with selected initial capacity.- Parameters:
initalCapacity- initial capacity
-
-
Method Details
-
join
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<AbstractSpaceT extends AbstractState<AbstractSpaceT>>
-
isLessOrEqual
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<AbstractSpaceT extends AbstractState<AbstractSpaceT>>
-
copy
Description copied from interface:AbstractStateCreates a copy of itself.- Specified by:
copyin interfaceAbstractState<AbstractSpaceT extends AbstractState<AbstractSpaceT>>
-
getOrDefault
Returns the abstract state atindex, if present, returns thedefaultStateotherwise. -
set
Sets an element atindextoelem. Extends its length and pads withdefaultState, if necessary.
-