Package proguard.analysis.cpa.defaults
Class DefaultReachedSet<StateT extends AbstractState<StateT>>
java.lang.Object
proguard.analysis.cpa.defaults.DefaultReachedSet<StateT>
- Type Parameters:
StateT- The states contained in the reached set.
- All Implemented Interfaces:
ReachedSet<StateT>
public final class DefaultReachedSet<StateT extends AbstractState<StateT>>
extends Object
implements ReachedSet<StateT>
This is a
LinkedHashSet-based implementation of the ReachedSet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds an abstract state.booleanaddAll(Collection<? extends StateT> abstractStates) Adds multiple abstract states.Returns a collection representation of itself.voidclear()Empties the reached set.getReached(StateT abstractState) Returns a collection of abstract states mergeable with theabstractState.booleanRemoves an abstract state.booleanremoveAll(Collection<? extends StateT> abstractStates) Removes multiple abstract states.
-
Constructor Details
-
DefaultReachedSet
public DefaultReachedSet()
-
-
Method Details
-
add
Description copied from interface:ReachedSetAdds an abstract state.- Specified by:
addin interfaceReachedSet<StateT extends AbstractState<StateT>>
-
addAll
Description copied from interface:ReachedSetAdds multiple abstract states.- Specified by:
addAllin interfaceReachedSet<StateT extends AbstractState<StateT>>
-
remove
Description copied from interface:ReachedSetRemoves an abstract state.- Specified by:
removein interfaceReachedSet<StateT extends AbstractState<StateT>>
-
removeAll
Description copied from interface:ReachedSetRemoves multiple abstract states.- Specified by:
removeAllin interfaceReachedSet<StateT extends AbstractState<StateT>>
-
asCollection
Description copied from interface:ReachedSetReturns a collection representation of itself.- Specified by:
asCollectionin interfaceReachedSet<StateT extends AbstractState<StateT>>
-
getReached
Description copied from interface:ReachedSetReturns a collection of abstract states mergeable with theabstractState.- Specified by:
getReachedin interfaceReachedSet<StateT extends AbstractState<StateT>>
-
clear
public void clear()Description copied from interface:ReachedSetEmpties the reached set.- Specified by:
clearin interfaceReachedSet<StateT extends AbstractState<StateT>>
-