Package soot.jimple.infoflow.river
Class AdditionalFlowCondition
java.lang.Object
soot.jimple.infoflow.sourcesSinks.definitions.SourceSinkCondition
soot.jimple.infoflow.river.AdditionalFlowCondition
A condition that checks additional data flow to see whether a source or sink
is valid or not
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanevaluate(DataFlowResult result, InfoflowResults results) Evaluates the condition on the given data flow resultReturn the class names that should be on the pathSet<soot.SootClass>Gets all classes excluded by this conditionReturn the excluded class namesSet<soot.SootClass>Gets all classes referenced by this conditionSet<soot.SootMethod>Gets all methods referenced by this conditionReturn the signatures that should be on the pathinthashCode()booleanisEmpty()Gets whether this flow condition is empty, i.e., has nothing to check fortoString()
-
Constructor Details
-
AdditionalFlowCondition
public AdditionalFlowCondition(Set<String> classNamesOnPath, Set<String> signaturesOnPath, Set<String> excludedClassNames) Create a new additional flow condition- Parameters:
classNamesOnPath- class names that have to be on the pathsignaturesOnPath- signatures that have to be on the pathexcludedClassNames- class names of primary sinks that should be filtered without context, e.g. ByteArrayOutputStream for OutputStream
-
-
Method Details
-
evaluate
Description copied from class:SourceSinkConditionEvaluates the condition on the given data flow result- Specified by:
evaluatein classSourceSinkCondition- Parameters:
result- The data flow resultresults- All results of this data flow analysis- Returns:
- True if the given data flow result matches the condition, otherwise false
-
getReferencedMethods
Description copied from class:SourceSinkConditionGets all methods referenced by this condition- Overrides:
getReferencedMethodsin classSourceSinkCondition- Returns:
- The methods referenced by this condition
-
getReferencedClasses
Description copied from class:SourceSinkConditionGets all classes referenced by this condition- Overrides:
getReferencedClassesin classSourceSinkCondition- Returns:
- The classes referenced by this condition
-
getExcludedClasses
Description copied from class:SourceSinkConditionGets all classes excluded by this condition- Overrides:
getExcludedClassesin classSourceSinkCondition- Returns:
- The classes excluded by this condition
-
getSignaturesOnPath
Return the signatures that should be on the path- Returns:
- unmodifiable set of signatures
-
getClassNamesOnPath
Return the class names that should be on the path- Returns:
- unmodifiable set of class names
-
getExcludedClassNames
Return the excluded class names- Returns:
- unmodifiable set of excluded class names
-
isEmpty
public boolean isEmpty()Gets whether this flow condition is empty, i.e., has nothing to check for- Returns:
- True if this flow condition is empty, false otherwise
-
hashCode
public int hashCode() -
equals
-
toString
-