Class JarFileEntry

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

public class JarFileEntry extends Object implements ModuleEntry
An entry in a Jar file.
  • Constructor Details Link icon

  • Method Details Link icon

    • getName Link icon

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

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

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

      public long getSize()
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • isModuleFile Link icon

      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.
    • asModule Link icon

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

      public JarFile getJarFile()
    • getContainer Link icon

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getClassName Link icon

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

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

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