Package soot.jimple.infoflow
Class InfoflowConfiguration.AccessPathConfiguration
java.lang.Object
soot.jimple.infoflow.InfoflowConfiguration.AccessPathConfiguration
- Enclosing class:
- InfoflowConfiguration
Class containing the configuration options for dealing with access paths
(maximum length, reduction options, etc.)
- Author:
- Steven Arzt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGets the maximum depth of the access paths.booleanGets whether recursive access paths shall be reduced, e.g. whether we shall propagate a.booleanGets 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.booleanGets 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.inthashCode()voidMerges the given configuration options into this configuration objectvoidsetAccessPathLength(int accessPathLength) Sets the maximum depth of the access paths.voidsetUseRecursiveAccessPaths(boolean useRecursiveAccessPaths) Sets whether recursive access paths shall be reduced, e.g. whether we shall propagate a.voidsetUseSameFieldReduction(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.voidsetUseThisChainReduction(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.
-
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() -
equals
-