Class AndroidMethod


public class AndroidMethod extends SootMethodAndClass
Class representing a single method in the Android SDK
Author:
Steven Arzt, Siegfried Rasthofer, Daniel Magin, Joern Tillmanns
  • Constructor Details

  • Method Details

    • getPermissions

      public Set<String> getPermissions()
    • setSourceSinkType

      public void setSourceSinkType(SourceSinkType sourceSinkType)
    • addPermission

      public void addPermission(String permission)
    • toString

      public String toString()
      Overrides:
      toString in class SootMethodAndClass
    • getSignatureAndPermissions

      public String getSignatureAndPermissions()
    • isAnnotated

      public boolean isAnnotated()
      Gets whether this method has been annotated as a source, sink or neither nor.
      Returns:
      True if there is an annotations for this method, otherwise false.
    • getSourceSinkType

      public SourceSinkType getSourceSinkType()
      Gets whether this method is configured as a source or sink
      Returns:
      The source/sink definition for this method
    • createFromSignature

      public static AndroidMethod createFromSignature(String signature)
      Static method to create AndroidMethod from Soot method signature
      Parameters:
      signature - The Soot method signature
      Returns:
      The new AndroidMethod object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class SootMethodAndClass
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class SootMethodAndClass