Class IntervalContext
java.lang.Object
soot.jimple.infoflow.collections.context.IntervalContext
- All Implemented Interfaces:
PositionBasedContext<IntervalContext>,ContainerContext
-
Constructor Summary
ConstructorsConstructorDescriptionIntervalContext(int i) IntervalContext(int min, int max) IntervalContext(int min, int max, boolean impreciseValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the context definitionbooleanentails(ContainerContext obj) Returns whether this entails other.booleanShifts the position(s) by nintgetMax()intgetMin()inthashCode()intersects(IntervalContext 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.lessThanEqual(IntervalContext other) Check whether this is less or equal to otherintsize()toString()union(IntervalContext other) Unions this with other
-
Constructor Details
-
IntervalContext
public IntervalContext(int i) -
IntervalContext
public IntervalContext(int min, int max) -
IntervalContext
public IntervalContext(int min, int max, boolean impreciseValue)
-
-
Method Details
-
getMax
public int getMax() -
getMin
public int getMin() -
intersects
Description copied from interface:PositionBasedContextCheck whether this and other intersects- Specified by:
intersectsin interfacePositionBasedContext<IntervalContext>- 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:
obj- other context definition- Returns:
- true if this entails other
-
exactShift
Description copied from interface:PositionBasedContextShifts the position(s) by n- Specified by:
exactShiftin interfacePositionBasedContext<IntervalContext>- Parameters:
n- number of shifts- Returns:
- new position-based context
-
union
Description copied from interface:PositionBasedContextUnions this with other- Specified by:
unionin interfacePositionBasedContext<IntervalContext>- Parameters:
other- other position-based context- Returns:
- new position-based context
-
lessThanEqual
Description copied from interface:PositionBasedContextCheck whether this is less or equal to other- Specified by:
lessThanEqualin interfacePositionBasedContext<IntervalContext>- Parameters:
other- value-based context- Returns:
- true on perfect match, maybe on part match and otherwise false
-
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
-
size
public int size() -
hashCode
public int hashCode() -
equals
-
toString
-