Class EmptyPathBuilder
java.lang.Object
soot.jimple.infoflow.data.pathBuilders.EmptyPathBuilder
- All Implemented Interfaces:
IAbstractionPathBuilder,IMemoryBoundedSolver
An empty implementation of
IAbstractionPathBuilder that always
returns the empty set. For internal use only.- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from interface soot.jimple.infoflow.data.pathBuilders.IAbstractionPathBuilder
IAbstractionPathBuilder.OnPathBuilderResultAvailableNested classes/interfaces inherited from interface soot.jimple.infoflow.memory.IMemoryBoundedSolver
IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a handler that gets called when the path reconstructor has found a new source-to-sink connectionvoidAdds a new listener that will be notified of status changes in the solvervoidComputes the path of tainted data between the source and the sinkvoidForces the solver to terminate its tasks and stop processing new tasks.Gets the constructed result pathsIn case this solver was killed before it could complete its task, this method returns the reason for the abortion.booleanisKilled()Checks whether this solver was killed before it could complete its tasksbooleanChecks whether this solver is terminated, either by forced termination, or because it has finished all of its work.voidreset()Resets the solver to its initial state after it has been forcefully terminated.voidIncrementally runs the path builder after some paths have already been computed.
-
Constructor Details
-
EmptyPathBuilder
public EmptyPathBuilder()
-
-
Method Details
-
computeTaintPaths
Description copied from interface:IAbstractionPathBuilderComputes the path of tainted data between the source and the sink- Specified by:
computeTaintPathsin interfaceIAbstractionPathBuilder- Parameters:
res- The data flow tracker results
-
getResults
Description copied from interface:IAbstractionPathBuilderGets the constructed result paths- Specified by:
getResultsin interfaceIAbstractionPathBuilder- Returns:
- The constructed result paths
-
addResultAvailableHandler
Description copied from interface:IAbstractionPathBuilderAdds a handler that gets called when the path reconstructor has found a new source-to-sink connection- Specified by:
addResultAvailableHandlerin interfaceIAbstractionPathBuilder- Parameters:
handler- The handler to add
-
runIncrementalPathComputation
public void runIncrementalPathComputation()Description copied from interface:IAbstractionPathBuilderIncrementally runs the path builder after some paths have already been computed. This method is usually called after the taint propagation has finished when incremental path building has been used in between.- Specified by:
runIncrementalPathComputationin interfaceIAbstractionPathBuilder
-
isTerminated
public boolean isTerminated()Description copied from interface:IMemoryBoundedSolverChecks whether this solver is terminated, either by forced termination, or because it has finished all of its work.- Specified by:
isTerminatedin interfaceIMemoryBoundedSolver- Returns:
- True if this solver is terminated, otherwise false
-
isKilled
public boolean isKilled()Description copied from interface:IMemoryBoundedSolverChecks whether this solver was killed before it could complete its tasks- Specified by:
isKilledin interfaceIMemoryBoundedSolver- Returns:
- True if this solver was killed before it could complete its tasks, otherwise false
-
reset
public void reset()Description copied from interface:IMemoryBoundedSolverResets the solver to its initial state after it has been forcefully terminated. After calling this method, the solver is expected to accept new tasks.- Specified by:
resetin interfaceIMemoryBoundedSolver
-
addStatusListener
Description copied from interface:IMemoryBoundedSolverAdds a new listener that will be notified of status changes in the solver- Specified by:
addStatusListenerin interfaceIMemoryBoundedSolver- Parameters:
listener- The listener that will be notified when the status of the solver changes
-
forceTerminate
Description copied from interface:IMemoryBoundedSolverForces the solver to terminate its tasks and stop processing new tasks. This will kill the solver.- Specified by:
forceTerminatein interfaceIMemoryBoundedSolver- Parameters:
reason- The reason why the solver is terminated
-
getTerminationReason
Description copied from interface:IMemoryBoundedSolverIn case this solver was killed before it could complete its task, this method returns the reason for the abortion. Otherwise, this method returns null.- Specified by:
getTerminationReasonin interfaceIMemoryBoundedSolver- Returns:
- The reason for the abortion in case the solver was killed, otherwise null
-