Package soot.jimple.infoflow.data
Class AccessPathFactory
java.lang.Object
soot.jimple.infoflow.data.AccessPathFactory
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSpecialized pair class for field bases -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessPathFactory(InfoflowConfiguration config, TypeUtils typeUtils) Creates a new instance of theAccessPathFactoryclass -
Method Summary
Modifier and TypeMethodDescriptionappendFields(AccessPath original, AccessPathFragment[] toAppend, boolean taintSubFields) Appends additional fields to the given access pathcopyWithNewValue(AccessPath original, soot.Value val) Copies the given access path with a new base value, but retains the base typecopyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField) value val gets new base, fields are preserved.copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField, boolean reduceBases) value val gets new base, fields are preserved.copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType) value val gets new base, fields are preserved.copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType, ContainerContext[] baseCtxt) value val gets new base, fields are preserved.createAccessPath(soot.Value val, boolean taintSubFields) createAccessPath(soot.Value val, AccessPathFragment[] appendingFragments, boolean taintSubFields) createAccessPath(soot.Value val, soot.SootField[] appendingFields, boolean taintSubFields) createAccessPath(soot.Value val, soot.Type valType, boolean taintSubFields, AccessPath.ArrayTaintType arrayTaintType) createAccessPath(soot.Value val, soot.Type valType, AccessPathFragment[] fragments, boolean taintSubFields, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType) createAccessPath(soot.Value val, soot.Type valType, AccessPathFragment[] appendingFragments, boolean taintSubFields, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType, boolean canHaveImmutableAliases) createAccessPath(soot.Value val, soot.Type valType, ContainerContext[] ctxt, AccessPathFragment[] appendingFragments, boolean taintSubFields, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType, boolean canHaveImmutableAliases) getBaseForType(soot.Type tp) merge(AccessPath ap1, AccessPath ap2) Merges the two given access paths , i.e., adds the fields of ap2 to ap1.
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
AccessPathFactory
Creates a new instance of theAccessPathFactoryclass- Parameters:
config- The FlowDroid configuration object
-
-
Method Details
-
createAccessPath
-
createAccessPath
public AccessPath createAccessPath(soot.Value val, soot.Type valType, boolean taintSubFields, AccessPath.ArrayTaintType arrayTaintType) -
createAccessPath
public AccessPath createAccessPath(soot.Value val, soot.SootField[] appendingFields, boolean taintSubFields) -
createAccessPath
public AccessPath createAccessPath(soot.Value val, AccessPathFragment[] appendingFragments, boolean taintSubFields) -
createAccessPath
public AccessPath createAccessPath(soot.Value val, soot.Type valType, AccessPathFragment[] fragments, boolean taintSubFields, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType) -
createAccessPath
public AccessPath createAccessPath(soot.Value val, soot.Type valType, AccessPathFragment[] appendingFragments, boolean taintSubFields, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType, boolean canHaveImmutableAliases) -
createAccessPath
public AccessPath createAccessPath(soot.Value val, soot.Type valType, ContainerContext[] ctxt, AccessPathFragment[] appendingFragments, boolean taintSubFields, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType, boolean canHaveImmutableAliases) -
getBaseForType
-
copyWithNewValue
Copies the given access path with a new base value, but retains the base type- Parameters:
original- The original access pathval- The new value- Returns:
- The new access path with the exchanged value
-
copyWithNewValue
public AccessPath copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField) value val gets new base, fields are preserved.- Parameters:
original- The original access pathval- The new base value- Returns:
- This access path with the base replaced by the value given in the val parameter
-
copyWithNewValue
public AccessPath copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField, boolean reduceBases) value val gets new base, fields are preserved.- Parameters:
original- The original access pathval- The new base valuereduceBases- True if circular types shall be reduced to bases- Returns:
- This access path with the base replaced by the value given in the val parameter
-
copyWithNewValue
public AccessPath copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType) value val gets new base, fields are preserved.- Parameters:
original- The original access pathval- The new base valuereduceBases- True if circular types shall be reduced to basesarrayTaintType- The way a tainted array shall be handled- Returns:
- This access path with the base replaced by the value given in the val parameter
-
copyWithNewValue
public AccessPath copyWithNewValue(AccessPath original, soot.Value val, soot.Type newType, boolean cutFirstField, boolean reduceBases, AccessPath.ArrayTaintType arrayTaintType, ContainerContext[] baseCtxt) value val gets new base, fields are preserved.- Parameters:
original- The original access pathval- The new base valuereduceBases- True if circular types shall be reduced to basesarrayTaintType- The way a tainted array shall be handledbaseCtxt- New context- Returns:
- This access path with the base replaced by the value given in the val parameter
-
merge
Merges the two given access paths , i.e., adds the fields of ap2 to ap1.- Parameters:
ap1- The access path to which to append the fieldsap2- The access path whose fields to append to ap1- Returns:
- The new access path
-
appendFields
public AccessPath appendFields(AccessPath original, AccessPathFragment[] toAppend, boolean taintSubFields) Appends additional fields to the given access path- Parameters:
original- The original access path to which to append the fieldstoAppend- The access path fragments to appendtaintSubFields- True if the new access path shall taint all objects reachable through it, false if it shall only point to precisely one object- Returns:
- The new access path
-