Package 

Class RequiresEntry

  • All Implemented Interfaces:

    
    public final class RequiresEntry
    extends SubStructure
                        

    Describes a "requires" statement in a Module attribute structure.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      RequiresEntry()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getIndex() The index of the CONSTANT_Module_info structure that is required.
      final Unit setIndex(Integer index) The index of the CONSTANT_Module_info structure that is required.
      final Integer getFlags() The flags of the requires statement.
      final Unit setFlags(Integer flags) The flags of the requires statement.
      final Integer getVersionIndex() Constant pool index of the CONSTANT_Utf8_info structure containing the required module version.
      final Unit setVersionIndex(Integer versionIndex) Constant pool index of the CONSTANT_Utf8_info structure containing the required module version.
      final String getFlagsVerbose()
      Integer getLength() The length of the structure in bytes.
      • 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

      • RequiresEntry

        RequiresEntry()
    • Method Detail

      • getIndex

         final Integer getIndex()

        The index of the CONSTANT_Module_info structure that is required.

      • 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.