public class AccessPathTuple extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static AccessPathTuple |
create(boolean isSource,
boolean isSink)
Simplified factory method for creating an access path that just denotes the
base object
|
boolean |
equals(Object obj) |
static AccessPathTuple |
fromPathElements(List<String> fields,
List<String> fieldTypes,
boolean isSource,
boolean isSink) |
static AccessPathTuple |
fromPathElements(List<String> fields,
List<String> fieldTypes,
SourceSinkType sourceSinkType) |
static AccessPathTuple |
fromPathElements(String[] fields,
String[] fieldTypes,
boolean isSource,
boolean isSink) |
static AccessPathTuple |
fromPathElements(String baseType,
List<String> fields,
List<String> fieldTypes,
SourceSinkType sourceSinkType) |
static AccessPathTuple |
fromPathElements(String baseType,
String[] fields,
String[] fieldTypes,
boolean isSource,
boolean isSink) |
static AccessPathTuple |
fromPathElements(String field,
String fieldType,
SourceSinkType sourceSinkType) |
static AccessPathTuple |
fromPathElements(String baseType,
String field,
String fieldType,
SourceSinkType sourceSinkType) |
String |
getBaseType() |
static AccessPathTuple |
getBlankSinkTuple()
Gets the shared tuple that denoted just the base object as a sink
|
static AccessPathTuple |
getBlankSourceTuple()
Gets the shared tuple that denoted just the base object as a source
|
String |
getDescription()
Gets the description of this access path
|
String[] |
getFields() |
String[] |
getFieldTypes() |
SourceSinkType |
getSourceSinkType() |
int |
hashCode() |
void |
setDescription(String description)
Sets the description of this access path
|
AccessPathTuple |
simplify()
Checks whether this tuple is equivalent to one of the simple predefined ones.
|
AccessPath |
toAccessPath(soot.Value baseVal,
InfoflowManager manager,
boolean canHaveImmutableAliases)
Creates an access path from an access path definition object
|
String |
toString() |
public static AccessPathTuple create(boolean isSource, boolean isSink)
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 sinkpublic static AccessPathTuple fromPathElements(List<String> fields, List<String> fieldTypes, boolean isSource, boolean isSink)
public static AccessPathTuple fromPathElements(List<String> fields, List<String> fieldTypes, SourceSinkType sourceSinkType)
public static AccessPathTuple fromPathElements(String field, String fieldType, SourceSinkType sourceSinkType)
public static AccessPathTuple fromPathElements(String baseType, String field, String fieldType, SourceSinkType sourceSinkType)
public static AccessPathTuple fromPathElements(String baseType, List<String> fields, List<String> fieldTypes, SourceSinkType sourceSinkType)
public static AccessPathTuple fromPathElements(String[] fields, String[] fieldTypes, boolean isSource, boolean isSink)
public static AccessPathTuple fromPathElements(String baseType, String[] fields, String[] fieldTypes, boolean isSource, boolean isSink)
public String getBaseType()
public String[] getFields()
public String[] getFieldTypes()
public SourceSinkType getSourceSinkType()
public static AccessPathTuple getBlankSourceTuple()
public static AccessPathTuple getBlankSinkTuple()
public String getDescription()
public void setDescription(String description)
description - The description of this access pathpublic AccessPathTuple simplify()
public AccessPath toAccessPath(soot.Value baseVal, InfoflowManager manager, boolean canHaveImmutableAliases)
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 codeCopyright © 2022 Fraunhofer SIT. All rights reserved.