ModuleAttribute.
Module Attribute
ModuleAttribute#requires(), ModuleDescriptor#requires()
| Modifier and Type | Method and Description |
|---|---|
| public default boolean | Returns: whether the specific access flag is setthe access flag flag)Returns whether the specific access flag is set. |
| public static ModuleRequireInfo | Returns: a module requirement descriptionthe required module requires, int the require-specific flags requiresFlags, Utf8Entry the required version, may be requiresVersion)nullReturns a module requirement description. |
| public static ModuleRequireInfo | Returns: a module requirement descriptionthe required module requires, Collection<AccessFlag> the require-specific flags requiresFlags, Utf8Entry the required version, may be requiresVersion)nullReturns a module requirement description. |
| public static ModuleRequireInfo | Returns: a module requirement descriptionthe required module requires, int the require-specific flags requiresFlags, String the required version, may be requiresVersion)nullReturns a module requirement description. |
| public static ModuleRequireInfo | Returns: a module requirement descriptionthe required module requires, Collection<AccessFlag> the require-specific flags requiresFlags, String the required version, may be requiresVersion)nullReturns a module requirement description. |
| public ModuleEntry | Returns: The module on which the current module dependsReturns The module on which the current module depends. |
| public default Set | Returns: the flags associated with this require declaration, as a set of flag enumsReturns the flags associated with this require declaration, as a set of flag enums. |
| public int | Returns: the flags associated with this require declaration, as a bit maskReturns the flags associated with this require declaration, as a bit mask. |
| public Optional | Returns: the required version of the required module, if presentReturns the required version of the required module, if present. |
| has | back to summary |
|---|---|
| public default boolean has(AccessFlag flag) Returns whether the specific access flag is set.
| |
| of | back to summary |
|---|---|
| public static ModuleRequireInfo of(ModuleEntry requires, int requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.
| |
| of | back to summary |
|---|---|
| public static ModuleRequireInfo of(ModuleEntry requires, Collection<AccessFlag> requiresFlags, Utf8Entry requiresVersion) Returns a module requirement description.
| |
| of | back to summary |
|---|---|
| public static ModuleRequireInfo of(ModuleDesc requires, int requiresFlags, String requiresVersion) Returns a module requirement description.
| |
| of | back to summary |
|---|---|
| public static ModuleRequireInfo of(ModuleDesc requires, Collection<AccessFlag> requiresFlags, String requiresVersion) Returns a module requirement description.
| |
| requires | back to summary |
|---|---|
| public ModuleEntry requires() Returns The module on which the current module depends.
| |
| requiresFlags | back to summary |
|---|---|
| public default Set Returns the flags associated with this require declaration, as a set of flag enums.
| |
| requiresFlagsMask | back to summary |
|---|---|
| public int requiresFlagsMask() Returns the flags associated with this require declaration, as a bit mask.
It is a
| |
| requiresVersion | back to summary |
|---|---|
| public Optional Returns the required version of the required module, if present.
| |