Class StatementSourceSinkDefinition
java.lang.Object
soot.jimple.infoflow.sourcesSinks.definitions.AbstractSourceSinkDefinition
soot.jimple.infoflow.sourcesSinks.definitions.StatementSourceSinkDefinition
- All Implemented Interfaces:
IAccessPathBasedSourceSinkDefinition,ISourceSinkDefinition
public class StatementSourceSinkDefinition
extends AbstractSourceSinkDefinition
implements IAccessPathBasedSourceSinkDefinition
A source/sink definition that corresponds to a concrete statement in the
Jimple code
- Author:
- Steven Arzt
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Set<AccessPathTuple>protected final soot.Localprotected final soot.jimple.StmtFields inherited from class soot.jimple.infoflow.sourcesSinks.definitions.AbstractSourceSinkDefinition
category, conditions -
Constructor Summary
ConstructorsConstructorDescriptionStatementSourceSinkDefinition(soot.jimple.Stmt stmt, soot.Local local, Set<AccessPathTuple> accessPaths) -
Method Summary
Modifier and TypeMethodDescriptionprotected StatementSourceSinkDefinitionbuildNewDefinition(soot.jimple.Stmt stmt, soot.Local local, Set<AccessPathTuple> accessPaths) createBlankStatementSinkDefinition(soot.jimple.Stmt stmt, soot.Local local) createBlankStatementSourceDefinition(soot.jimple.Stmt stmt, soot.Local local) booleanfilter(Collection<AccessPathTuple> toFilter) 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 semanticssoot.LocalgetLocal()Creates 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 sourcessoot.jimple.StmtgetStmt()inthashCode()booleanisEmpty()Checks whether this source/sink definition is empty, i.e., has no concrete access pathstoString()Methods inherited from class soot.jimple.infoflow.sourcesSinks.definitions.AbstractSourceSinkDefinition
getCategory, getConditions, setCategory, setConditionsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface soot.jimple.infoflow.sourcesSinks.definitions.ISourceSinkDefinition
getCategory, getConditions, setCategory, setConditions
-
Field Details
-
stmt
protected final soot.jimple.Stmt stmt -
local
protected final soot.Local local -
accessPaths
-
-
Constructor Details
-
StatementSourceSinkDefinition
public StatementSourceSinkDefinition(soot.jimple.Stmt stmt, soot.Local local, Set<AccessPathTuple> accessPaths)
-
-
Method Details
-
createBlankStatementSourceDefinition
public static StatementSourceSinkDefinition createBlankStatementSourceDefinition(soot.jimple.Stmt stmt, soot.Local local) -
createBlankStatementSinkDefinition
public static StatementSourceSinkDefinition createBlankStatementSinkDefinition(soot.jimple.Stmt stmt, soot.Local local) -
getSourceOnlyDefinition
Description copied from interface:IAccessPathBasedSourceSinkDefinitionCreates a definition which is a subset of this definition that only contains the sources- Specified by:
getSourceOnlyDefinitionin interfaceIAccessPathBasedSourceSinkDefinition- Specified by:
getSourceOnlyDefinitionin interfaceISourceSinkDefinition- Returns:
- The source-only subset of this definition
-
getSinkOnlyDefinition
Description copied from interface:IAccessPathBasedSourceSinkDefinitionCreates a definition which is a subset of this definition that only contains the sinks- Specified by:
getSinkOnlyDefinitionin interfaceIAccessPathBasedSourceSinkDefinition- Specified by:
getSinkOnlyDefinitionin interfaceISourceSinkDefinition- Returns:
- The sink-only subset of this definition
-
getStmt
public soot.jimple.Stmt getStmt() -
getLocal
public soot.Local getLocal() -
getAccessPaths
-
isEmpty
public boolean isEmpty()Description copied from interface:IAccessPathBasedSourceSinkDefinitionChecks whether this source/sink definition is empty, i.e., has no concrete access paths- Specified by:
isEmptyin interfaceIAccessPathBasedSourceSinkDefinition- Specified by:
isEmptyin interfaceISourceSinkDefinition- Returns:
- True if this source/sink definition is empty, i.e., has no concrete access paths, otherwise false
-
toString
-
getAllAccessPaths
Description copied from interface:IAccessPathBasedSourceSinkDefinitionGets all access paths referenced in this source or sink definition, regardless of their respective semantics- Specified by:
getAllAccessPathsin interfaceIAccessPathBasedSourceSinkDefinition- 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
Description copied from interface:IAccessPathBasedSourceSinkDefinitionFilters the source/sink definition to only reference the given access paths- Specified by:
filterin interfaceIAccessPathBasedSourceSinkDefinition- Parameters:
toFilter- 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
-
buildNewDefinition
protected StatementSourceSinkDefinition buildNewDefinition(soot.jimple.Stmt stmt, soot.Local local, Set<AccessPathTuple> accessPaths) -
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractSourceSinkDefinition
-
equals
- Overrides:
equalsin classAbstractSourceSinkDefinition
-