Class SourceInfo

java.lang.Object
soot.jimple.infoflow.sourcesSinks.manager.SourceInfo

public class SourceInfo extends Object
Class containing additional information about a source. Users of FlowDroid can derive from this class when implementing their own SourceSinkManager to associate additional information with a source.
Author:
Steven Arzt, Daniel Magin
  • Field Details

  • Constructor Details

    • SourceInfo

      public SourceInfo(ISourceSinkDefinition definition, AccessPath ap)
      Creates a new instance of the SourceInfo class. This is a convenience constructor to allow for the simple use of a single access path. * @param definition The original definition of the source or sink
      Parameters:
      ap - The single access path that shall be tainted at this source
    • SourceInfo

      public SourceInfo(AccessPath ap)
    • SourceInfo

      public SourceInfo(ISourceSinkDefinition definition, Collection<AccessPath> aps)
    • SourceInfo

      public SourceInfo(ISourceSinkDefinition definition, AccessPath ap, Object userData)
      Creates a new instance of the AbstractSourceSinkInfo class. This is a convenience constructor to allow for the simple use of a single access path.
      Parameters:
      definition - The original definition of the source or sink
      ap - The single access path that shall be tainted at this source
      userData - Additional user data to be propagated with the source
    • SourceInfo

      public SourceInfo(Collection<heros.solver.Pair<AccessPath,ISourceSinkDefinition>> apAndDefs)
      Creates a new instance of the SourceInfo class
      Parameters:
      apAndDefs - Pairs of access paths and defintions
    • SourceInfo

      public SourceInfo(Collection<heros.solver.Pair<AccessPath,ISourceSinkDefinition>> apAndDefs, Object userData)
      Creates a new instance of the SourceInfo class
      Parameters:
      apAndDefs - Pairs of access paths and defintions
      userData - Additional user data to be propagated with the source
  • Method Details

    • getAccessPaths

      public Set<AccessPath> getAccessPaths()
      Returns all access paths which are tainted by this source
      Returns:
      All access paths tainted by this source
    • getDefinitionsForAccessPath

      public Collection<ISourceSinkDefinition> getDefinitionsForAccessPath(AccessPath ap)
      Get all definitions that match the access path Precondition: This SourceInfo contains the access path
      Parameters:
      ap - access path
      Returns:
      all definitions which match the access path
    • getAllDefinitions

      public Collection<ISourceSinkDefinition> getAllDefinitions()
    • hashCode

      public int hashCode()
    • equals

      public boolean equals(Object obj)
    • getUserData

      public Object getUserData()
      Gets the user data to be tracked together with this source
      Returns:
      The user data to be tracked together with this source