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 Summary
Modifier and TypeMethodDescriptionGets the category to which this source or sink belongaGets the conditions under which the source/sink definition is validCreates a definition which is a subset of this definition that only contains the sinksCreates a definition which is a subset of this definition that only contains the sourcesbooleanisEmpty()Indicates if the definition contains any sources or sinksvoidsetCategory(ISourceSinkCategory category) Sets the category to which this source or sink belongsvoidsetConditions(Set<SourceSinkCondition> conditions) Sets the conditions under which the source/sink definition is valid
-
Method Details
-
setCategory
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
nullif no such conditions exist
-
setConditions
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, optionallynullif no such conditions exist
-