Package soot.jimple.infoflow.problems
Class TaintPropagationResults
java.lang.Object
soot.jimple.infoflow.problems.TaintPropagationResults
Class for storing the results of the forward taint propagation
- Author:
- Steven Arzt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceHandler interface that is invoked when new taint propagation results are added to the result object -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InfoflowManagerprotected final Set<TaintPropagationResults.OnTaintPropagationResultAdded>protected final MyConcurrentHashMap<AbstractionAtSink,Abstraction> -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddResult(AbstractionAtSink resultAbs) Adds a new result of the data flow analysis to the collectionvoidAdds a new handler that is invoked when a new data flow result is added to this data objectbooleanGets all results collected in this data objectinthashCode()booleanisEmpty()Checks whether this result object is emptyintsize()Gets the number of taint abstractions in this result objecttoString()
-
Field Details
-
manager
-
results
-
resultAddedHandlers
-
-
Method Details
-
addResult
Adds a new result of the data flow analysis to the collection- Parameters:
resultAbs- The abstraction at the sink instruction- Returns:
- True if the data flow analysis shall continue, otherwise false
-
isEmpty
public boolean isEmpty()Checks whether this result object is empty- Returns:
- True if this result object is empty, i.e., there are no results yet, otherwise false
-
getResults
Gets all results collected in this data object- Returns:
- All data flow results collected in this object
-
addResultAvailableHandler
public void addResultAvailableHandler(TaintPropagationResults.OnTaintPropagationResultAdded handler) Adds a new handler that is invoked when a new data flow result is added to this data object- Parameters:
handler- The handler implementation to add
-
size
public int size()Gets the number of taint abstractions in this result object- Returns:
- The number of taint abstractions in this result object
-
hashCode
public int hashCode() -
equals
-
toString
-