Class AbstractListStrategy
java.lang.Object
soot.jimple.infoflow.collections.strategies.containers.ConstantMapStrategy
soot.jimple.infoflow.collections.strategies.containers.AbstractListStrategy
- All Implemented Interfaces:
IContainerStrategy
- Direct Known Subclasses:
TestConstantStrategy
Strategy that is the base for container strategies with list support
- Author:
- Tim Lange
-
Field Summary
Fields inherited from class soot.jimple.infoflow.collections.strategies.containers.ConstantMapStrategy
indexTypes, itAnalysis, manager -
Constructor Summary
ConstructorsConstructorDescriptionAbstractListStrategy(InfoflowManager manager) AbstractListStrategy(InfoflowManager manager, IShiftOperation shiftOp) -
Method Summary
Modifier and TypeMethodDescriptionappend(ContainerContext[] ctxt1, ContainerContext[] ctxt2) Return the union of the given contextsgetFirstPosition(soot.Value value, soot.jimple.Stmt stmt) Retrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)getIndexContext(soot.Value value, soot.jimple.Stmt stmt) Retrieves a context for a given indexabstract ContainerContextgetLastPosition(soot.Value value, soot.jimple.Stmt stmt) Retrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)abstract ContainerContextgetNextPosition(soot.Value value, soot.jimple.Stmt stmt) Retrieves a context given an implicit key after the given statement (i.e. a list where the key is dependent on the number of add calls before)longlongintersect(ContainerContext apKey, ContainerContext stmtKey) Checks whether the two arguments intersectlessThanEqual(ContainerContext ctxt1, ContainerContext ctxt2) Returns whether ctxt1 is less than ctxt2shift(ContainerContext ctxt, int n, boolean exact) Shifts the ctxt to the rightMethods inherited from class soot.jimple.infoflow.collections.strategies.containers.ConstantMapStrategy
getKeyContext, getResolvedKeys, getUnresolvedKeys, isReadOnly, shouldResolveIndex, shouldSmash
-
Constructor Details
-
AbstractListStrategy
-
AbstractListStrategy
-
-
Method Details
-
getResolvedIndices
public long getResolvedIndices() -
getUnresolvedIndices
public long getUnresolvedIndices() -
intersect
Description copied from interface:IContainerStrategyChecks whether the two arguments intersect- Specified by:
intersectin interfaceIContainerStrategy- Overrides:
intersectin classConstantMapStrategy- Parameters:
apKey- key from the access pathstmtKey- key from the statement- Returns:
- true if args fully intersects, maybe on part match and false on definitely no match
-
getIndexContext
Description copied from interface:IContainerStrategyRetrieves a context for a given index- Specified by:
getIndexContextin interfaceIContainerStrategy- Overrides:
getIndexContextin classConstantMapStrategy- Parameters:
value- requested valuestmt- statement containing index- Returns:
- new context definition
-
getNextPosition
Description copied from interface:IContainerStrategyRetrieves a context given an implicit key after the given statement (i.e. a list where the key is dependent on the number of add calls before)- Specified by:
getNextPositionin interfaceIContainerStrategy- Overrides:
getNextPositionin classConstantMapStrategy- Parameters:
value- liststmt- statement that uses value- Returns:
- new context definition
-
getFirstPosition
Description copied from interface:IContainerStrategyRetrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)- Specified by:
getFirstPositionin interfaceIContainerStrategy- Overrides:
getFirstPositionin classConstantMapStrategy- Parameters:
value- liststmt- statement that uses value- Returns:
- new context definition
-
getLastPosition
Description copied from interface:IContainerStrategyRetrieves a context given an implicit key before the given statement (i.e. a list where the key is dependent on the number of add calls before)- Specified by:
getLastPositionin interfaceIContainerStrategy- Overrides:
getLastPositionin classConstantMapStrategy- Parameters:
value- liststmt- statement that uses value- Returns:
- new context definition
-
lessThanEqual
Description copied from interface:IContainerStrategyReturns whether ctxt1 is less than ctxt2- Specified by:
lessThanEqualin interfaceIContainerStrategy- Overrides:
lessThanEqualin classConstantMapStrategy- Parameters:
ctxt1- first contextctxt2- second context- Returns:
- true ctxt1 is less than ctxt2
-
shift
Description copied from interface:IContainerStrategyShifts the ctxt to the right- Specified by:
shiftin interfaceIContainerStrategy- Overrides:
shiftin classConstantMapStrategy- Parameters:
ctxt- current context- Returns:
- new context definition
-
append
Description copied from interface:IContainerStrategyReturn the union of the given contexts- Specified by:
appendin interfaceIContainerStrategy- Overrides:
appendin classConstantMapStrategy- Parameters:
ctxt1- key from the access pathctxt2- key from the statement- Returns:
- new context definition
-