Class ModuleDescription.Requires.Simple

    • Field Detail

      • version

        @MaybeNull
        private final java.lang.String version
        The version of the required module.
      • modifiers

        private final int modifiers
        The modifiers for this requires declaration.
    • Constructor Detail

      • Simple

        public Simple​(@MaybeNull
                      java.lang.String version,
                      int modifiers)
        Creates a new simple requires declaration.
        Parameters:
        version - The version of the required module or null if no specific version is required.
        modifiers - The modifiers for this requires declaration.
    • Method Detail

      • getVersion

        @MaybeNull
        public java.lang.String getVersion()
        Returns the version of the required module.
        Returns:
        The required module's version or null if no specific version is required.
      • getModifiers

        public int getModifiers()
        Returns the modifier that is described by this object.
        Returns:
        The modifier that is described by this object.