Class RequiresInfo

java.lang.Object
proguard.util.SimpleProcessable
proguard.classfile.attribute.module.RequiresInfo
All Implemented Interfaces:
Serializable, Processable

public class RequiresInfo extends SimpleProcessable
Representation of a Requires entry in a Module attribute.
See Also:
  • Field Details

    • u2requiresIndex

      public int u2requiresIndex
    • u2requiresFlags

      public int u2requiresFlags
    • u2requiresVersionIndex

      public int u2requiresVersionIndex
  • Constructor Details

    • RequiresInfo

      public RequiresInfo()
      Creates an uninitialized RequiresInfo.
    • RequiresInfo

      public RequiresInfo(int u2requiresIndex, int u2requiresFlags, int u2requiresVersionIndex)
      Creates an uninitialized RequiresInfo.
  • Method Details

    • moduleAccept

      public void moduleAccept(Clazz clazz, ConstantVisitor constantVisitor)
      Applies the given constant pool visitor to the module constant of the module, if any.
    • versionAccept

      public void versionAccept(Clazz clazz, ConstantVisitor constantVisitor)
      Applies the given constant pool visitor to the Utf8 constant of the version, if any.