Interface IAccessPathReductionStrategy

All Known Implementing Classes:
SameFieldReductionStrategy, This0ReductionStrategy

public interface IAccessPathReductionStrategy

Strategy for reducing a sequence of access path fragments. AP reduction ideally transforms an incoming AP into its canonical form. This helps avoid infinite recursion.

Examples for reduction:

 list.next.prev -> list
 
Author:
Steven Arzt
  • Method Details

    • reduceAccessPath

      AccessPathFragment[] reduceAccessPath(soot.Value base, AccessPathFragment[] fragments)
      Reduces the given sequence of access path fragments
      Parameters:
      base - The local in which the access path is rooted
      fragments - The sequence of access path fragments to reduce
      Returns:
      The reduced sequence of access path fragments if the reduction was applicable, otherwise the original sequence