Class SootMethodRepresentationParser

java.lang.Object
soot.jimple.infoflow.util.SootMethodRepresentationParser

public class SootMethodRepresentationParser extends Object
handles conversion from the string representation of SootMethod to our internal format SootMethodAndClass
  • Method Details

    • v

      public static SootMethodRepresentationParser v()
    • parseSootMethodString

      public SootMethodAndClass parseSootMethodString(String parseString)
      parses a string in soot representation, for example: <soot.jimple.infoflow.test.TestNoMain: java.lang.String function1()> <soot.jimple.infoflow.test.TestNoMain: void functionCallOnObject()> <soot.jimple.infoflow.test.TestNoMain: java.lang.String function2(java.lang.String,java.lang.String)>
      Parameters:
      parseString - The method signature to parse
    • parseClassNames

      public HashMap<String,Set<String>> parseClassNames(Collection<String> methods, boolean subSignature)
    • parseClassNames2

      public soot.util.MultiMap<String,String> parseClassNames2(Collection<String> methods, boolean subSignature)
    • getMethodNameFromSubSignature

      public String getMethodNameFromSubSignature(String subSignature)
      Parses a Soot method subsignature and returns the method name
      Parameters:
      subSignature - The Soot subsignature to parse
      Returns:
      The name of the method being invoked if the given subsignature could be parsed successfully, otherwise an empty string.
    • getParameterTypesFromSubSignature

      public String[] getParameterTypesFromSubSignature(String subSignature)
      Parses a Soot method subsignature and returns the list of parameter types
      Parameters:
      subSignature - The Soot subsignature to parse
      Returns:
      The list of formal parameters in the given subsignature invoked if the given subsignature could be parsed successfully, otherwise null.