Interface IAccessPathBasedSourceSinkDefinition
- All Superinterfaces:
ISourceSinkDefinition
- All Known Implementing Classes:
FieldSourceSinkDefinition,MethodSourceSinkDefinition,StatementSourceSinkDefinition
Common interface for all source/sink definitions based on access paths
- Author:
- Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptionfilter(Collection<AccessPathTuple> accessPaths) Filters the source/sink definition to only reference the given access pathsGets all access paths referenced in this source or sink definition, regardless of their respective semanticsCreates 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()Checks whether this source/sink definition is empty, i.e., has no concrete access pathsMethods inherited from interface soot.jimple.infoflow.sourcesSinks.definitions.ISourceSinkDefinition
getCategory, getConditions, setCategory, setConditions
-
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:
isEmptyin interfaceISourceSinkDefinition- 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:
getSourceOnlyDefinitionin interfaceISourceSinkDefinition- 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:
getSinkOnlyDefinitionin interfaceISourceSinkDefinition- Returns:
- The sink-only subset of this definition
-