Class DefaultPathBuilderFactory
java.lang.Object
soot.jimple.infoflow.data.pathBuilders.DefaultPathBuilderFactory
- All Implemented Interfaces:
IPathBuilderFactory
Default factory class for abstraction path builders
- Author:
- Steven Arzt
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepeatable context-senisitive path builderstatic classVariant of theBatchPathBuilderthat can shut down the inner builder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePathBuilder(InfoflowManager manager, int maxThreadNum) Creates a new path builder.createPathBuilder(InfoflowManager manager, InterruptableExecutor executor) Creates a new path builder.booleanGets whether theIAbstractionPathBuilderobject created by this factory supports context-sensitive path reconstruction.booleanGets whether theIAbstractionPathBuilderobject created by this factory supports the reconstruction of the exact paths between source and sink.
-
Constructor Details
-
DefaultPathBuilderFactory
Creates a new instance of theDefaultPathBuilderFactoryclass- Parameters:
config- The configuration for reconstructing data flow paths
-
-
Method Details
-
createPathBuilder
Description copied from interface:IPathBuilderFactoryCreates a new path builder. Use this overload to have the path builder manage its own executors.- Specified by:
createPathBuilderin interfaceIPathBuilderFactory- Parameters:
manager- The data flow manager that gives access to the icfg and other objectsmaxThreadNum- The maximum number of threads to use * @return The newly created path builder
-
createPathBuilder
public IAbstractionPathBuilder createPathBuilder(InfoflowManager manager, InterruptableExecutor executor) Description copied from interface:IPathBuilderFactoryCreates a new path builder. Use this overload if you want the path builder to submit its tasks to an existing executor.- Specified by:
createPathBuilderin interfaceIPathBuilderFactory- Parameters:
manager- The data flow manager that gives access to the icfg and other objectsexecutor- The executor in which to run the path reconstruction tasks. * @return The newly created path builder
-
supportsPathReconstruction
public boolean supportsPathReconstruction()Description copied from interface:IPathBuilderFactoryGets whether theIAbstractionPathBuilderobject created by this factory supports the reconstruction of the exact paths between source and sink.- Specified by:
supportsPathReconstructionin interfaceIPathBuilderFactory- Returns:
- True if the
IAbstractionPathBuilderobject constructed by this factory gives the exact propagation path between source and sink, false if it only reports source-to-sink connections without paths.
-
isContextSensitive
public boolean isContextSensitive()Description copied from interface:IPathBuilderFactoryGets whether theIAbstractionPathBuilderobject created by this factory supports context-sensitive path reconstruction.- Specified by:
isContextSensitivein interfaceIPathBuilderFactory- Returns:
- True if the
IAbstractionPathBuilderobject created by this factory supports context-sensitive path reconstruction, otherwise false.
-