Class This0ReductionStrategy

java.lang.Object
soot.jimple.infoflow.data.accessPaths.This0ReductionStrategy
All Implemented Interfaces:
IAccessPathReductionStrategy

public class This0ReductionStrategy extends Object implements IAccessPathReductionStrategy

Strategy that reduces back and forth references between an inner class and its enclosing class to direct accesses.

 a.inner.this$0.c -> a.c
 
Author:
Steven Arzt
  • Constructor Details

    • This0ReductionStrategy

      public This0ReductionStrategy()
  • Method Details

    • reduceAccessPath

      public AccessPathFragment[] reduceAccessPath(soot.Value base, AccessPathFragment[] fragments)
      Description copied from interface: IAccessPathReductionStrategy
      Reduces the given sequence of access path fragments
      Specified by:
      reduceAccessPath in interface IAccessPathReductionStrategy
      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