Class DexBackedMethodProtoReference

All Implemented Interfaces:
Comparable<MethodProtoReference>, MethodProtoReference, Reference

public class DexBackedMethodProtoReference extends BaseMethodProtoReference
  • Field Details

    • dexFile

      @Nonnull public final DexBackedDexFile dexFile
    • protoIndex

      private final int protoIndex
  • Constructor Details

    • DexBackedMethodProtoReference

      public DexBackedMethodProtoReference(@Nonnull DexBackedDexFile dexFile, int protoIndex)
  • Method Details

    • getParameterTypes

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

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

      public int getSize()
      Calculate and return the private size of a method proto. Calculated as: shorty_idx + return_type_idx + parameters_off + type_list size
      Returns:
      size in bytes
    • validateReference

      public void validateReference() throws Reference.InvalidReferenceException
      Description copied from interface: Reference
      Verifies that this reference is valid.
      Specified by:
      validateReference in interface Reference
      Overrides:
      validateReference in class BaseReference
      Throws:
      Reference.InvalidReferenceException - If the reference is not valid.