Class DexBackedMethodReference

    • Constructor Detail

      • DexBackedMethodReference

        public DexBackedMethodReference​(@Nonnull
                                        DexBackedDexFile dexFile,
                                        int methodIndex)
    • Method Detail

      • getDefiningClass

        @Nonnull
        public java.lang.String getDefiningClass()
        Description copied from interface: MethodReference
        Gets the type of the class that defines the referenced method.
        Returns:
        The type of the class that defines the referenced method
      • getName

        @Nonnull
        public java.lang.String getName()
        Description copied from interface: MethodReference
        Gets the name of the referenced method.
        Returns:
        The name of the referenced method
      • getParameterTypes

        @Nonnull
        public java.util.List<java.lang.String> getParameterTypes()
        Description copied from interface: MethodReference
        Gets a list of the types of the parameters of this method.
        Returns:
        A list of the parameter types of this method, as strings.
      • getReturnType

        @Nonnull
        public java.lang.String getReturnType()
        Description copied from interface: MethodReference
        Gets the return type of the referenced method.
        Returns:
        The return type of the referenced method.
      • getSize

        public int getSize()
        Calculate and return the private size of a method reference. Calculated as: class_idx + proto_idx + name_idx
        Returns:
        size in bytes