Module java.base
Package java.lang.constant

Interface ModuleDesc


public sealed interfaceModuleDesc
A nominal descriptor for aModule constant.

To create aModuleDesc for a module, use theof(String) method.

SeeJava Virtual Machine Specification:
4.4.11 The CONSTANT_Module_info Structure
Since:
21
  • Method Summary

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