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
  • Enum Constant Details

    • CreateNewInstance

      public static final InfoflowConfiguration.SootIntegrationMode 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

      public static final InfoflowConfiguration.SootIntegrationMode 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

      public static final InfoflowConfiguration.SootIntegrationMode 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

      public static InfoflowConfiguration.SootIntegrationMode valueOf(String name)
      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 name
      NullPointerException - 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