Interface ISourceSinkDefinition

All Known Subinterfaces:
IAccessPathBasedSourceSinkDefinition
All Known Implementing Classes:
AbstractSourceSinkDefinition, ConditionalSecondarySourceDefinition, FieldSourceSinkDefinition, MethodSourceSinkDefinition, SecondarySinkDefinition, StatementSourceSinkDefinition

public interface ISourceSinkDefinition
Abstract interface for soure/sink definitions
Author:
Steven Arzt
  • Method Details

    • setCategory

      void setCategory(ISourceSinkCategory category)
      Sets the category to which this source or sink belongs
      Parameters:
      category - The category to which this source or sink belongs
    • getCategory

      ISourceSinkCategory getCategory()
      Gets the category to which this source or sink belonga
      Returns:
      The category to which this source or sink belonga
    • getSourceOnlyDefinition

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

      ISourceSinkDefinition getSinkOnlyDefinition()
      Creates a definition which is a subset of this definition that only contains the sinks
      Returns:
      The sink-only subset of this definition
    • isEmpty

      boolean isEmpty()
      Indicates if the definition contains any sources or sinks
      Returns:
      The boolean if this definition is empty
    • getConditions

      Set<SourceSinkCondition> getConditions()
      Gets the conditions under which the source/sink definition is valid
      Returns:
      A set with the conditions under which the source/sink definition is valid, optionally null if no such conditions exist
    • setConditions

      void setConditions(Set<SourceSinkCondition> conditions)
      Sets the conditions under which the source/sink definition is valid
      Parameters:
      conditions - A set with the conditions under which the source/sink definition is valid, optionally null if no such conditions exist