Class SourceInfo
java.lang.Object
soot.jimple.infoflow.sourcesSinks.manager.SourceInfo
Class containing additional information about a source. Users of FlowDroid
can derive from this class when implementing their own SourceSinkManager to
associate additional information with a source.
- Author:
- Steven Arzt, Daniel Magin
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final soot.util.HashMultiMap<AccessPath,ISourceSinkDefinition> protected final Object -
Constructor Summary
ConstructorsConstructorDescriptionSourceInfo(Collection<heros.solver.Pair<AccessPath, ISourceSinkDefinition>> apAndDefs) Creates a new instance of theSourceInfoclassSourceInfo(Collection<heros.solver.Pair<AccessPath, ISourceSinkDefinition>> apAndDefs, Object userData) Creates a new instance of theSourceInfoclassSourceInfo(AccessPath ap) SourceInfo(ISourceSinkDefinition definition, Collection<AccessPath> aps) SourceInfo(ISourceSinkDefinition definition, AccessPath ap) Creates a new instance of theSourceInfoclass.SourceInfo(ISourceSinkDefinition definition, AccessPath ap, Object userData) Creates a new instance of theAbstractSourceSinkInfoclass. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns all access paths which are tainted by this sourceGet all definitions that match the access path Precondition: This SourceInfo contains the access pathGets the user data to be tracked together with this sourceinthashCode()
-
Field Details
-
accessPathsToDefinitions
-
userData
-
-
Constructor Details
-
SourceInfo
Creates a new instance of theSourceInfoclass. This is a convenience constructor to allow for the simple use of a single access path. * @param definition The original definition of the source or sink- Parameters:
ap- The single access path that shall be tainted at this source
-
SourceInfo
-
SourceInfo
-
SourceInfo
Creates a new instance of theAbstractSourceSinkInfoclass. This is a convenience constructor to allow for the simple use of a single access path.- Parameters:
definition- The original definition of the source or sinkap- The single access path that shall be tainted at this sourceuserData- Additional user data to be propagated with the source
-
SourceInfo
Creates a new instance of theSourceInfoclass- Parameters:
apAndDefs- Pairs of access paths and defintions
-
SourceInfo
public SourceInfo(Collection<heros.solver.Pair<AccessPath, ISourceSinkDefinition>> apAndDefs, Object userData) Creates a new instance of theSourceInfoclass- Parameters:
apAndDefs- Pairs of access paths and defintionsuserData- Additional user data to be propagated with the source
-
-
Method Details
-
getAccessPaths
Returns all access paths which are tainted by this source- Returns:
- All access paths tainted by this source
-
getDefinitionsForAccessPath
Get all definitions that match the access path Precondition: This SourceInfo contains the access path- Parameters:
ap- access path- Returns:
- all definitions which match the access path
-
getAllDefinitions
-
hashCode
public int hashCode() -
equals
-
getUserData
Gets the user data to be tracked together with this source- Returns:
- The user data to be tracked together with this source
-