Class DexModuleEntry

java.lang.Object
com.ibm.wala.dalvik.classLoader.DexModuleEntry
All Implemented Interfaces:
ModuleEntry

public class DexModuleEntry extends Object implements ModuleEntry
  • Constructor Details

    • DexModuleEntry

      public DexModuleEntry(org.jf.dexlib2.iface.ClassDef cdefitems, DexFileModule container)
  • Method Details

    • getClassDefItem

      public org.jf.dexlib2.iface.ClassDef getClassDefItem()
    • asModule

      public Module asModule()
      Description copied from interface: ModuleEntry
      Precondition: isModuleFile().
      Specified by:
      asModule in interface ModuleEntry
      Returns:
      a Module view of this entry.
    • getClassName

      public String getClassName()
      Specified by:
      getClassName in interface ModuleEntry
      Returns:
      the name of the class represented by this entry
    • getInputStream

      public InputStream getInputStream()
      Specified by:
      getInputStream in interface ModuleEntry
      Returns:
      an InputStream which provides the contents of this logical file.
    • getName

      public String getName()
      Specified by:
      getName in interface ModuleEntry
      Returns:
      a String that represents the name of the file described by this object
    • isClassFile

      public boolean isClassFile()
      Specified by:
      isClassFile in interface ModuleEntry
      Returns:
      true if the file is a class file.
    • isModuleFile

      public boolean isModuleFile()
      Specified by:
      isModuleFile in interface ModuleEntry
      Returns:
      true iff this module entry (file) represents a module in its own right. e.g., a jar file which is an entry in another jar file.
    • isSourceFile

      public boolean isSourceFile()
      Specified by:
      isSourceFile in interface ModuleEntry
      Returns:
      true if the file is a source file.
    • getContainer

      public DexFileModule getContainer()
      Description copied from interface: ModuleEntry
      the containing module
      Specified by:
      getContainer in interface ModuleEntry
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object