Class TaintPropagationResults

java.lang.Object
soot.jimple.infoflow.problems.TaintPropagationResults

public class TaintPropagationResults extends Object
Class for storing the results of the forward taint propagation
Author:
Steven Arzt
  • Field Details

  • Method Details

    • addResult

      public boolean addResult(AbstractionAtSink resultAbs)
      Adds a new result of the data flow analysis to the collection
      Parameters:
      resultAbs - The abstraction at the sink instruction
      Returns:
      True if the data flow analysis shall continue, otherwise false
    • isEmpty

      public boolean isEmpty()
      Checks whether this result object is empty
      Returns:
      True if this result object is empty, i.e., there are no results yet, otherwise false
    • getResults

      public Set<AbstractionAtSink> getResults()
      Gets all results collected in this data object
      Returns:
      All data flow results collected in this object
    • addResultAvailableHandler

      public void addResultAvailableHandler(TaintPropagationResults.OnTaintPropagationResultAdded handler)
      Adds a new handler that is invoked when a new data flow result is added to this data object
      Parameters:
      handler - The handler implementation to add
    • size

      public int size()
      Gets the number of taint abstractions in this result object
      Returns:
      The number of taint abstractions in this result object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object