public class EmptyPathBuilder extends Object implements IAbstractionPathBuilder
IAbstractionPathBuilder that always
returns the empty set. For internal use only.IAbstractionPathBuilder.OnPathBuilderResultAvailableIMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification| Constructor and Description |
|---|
EmptyPathBuilder() |
| Modifier and Type | Method and Description |
|---|---|
void |
addResultAvailableHandler(IAbstractionPathBuilder.OnPathBuilderResultAvailable handler)
Adds a handler that gets called when the path reconstructor has
found a new source-to-sink connection
|
void |
addStatusListener(IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification listener)
Adds a new listener that will be notified of status changes in the solver
|
void |
computeTaintPaths(Set<AbstractionAtSink> res)
Computes the path of tainted data between the source and the sink
|
void |
forceTerminate(ISolverTerminationReason reason)
Forces the solver to terminate its tasks and stop processing new tasks.
|
InfoflowResults |
getResults()
Gets the constructed result paths
|
ISolverTerminationReason |
getTerminationReason()
In case this solver was killed before it could complete its task, this
method returns the reason for the abortion.
|
boolean |
isKilled()
Checks whether this solver was killed before it could complete its tasks
|
boolean |
isTerminated()
Checks whether this solver is terminated, either by forced termination,
or because it has finished all of its work.
|
void |
reset()
Resets the solver to its initial state after it has been forcefully
terminated.
|
void |
runIncrementalPathCompuation()
Incrementally runs the path builder after some paths have already been
computed.
|
public void computeTaintPaths(Set<AbstractionAtSink> res)
IAbstractionPathBuildercomputeTaintPaths in interface IAbstractionPathBuilderres - The data flow tracker resultspublic InfoflowResults getResults()
IAbstractionPathBuildergetResults in interface IAbstractionPathBuilderpublic void addResultAvailableHandler(IAbstractionPathBuilder.OnPathBuilderResultAvailable handler)
IAbstractionPathBuilderaddResultAvailableHandler in interface IAbstractionPathBuilderhandler - The handler to addpublic void runIncrementalPathCompuation()
IAbstractionPathBuilderrunIncrementalPathCompuation in interface IAbstractionPathBuilderpublic boolean isTerminated()
IMemoryBoundedSolverisTerminated in interface IMemoryBoundedSolverpublic boolean isKilled()
IMemoryBoundedSolverisKilled in interface IMemoryBoundedSolverpublic void reset()
IMemoryBoundedSolverreset in interface IMemoryBoundedSolverpublic void addStatusListener(IMemoryBoundedSolver.IMemoryBoundedSolverStatusNotification listener)
IMemoryBoundedSolveraddStatusListener in interface IMemoryBoundedSolverlistener - The listener that will be notified when the status of the
solver changespublic void forceTerminate(ISolverTerminationReason reason)
IMemoryBoundedSolverforceTerminate in interface IMemoryBoundedSolverreason - The reason why the solver is terminatedpublic ISolverTerminationReason getTerminationReason()
IMemoryBoundedSolvergetTerminationReason in interface IMemoryBoundedSolverCopyright © 2021 Fraunhofer SIT. All rights reserved.