Class AccessPathFactory

java.lang.Object
soot.jimple.infoflow.data.AccessPathFactory

public class AccessPathFactory extends Object
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
  • Constructor Details

  • Method Details

    • createAccessPath

      public AccessPath createAccessPath(soot.Value val, boolean taintSubFields)
    • 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

      public Collection<AccessPathFragment[]> getBaseForType(soot.Type tp)
    • copyWithNewValue

      public AccessPath copyWithNewValue(AccessPath original, soot.Value val)
      Copies the given access path with a new base value, but retains the base type
      Parameters:
      original - The original access path
      val - 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 path
      val - 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 path
      val - The new base value
      reduceBases - 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 path
      val - The new base value
      reduceBases - True if circular types shall be reduced to bases
      arrayTaintType - 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 path
      val - The new base value
      reduceBases - True if circular types shall be reduced to bases
      arrayTaintType - The way a tainted array shall be handled
      baseCtxt - New context
      Returns:
      This access path with the base replaced by the value given in the val parameter
    • merge

      public AccessPath merge(AccessPath ap1, AccessPath ap2)
      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 fields
      ap2 - 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 fields
      toAppend - The access path fragments to append
      taintSubFields - 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