Class NullGarbageCollector<N,D>

java.lang.Object
soot.jimple.infoflow.solver.gcSolver.NullGarbageCollector<N,D>
All Implemented Interfaces:
IGarbageCollector<N,D>

public class NullGarbageCollector<N,D> extends Object implements IGarbageCollector<N,D>
Mock implementation for a garbage collector that does nothing
Author:
Steven Arzt
  • Constructor Details

    • NullGarbageCollector

      public NullGarbageCollector()
  • Method Details

    • notifyEdgeSchedule

      public void notifyEdgeSchedule(heros.solver.PathEdge<N,D> edge)
      Description copied from interface: IGarbageCollector
      Notifies the garbage collector that a new edge has been scheduled for processing
      Specified by:
      notifyEdgeSchedule in interface IGarbageCollector<N,D>
      Parameters:
      edge - The edge that has been scheduled
    • notifyTaskProcessed

      public void notifyTaskProcessed(heros.solver.PathEdge<N,D> edge)
      Description copied from interface: IGarbageCollector
      Notifies the garbage collector that an edge has been fully processed
      Specified by:
      notifyTaskProcessed in interface IGarbageCollector<N,D>
      Parameters:
      edge - The edge has been fully processed
    • gc

      public void gc()
      Description copied from interface: IGarbageCollector
      Performs the garbage collection
      Specified by:
      gc in interface IGarbageCollector<N,D>
    • getGcedAbstractions

      public int getGcedAbstractions()
      Description copied from interface: IGarbageCollector
      Gets the number of methods for which taint abstractions were removed during garbage collection
      Specified by:
      getGcedAbstractions in interface IGarbageCollector<N,D>
      Returns:
      The number of methods for which taint abstractions were removed during garbage collection
    • getGcedEdges

      public int getGcedEdges()
      Description copied from interface: IGarbageCollector
      Gets the number of taint abstractions that were removed during garbage collection
      Specified by:
      getGcedEdges in interface IGarbageCollector<N,D>
      Returns:
      The number of taint abstractions that were removed during garbage collection
    • notifySolverTerminated

      public void notifySolverTerminated()
      Description copied from interface: IGarbageCollector
      Notifies the garbage collector that the IFDS solver has finished propagating its edges
      Specified by:
      notifySolverTerminated in interface IGarbageCollector<N,D>
    • setPeerGroup

      public void setPeerGroup(GarbageCollectorPeerGroup<soot.SootMethod> peerGroup)