Package soot.jimple.infoflow
Enum Class InfoflowConfiguration.SootIntegrationMode
java.lang.Object
java.lang.Enum<InfoflowConfiguration.SootIntegrationMode>
soot.jimple.infoflow.InfoflowConfiguration.SootIntegrationMode
- All Implemented Interfaces:
Serializable,Comparable<InfoflowConfiguration.SootIntegrationMode>,Constable
- Enclosing class:
- InfoflowConfiguration
public static enum InfoflowConfiguration.SootIntegrationMode
extends Enum<InfoflowConfiguration.SootIntegrationMode>
Enumeration containing the different ways in which Soot can be used
- Author:
- Steven Arzt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWith this option, FlowDroid initializes and configures its own Soot instance.Use the existing Soot instance and existing callgraph.With this option, FlowDroid uses the existing Soot instance, but generates its own callgraph. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether this integration mode requires FlowDroid to build its own callgraphbooleanChecks whether this integration mode requires FlowDroid to initialize a fresh Soot instanceReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CreateNewInstance
With this option, FlowDroid initializes and configures its own Soot instance. This option is the default and the best choice in most cases. -
UseExistingInstance
With this option, FlowDroid uses the existing Soot instance, but generates its own callgraph. Note that it is the responsibility of the caller to make sure that pre-existing Soot instances are configured correctly for the use with FlowDroid. -
UseExistingCallgraph
Use the existing Soot instance and existing callgraph. Do not generate anything, the caller is responsible for providing a valid Soot instance and callgraph.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
needsToBuildCallgraph
public boolean needsToBuildCallgraph()Gets whether this integration mode requires FlowDroid to build its own callgraph- Returns:
- True if FlowDroid must create its own callgraph, otherwise false
-
needsToInitializeSoot
public boolean needsToInitializeSoot()Checks whether this integration mode requires FlowDroid to initialize a fresh Soot instance- Returns:
- True to initialize a fresh Soot instance, false otherwise
-