Class DexData


  • public class DexData
    extends java.lang.Object
    Data extracted from a DEX file.
    • Constructor Summary

      Constructors 
      Constructor Description
      DexData​(java.io.RandomAccessFile raf)
      Constructs a new DexData for this file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ClassRef[] getExternalReferences()
      Returns an array with all of the class references that don't correspond to classes in the DEX file.
      FieldRef[] getFieldRefs()  
      MethodRef[] getMethodRefs()
      Returns the list of all method references.
      void load()
      Loads the contents of the DEX file into our data structures.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DexData

        public DexData​(java.io.RandomAccessFile raf)
        Constructs a new DexData for this file.
    • Method Detail

      • load

        public void load()
                  throws java.io.IOException
        Loads the contents of the DEX file into our data structures.
        Throws:
        java.io.IOException - if we encounter a problem while reading
        DexDataException - if the DEX contents look bad
      • getExternalReferences

        public ClassRef[] getExternalReferences()
        Returns an array with all of the class references that don't correspond to classes in the DEX file. Each class reference has a list of the referenced fields and methods associated with that class.
      • getMethodRefs

        public MethodRef[] getMethodRefs()
        Returns the list of all method references.
        Returns:
        method refs