Interface ModuleDesc


public sealed interface ModuleDesc
A nominal descriptor for a Module constant.

To create a ModuleDesc for a module, use the of(String) method.

See Java Virtual Machine Specification:
4.4.11 The CONSTANT_Module_info Structure
Since:
21
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    boolean
    Compare the specified object with this descriptor for equality.
    Returns the module name of this ModuleDesc.
    static ModuleDesc
    of(String name)
    Returns a ModuleDesc for a module, given the name of the module.