Interface IAccessPathBasedSourceSinkDefinition

All Superinterfaces:
ISourceSinkDefinition
All Known Implementing Classes:
FieldSourceSinkDefinition, MethodSourceSinkDefinition, StatementSourceSinkDefinition

public interface IAccessPathBasedSourceSinkDefinition extends ISourceSinkDefinition
Common interface for all source/sink definitions based on access paths
Author:
Steven Arzt
  • Method Details

    • getAllAccessPaths

      Set<AccessPathTuple> getAllAccessPaths()
      Gets all access paths referenced in this source or sink definition, regardless of their respective semantics
      Returns:
      All access paths referenced in this source or sink definition. The return value can be null if this definition does not reference any access paths.
    • filter

      Filters the source/sink definition to only reference the given access paths
      Parameters:
      accessPaths - The access path to which to limit the scope of this source/sink definition
      Returns:
      A copy of this source/sink definition that only references the given access paths
    • isEmpty

      boolean isEmpty()
      Checks whether this source/sink definition is empty, i.e., has no concrete access paths
      Specified by:
      isEmpty in interface ISourceSinkDefinition
      Returns:
      True if this source/sink definition is empty, i.e., has no concrete access paths, otherwise false
    • getSourceOnlyDefinition

      IAccessPathBasedSourceSinkDefinition getSourceOnlyDefinition()
      Creates a definition which is a subset of this definition that only contains the sources
      Specified by:
      getSourceOnlyDefinition in interface ISourceSinkDefinition
      Returns:
      The source-only subset of this definition
    • getSinkOnlyDefinition

      IAccessPathBasedSourceSinkDefinition getSinkOnlyDefinition()
      Creates a definition which is a subset of this definition that only contains the sinks
      Specified by:
      getSinkOnlyDefinition in interface ISourceSinkDefinition
      Returns:
      The sink-only subset of this definition