-
- All Implemented Interfaces:
public final class RequiresEntry extends SubStructure
Describes a "requires" statement in a Module attribute structure.
-
-
Field Summary
Fields Modifier and Type Field Description private Integerindexprivate Integerflagsprivate IntegerversionIndexprivate final StringflagsVerboseprivate final Integerlength
-
Constructor Summary
Constructors Constructor Description RequiresEntry()
-
Method Summary
Modifier and Type Method Description final IntegergetIndex()The index of the CONSTANT_Module_info structure that is required. final UnitsetIndex(Integer index)The index of the CONSTANT_Module_info structure that is required. final IntegergetFlags()The flags of the requires statement. final UnitsetFlags(Integer flags)The flags of the requires statement. final IntegergetVersionIndex()Constant pool index of the CONSTANT_Utf8_info structure containing the required module version. final UnitsetVersionIndex(Integer versionIndex)Constant pool index of the CONSTANT_Utf8_info structure containing the required module version. final StringgetFlagsVerbose()IntegergetLength()The length of the structure in bytes. -
-
Method Detail
-
setIndex
final Unit setIndex(Integer index)
The index of the CONSTANT_Module_info structure that is required.
-
getVersionIndex
final Integer getVersionIndex()
Constant pool index of the CONSTANT_Utf8_info structure containing the required module version. Contains 0 if no information is available.
-
setVersionIndex
final Unit setVersionIndex(Integer versionIndex)
Constant pool index of the CONSTANT_Utf8_info structure containing the required module version. Contains 0 if no information is available.
-
getFlagsVerbose
final String getFlagsVerbose()
-
-
-
-