Class DexBackedFieldReference

    • Constructor Detail

      • DexBackedFieldReference

        public DexBackedFieldReference​(@Nonnull
                                       DexBackedDexFile dexFile,
                                       int fieldIndex)
    • Method Detail

      • getDefiningClass

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

        @Nonnull
        public java.lang.String getName()
        Description copied from interface: FieldReference
        Gets the name of the referenced field.
        Returns:
        The name of the referenced field
      • getType

        @Nonnull
        public java.lang.String getType()
        Description copied from interface: FieldReference
        Gets the type of the referenced field.
        Returns:
        The type of the referenced field
      • getSize

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