Interface IDexMethodData


public interface IDexMethodData
This interface represents a Dex encoded_method object. Only internal methods have such objects. Retrieved via IDexMethod.getData().
  • Method Details

    • getMethodIndex

      int getMethodIndex()
      Get the method index (index of Method object).
      Returns:
      the method index
    • getAccessFlags

      int getAccessFlags()
      Get the method access flags.
      Returns:
      the access flags, refer to the ACC_xxx constants in the IDexUnit
    • setInlineMode

      void setInlineMode(int mode)
      Set the inline mode for this method. The mode can be set by user code as a hint for other processors, mostly the decompiler, on how to process this method.
      Parameters:
      mode - one of IDexUnit.INLINE_xxx
    • getInlineMode

      int getInlineMode()
      Retrieve the inline mode for this method. See setInlineMode(int) for details.
      Returns:
      one of IDexUnit.INLINE_xxx (default is Automatic)
    • isConstructor

      boolean isConstructor()
      Convenience method to check the apt-named access flag.
      Returns:
    • isStatic

      boolean isStatic()
      Convenience method to check the apt-named access flag.
      Returns:
    • isAbstract

      boolean isAbstract()
      Convenience method to check the apt-named access flag.
      Returns:
    • isNative

      boolean isNative()
      Convenience method to check the apt-named access flag.
      Returns:
    • isSynthetic

      boolean isSynthetic()
      Convenience method to check the apt-named access flag.
      Returns:
    • isPublic

      boolean isPublic()
      Convenience method to check the apt-named access flag.
      Returns:
    • isProtected

      boolean isProtected()
      Convenience method to check the apt-named access flag.
      Returns:
    • isPrivate

      boolean isPrivate()
      Convenience method to check the apt-named access flag.
      Returns:
    • isFinal

      boolean isFinal()
      Convenience method to check the apt-named access flag.
      Returns:
    • getCodeItem

      IDexCodeItem getCodeItem()
      Get the code representation for this method.
      Returns:
      the code representation, or null if none (eg, abstract methods)
    • getExceptionTypeIndices

      int[] getExceptionTypeIndices()
      Get type indexes of exceptions declared to be thrown by the method.
      Returns:
    • getDexFileIndex

      int getDexFileIndex()
      Retrieve the index of the dex file that defines this method body.
      Returns:
      an index into IDexUnit.getDexFiles() (of the owner , or -1 if unknown or not defined
    • getUserFlags

      int getUserFlags()
      Custom flags.
      Returns:
    • setUserFlags

      void setUserFlags(int flags)
      Custom flags.
      Parameters:
      flags -