Interface ModuleLayerFromSingleClassLoaderDecorator.ModuleDescriptor

  • Enclosing class:
    ModuleLayerFromSingleClassLoaderDecorator

    @Proxied("java.lang.module.ModuleDescriptor")
    protected static interface ModuleLayerFromSingleClassLoaderDecorator.ModuleDescriptor
    A proxy for the java.lang.module.ModuleDescriptor type.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String name​(java.lang.Object value)
      Returns the name of the given module descriptor.
      java.util.Set<java.lang.String> packages​(java.lang.Object value)
      Returns the packages of the given module descriptor.
      java.lang.Object read​(java.io.InputStream inputStream)
      Resolves an input stream to a module descriptor.
    • Method Detail

      • read

        @IsStatic
        java.lang.Object read​(java.io.InputStream inputStream)
                       throws java.io.IOException
        Resolves an input stream to a module descriptor.
        Parameters:
        inputStream - The input stream of the class file of the module.
        Returns:
        A suitable module description.
        Throws:
        java.io.IOException - If an I/O exception occurs.
      • name

        java.lang.String name​(java.lang.Object value)
        Returns the name of the given module descriptor.
        Parameters:
        value - The module descriptor.
        Returns:
        The module name.
      • packages

        java.util.Set<java.lang.String> packages​(java.lang.Object value)
        Returns the packages of the given module descriptor.
        Parameters:
        value - The module descriptor.
        Returns:
        The included packages.