Class DebugInfoDecoder

java.lang.Object
com.android.dx.dex.file.DebugInfoDecoder

public class DebugInfoDecoder extends Object
A decoder for the dex debug info state machine format. This code exists mostly as a reference implementation and test for for the DebugInfoEncoder
  • Method Details

    • getPositionList

      public List<com.android.dx.dex.file.DebugInfoDecoder.PositionEntry> getPositionList()
      Gets the decoded positions list. Valid after calling decode.
      Returns:
      positions list in ascending address order.
    • getLocals

      public List<com.android.dx.dex.file.DebugInfoDecoder.LocalEntry> getLocals()
      Gets the decoded locals list, in ascending start-address order. Valid after calling decode.
      Returns:
      locals list in ascending address order.
    • decode

      public void decode()
      Decodes the debug info sequence.
    • validateEncode

      public static void validateEncode(byte[] info, DexFile file, CstMethodRef ref, DalvCode code, boolean isStatic)
      Validates an encoded debug info stream against data used to encode it, throwing an exception if they do not match. Used to validate the encoder.
      Parameters:
      info - encoded debug info
      file - non-null; file to refer to during decoding
      ref - non-null; method whose info is being decoded
      code - non-null; original code object that was encoded
      isStatic - whether the method is static