CONSTANT_Module_info structure, denoting a module, in the
constant pool of a class file.
The use of a ModuleEntry is modeled by a ModuleDesc.
Conversions are through ConstantPoolBuilder#moduleEntry(ModuleDesc)
and asSymbol().
A module entry is composite:
ModuleEntry(Utf8Entry name)
name is a module name.
CONSTANT_Module_info Structure
| Modifier and Type | Method and Description |
|---|---|
| public ModuleDesc | Returns: a symbolic descriptor for the module nameReturns a symbolic descriptor for the module name. |
| public boolean | Returns: whether this entry describes the given modulethe module descriptor desc)Returns whether this entry describes the given module. |
| public Utf8Entry |
| asSymbol | back to summary |
|---|---|
| public ModuleDesc asSymbol() Returns a symbolic descriptor for the module name. API Note If only symbol equivalence is desired,
| |
| matches | back to summary |
|---|---|
| public boolean matches(ModuleDesc desc) Returns whether this entry describes the given module.
| |
| name | back to summary |
|---|---|
| public Utf8Entry name() Returns the name of the module. | |