Class AccessPathTuple
java.lang.Object
soot.jimple.infoflow.sourcesSinks.definitions.AccessPathTuple
- Direct Known Subclasses:
ImmutableAccessPathTuple
Helper to save an AccessPath with the information about sink and sources.
- Author:
- Joern Tillmanns, Steven Arzt
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPathTuplecreate(boolean isSource, boolean isSink) Simplified factory method for creating an access path that just denotes the base objectbooleanstatic AccessPathTuplefromPathElements(String[] fields, String[] fieldTypes, boolean isSource, boolean isSink) static AccessPathTuplefromPathElements(String baseType, String[] fields, String[] fieldTypes, boolean isSource, boolean isSink) static AccessPathTuplefromPathElements(String baseType, String field, String fieldType, SourceSinkType sourceSinkType) static AccessPathTuplefromPathElements(String field, String fieldType, SourceSinkType sourceSinkType) static AccessPathTuplefromPathElements(String baseType, List<String> fields, List<String> fieldTypes, SourceSinkType sourceSinkType) static AccessPathTuplefromPathElements(List<String> fields, List<String> fieldTypes, boolean isSource, boolean isSink) static AccessPathTuplefromPathElements(List<String> fields, List<String> fieldTypes, SourceSinkType sourceSinkType) static AccessPathTupleGets the shared tuple that denoted just the base object as a sinkstatic AccessPathTupleGets the shared tuple that denoted just the base object as a sourceGets the description of this access pathString[]String[]inthashCode()voidsetDescription(String description) Sets the description of this access pathsimplify()Checks whether this tuple is equivalent to one of the simple predefined ones.toAccessPath(soot.Value baseVal, InfoflowManager manager, boolean canHaveImmutableAliases) Creates an access path from an access path definition objecttoString()
-
Method Details
-
create
Simplified factory method for creating an access path that just denotes the base object- Parameters:
isSource- True if the referenced access path shall be considered a data flow sourceisSink- True if the referenced access path shall be considered a data flow sink- Returns:
- The newly created access path object
-
fromPathElements
public static AccessPathTuple fromPathElements(List<String> fields, List<String> fieldTypes, boolean isSource, boolean isSink) -
fromPathElements
public static AccessPathTuple fromPathElements(List<String> fields, List<String> fieldTypes, SourceSinkType sourceSinkType) -
fromPathElements
public static AccessPathTuple fromPathElements(String field, String fieldType, SourceSinkType sourceSinkType) -
fromPathElements
public static AccessPathTuple fromPathElements(String baseType, String field, String fieldType, SourceSinkType sourceSinkType) -
fromPathElements
public static AccessPathTuple fromPathElements(String baseType, List<String> fields, List<String> fieldTypes, SourceSinkType sourceSinkType) -
fromPathElements
public static AccessPathTuple fromPathElements(String[] fields, String[] fieldTypes, boolean isSource, boolean isSink) -
fromPathElements
public static AccessPathTuple fromPathElements(String baseType, String[] fields, String[] fieldTypes, boolean isSource, boolean isSink) -
getBaseType
-
getFields
-
getFieldTypes
-
getSourceSinkType
-
getBlankSourceTuple
Gets the shared tuple that denoted just the base object as a source- Returns:
- The tuple that denotes just the base object as a source
-
getBlankSinkTuple
Gets the shared tuple that denoted just the base object as a sink- Returns:
- The tuple that denotes just the base object as a sink
-
getDescription
Gets the description of this access path- Returns:
- The description of this access path
-
setDescription
Sets the description of this access path- Parameters:
description- The description of this access path
-
hashCode
public int hashCode() -
equals
-
simplify
Checks whether this tuple is equivalent to one of the simple predefined ones. If so, it returns the shared predefined object. Otherwise, it returns this object.- Returns:
- A shared object that is equal to this one if possible, otherwise this object
-
toAccessPath
public AccessPath toAccessPath(soot.Value baseVal, InfoflowManager manager, boolean canHaveImmutableAliases) Creates an access path from an access path definition object- Parameters:
baseVal- The base for the new access pathmanager- The manager to be used for creating new access pathscanHaveImmutableAliases- Specifies if the newly tainted value can have aliases that are not overwritten by the current operation, i.e., whether there must be an alias analysis from the source statement backwards through the code- Returns:
- The newly created access path
-
toString
-