Class InfoflowConfiguration.AccessPathConfiguration

java.lang.Object
soot.jimple.infoflow.InfoflowConfiguration.AccessPathConfiguration
Enclosing class:
InfoflowConfiguration

public static class InfoflowConfiguration.AccessPathConfiguration extends Object
Class containing the configuration options for dealing with access paths (maximum length, reduction options, etc.)
Author:
Steven Arzt
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    int
    Gets the maximum depth of the access paths.
    boolean
    Gets whether recursive access paths shall be reduced, e.g. whether we shall propagate a.
    boolean
    Gets whether access paths that repeat the same field shall be reduced, i.e., whether a.next.obj shall be propagated instead of a.next.next.obj.
    boolean
    Gets whether access paths pointing to outer objects using this$n shall be reduced, e.g. whether we shall propagate a.data instead of a.this$0.a.data.
    int
     
    void
    Merges the given configuration options into this configuration object
    void
    setAccessPathLength(int accessPathLength)
    Sets the maximum depth of the access paths.
    void
    setUseRecursiveAccessPaths(boolean useRecursiveAccessPaths)
    Sets whether recursive access paths shall be reduced, e.g. whether we shall propagate a.
    void
    setUseSameFieldReduction(boolean useSameFieldReduction)
    Sets whether access paths that repeat the same field shall be reduced, i.e., whether a.next.obj shall be propagated instead of a.next.next.obj.
    void
    setUseThisChainReduction(boolean useThisChainReduction)
    Sets whether access paths pointing to outer objects using this$n shall be reduced, e.g. whether we shall propagate a.data instead of a.this$0.a.data.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AccessPathConfiguration

      public AccessPathConfiguration()
  • Method Details

    • merge

      Merges the given configuration options into this configuration object
      Parameters:
      config - The configuration data to merge in
    • getAccessPathLength

      public int getAccessPathLength()
      Gets the maximum depth of the access paths. All paths will be truncated if they exceed the given size.
      Returns:
      the maximum value of an access path.
    • setAccessPathLength

      public void setAccessPathLength(int accessPathLength)
      Sets the maximum depth of the access paths. All paths will be truncated if they exceed the given size.
      Parameters:
      accessPathLength - the maximum value of an access path. If it gets longer than this value, it is truncated and all following fields are assumed as tainted (which is imprecise but gains performance) Default value is 5.
    • getUseRecursiveAccessPaths

      public boolean getUseRecursiveAccessPaths()
      Gets whether recursive access paths shall be reduced, e.g. whether we shall propagate a.[next].data instead of a.next.next.data.
      Returns:
      True if recursive access paths shall be reduced, otherwise false
    • setUseRecursiveAccessPaths

      public void setUseRecursiveAccessPaths(boolean useRecursiveAccessPaths)
      Sets whether recursive access paths shall be reduced, e.g. whether we shall propagate a.[next].data instead of a.next.next.data.
      Parameters:
      useRecursiveAccessPaths - True if recursive access paths shall be reduced, otherwise false
    • getUseThisChainReduction

      public boolean getUseThisChainReduction()
      Gets whether access paths pointing to outer objects using this$n shall be reduced, e.g. whether we shall propagate a.data instead of a.this$0.a.data.
      Returns:
      True if access paths including outer objects shall be reduced, otherwise false
    • setUseThisChainReduction

      public void setUseThisChainReduction(boolean useThisChainReduction)
      Sets whether access paths pointing to outer objects using this$n shall be reduced, e.g. whether we shall propagate a.data instead of a.this$0.a.data.
      Parameters:
      useThisChainReduction - True if access paths including outer objects shall be reduced, otherwise false
    • getUseSameFieldReduction

      public boolean getUseSameFieldReduction()
      Gets whether access paths that repeat the same field shall be reduced, i.e., whether a.next.obj shall be propagated instead of a.next.next.obj.
      Returns:
      True if access paths with repeating fields shall be reduced to the last occurrence of that field
    • setUseSameFieldReduction

      public void setUseSameFieldReduction(boolean useSameFieldReduction)
      Sets whether access paths that repeat the same field shall be reduced, i.e., whether a.next.obj shall be propagated instead of a.next.next.obj.
      Parameters:
      useSameFieldReduction - True if access paths with repeating fields shall be reduced to the last occurrence of that field
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object