Interface IMemoryManager<D,N>
- All Known Implementing Classes:
FlowDroidMemoryManager
public interface IMemoryManager<D,N>
Common interface of all memory managers that can be used with FlowDroid's
solvers. Note that not every solver is required to support memory managers.
- Author:
- Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptionhandleGeneratedMemoryObject(D input, D output) Tells the memory manager to optimize the given generated object.handleMemoryObject(D obj) Tells the memory manager to handle the given object.booleanisEssentialJoinPoint(D abs, N relatedCallSite) Checks whether the given abstraction at the given call site is essential and must be kept.
-
Method Details
-
handleMemoryObject
Tells the memory manager to handle the given object. Implementations are free to replace the incoming object with a different reference.- Parameters:
obj- The object to handle- Returns:
- The new reference that shall be used instead of the old one
-
handleGeneratedMemoryObject
Tells the memory manager to optimize the given generated object. The output was computed from the input object using a flow function.- Parameters:
input- The original input to the flow functionoutput- The output of the flow function- Returns:
- The new refrence to use instead of the original output
-
isEssentialJoinPoint
Checks whether the given abstraction at the given call site is essential and must be kept. Non-essential taint abstractions will not be registered as neighbors for join points if the "single join point abstraction" option is enabled- Parameters:
abs- The abstractionrelatedCallSite- The call site over which the abstraction is being propagated- Returns:
- True if the abstraction is essential and must be kept, otherwise false
-