-
- All Implemented Interfaces:
public final class ModuleAttribute extends AttributeInfo
Describes a Module attribute structure.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classModuleAttribute.Companion
-
Field Summary
Fields Modifier and Type Field Description private IntegermoduleNameIndexprivate IntegermoduleFlagsprivate final StringmoduleFlagsVerboseprivate IntegermoduleVersionIndexprivate Array<RequiresEntry>requiresEntriesprivate Array<ExportsEntry>exportsEntriesprivate Array<ExportsEntry>opensEntriesprivate IntArrayusesIndicesprivate Array<ProvidesEntry>providesEntriesprivate IntegerattributeNameIndexprivate final Stringname
-
Constructor Summary
Constructors Constructor Description ModuleAttribute(ClassFile classFile)
-
Method Summary
Modifier and Type Method Description final IntegergetModuleNameIndex()Constant pool index of the CONSTANT_Module_info structure containing the module name. final UnitsetModuleNameIndex(Integer moduleNameIndex)Constant pool index of the CONSTANT_Module_info structure containing the module name. final IntegergetModuleFlags()The access flags of the module. final UnitsetModuleFlags(Integer moduleFlags)The access flags of the module. final StringgetModuleFlagsVerbose()final IntegergetModuleVersionIndex()Constant pool index of the CONSTANT_Utf8_info structure containing the module version. final UnitsetModuleVersionIndex(Integer moduleVersionIndex)Constant pool index of the CONSTANT_Utf8_info structure containing the module version. final Array<RequiresEntry>getRequiresEntries()Requires declarations of the module. final UnitsetRequiresEntries(Array<RequiresEntry> requiresEntries)Requires declarations of the module. final Array<ExportsEntry>getExportsEntries()Exports statements of the module. final UnitsetExportsEntries(Array<ExportsEntry> exportsEntries)Exports statements of the module. final Array<ExportsEntry>getOpensEntries()Opens statements of the module. final UnitsetOpensEntries(Array<ExportsEntry> opensEntries)Opens statements of the module. final IntArraygetUsesIndices()Uses statements of the module. final UnitsetUsesIndices(IntArray usesIndices)Uses statements of the module. final Array<ProvidesEntry>getProvidesEntries()Provides statements of the module. final UnitsetProvidesEntries(Array<ProvidesEntry> providesEntries)Provides statements of the module. IntegergetAttributeLength()Get the length of this attribute in bytes. -
Methods inherited from class org.gjt.jclasslib.structures.AttributeInfo
getAttributeNameIndex, getName, setAttributeNameIndex -
Methods inherited from class org.gjt.jclasslib.structures.Structure
read, write -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ModuleAttribute
ModuleAttribute(ClassFile classFile)
-
-
Method Detail
-
getModuleNameIndex
final Integer getModuleNameIndex()
Constant pool index of the CONSTANT_Module_info structure containing the module name.
-
setModuleNameIndex
final Unit setModuleNameIndex(Integer moduleNameIndex)
Constant pool index of the CONSTANT_Module_info structure containing the module name.
-
getModuleFlags
final Integer getModuleFlags()
The access flags of the module. See org.gjt.jclasslib.structures.AccessFlag
-
setModuleFlags
final Unit setModuleFlags(Integer moduleFlags)
The access flags of the module. See org.gjt.jclasslib.structures.AccessFlag
-
getModuleFlagsVerbose
final String getModuleFlagsVerbose()
-
getModuleVersionIndex
final Integer getModuleVersionIndex()
Constant pool index of the CONSTANT_Utf8_info structure containing the module version. Contains 0 if no information is available.
-
setModuleVersionIndex
final Unit setModuleVersionIndex(Integer moduleVersionIndex)
Constant pool index of the CONSTANT_Utf8_info structure containing the module version. Contains 0 if no information is available.
-
getRequiresEntries
final Array<RequiresEntry> getRequiresEntries()
Requires declarations of the module.
-
setRequiresEntries
final Unit setRequiresEntries(Array<RequiresEntry> requiresEntries)
Requires declarations of the module.
-
getExportsEntries
final Array<ExportsEntry> getExportsEntries()
Exports statements of the module.
-
setExportsEntries
final Unit setExportsEntries(Array<ExportsEntry> exportsEntries)
Exports statements of the module.
-
getOpensEntries
final Array<ExportsEntry> getOpensEntries()
Opens statements of the module.
-
setOpensEntries
final Unit setOpensEntries(Array<ExportsEntry> opensEntries)
Opens statements of the module.
-
getUsesIndices
final IntArray getUsesIndices()
Uses statements of the module. Contains the indices of CONSTANT_Class_info structures in the constant pool.
-
setUsesIndices
final Unit setUsesIndices(IntArray usesIndices)
Uses statements of the module. Contains the indices of CONSTANT_Class_info structures in the constant pool.
-
getProvidesEntries
final Array<ProvidesEntry> getProvidesEntries()
Provides statements of the module.
-
setProvidesEntries
final Unit setProvidesEntries(Array<ProvidesEntry> providesEntries)
Provides statements of the module.
-
getAttributeLength
Integer getAttributeLength()
Get the length of this attribute in bytes.
-
-
-
-