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

    Modifier and Type
    Method
    Description
    name(Object value)
    Returns the name of the given module descriptor.
    Returns the packages of the given module descriptor.
    read(InputStream inputStream)
    Resolves an input stream to a module descriptor.
  • Method Details

    • read

      @IsStatic Object read(InputStream inputStream) throws 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:
      IOException - If an I/O exception occurs.
    • name

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

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