Interface ModuleEntry

  • Method Details Link icon

    • getName Link icon

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

      boolean isClassFile()
      Returns:
      true if the file is a class file.
    • isSourceFile Link icon

      boolean isSourceFile()
      Returns:
      true if the file is a source file.
    • getInputStream Link icon

      InputStream getInputStream()
      Returns:
      an InputStream which provides the contents of this logical file.
    • isModuleFile Link icon

      boolean isModuleFile()
      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

      Module asModule()
      Precondition: isModuleFile().
      Returns:
      a Module view of this entry.
    • getClassName Link icon

      String getClassName()
      Returns:
      the name of the class represented by this entry
      Throws:
      UnsupportedOperationException - if !isClassFile() and !isSourceFile()
    • getContainer Link icon

      Module getContainer()
      the containing module