Class KeySetContext<C>
java.lang.Object
soot.jimple.infoflow.collections.context.KeySetContext<C>
- Type Parameters:
C- key type
- All Implemented Interfaces:
ValueBasedContext<KeySetContext<?>>,ContainerContext
Representation of map keys using a set possible keys
-
Constructor Summary
ConstructorsConstructorDescriptionKeySetContext(C key) KeySetContext(C key, boolean impreciseValue) KeySetContext(Set<C> keys) KeySetContext(Set<C> keys, boolean impreciseValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the context definitionbooleanentails(ContainerContext other) Returns whether this entails other.booleaninthashCode()intersect(KeySetContext<?> other) Check whether this and other intersectsbooleanGets whether the given context is imprecise, for example, because the context is built conditionally through multiple paths or the value itself contains some approximation.toString()
-
Constructor Details
-
KeySetContext
-
KeySetContext
-
KeySetContext
-
KeySetContext
-
-
Method Details
-
intersect
Description copied from interface:ValueBasedContextCheck whether this and other intersects- Specified by:
intersectin interfaceValueBasedContext<C>- Parameters:
other- value-based context- Returns:
- true on perfect match, maybe on part match and otherwise false
-
entails
Description copied from interface:ContainerContextReturns whether this entails other.- Specified by:
entailsin interfaceContainerContext- Parameters:
other- other context definition- Returns:
- true if this entails other
-
containsInformation
public boolean containsInformation()Description copied from interface:ContainerContextReturns whether the context definition- Specified by:
containsInformationin interfaceContainerContext- Returns:
- true if it still restricts
-
isImprecise
public boolean isImprecise()Description copied from interface:ContainerContextGets whether the given context is imprecise, for example, because the context is built conditionally through multiple paths or the value itself contains some approximation. Users of this context should respect this flag and refrain from performing strong updates.- Specified by:
isImprecisein interfaceContainerContext- Returns:
- true if the context is imprecise
-
toString
-
equals
-
hashCode
public int hashCode()
-