Interface IUsageContextProvider

All Known Implementing Classes:
EmptyUsageContextProvider

public interface IUsageContextProvider
Provides the analysis whether usage context is needed
Author:
Tim Lange
  • Method Details

    • needsAdditionalInformation

      Set<AdditionalFlowInfoSpecification> needsAdditionalInformation(soot.jimple.Stmt stmt, Set<Abstraction> taints)
      Provide an access path that should be queried as an additional flow.
      Parameters:
      stmt - current statement in the analysis
      taints - outgoing taints in the analysis
      Returns:
      Flow specifications if a usage context shall be computed. Always non-null.
    • isStatementWithAdditionalInformation

      boolean isStatementWithAdditionalInformation(soot.jimple.Stmt stmt, Abstraction abs)
      Whether the flow reaching the statement should be recorded.
      Parameters:
      stmt - current statement in the analysis
      abs - incoming taint in the analysis
      Returns:
      true if the flow should be recorded