Class Jmod.ResolutionWarningReason

  • Enclosing class:
    Jmod

    public static class Jmod.ResolutionWarningReason
    extends EnumeratedAttribute
    Permissible reasons for jmod creation to emit warnings.
    • Field Detail

      • DEPRECATED

        public static final java.lang.String DEPRECATED
        String value indicating warnings are emitted for modules marked as deprecated (but not deprecated for removal).
        See Also:
        Constant Field Values
      • LEAVING

        public static final java.lang.String LEAVING
        String value indicating warnings are emitted for modules marked as deprecated for removal.
        See Also:
        Constant Field Values
      • INCUBATING

        public static final java.lang.String INCUBATING
        String value indicating warnings are emitted for modules designated as "incubating" in the JDK.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResolutionWarningReason

        public ResolutionWarningReason()
    • Method Detail

      • getValues

        public java.lang.String[] getValues()
        Description copied from class: EnumeratedAttribute
        This is the only method a subclass needs to implement.
        Specified by:
        getValues in class EnumeratedAttribute
        Returns:
        an array holding all possible values of the enumeration. The order of elements must be fixed so that indexOfValue(String) always return the same index for the same value.
      • valueOf

        public static Jmod.ResolutionWarningReason valueOf​(java.lang.String s)
        Converts a string to a ResolutionWarningReason instance.
        Parameters:
        s - string to convert
        Returns:
        ResolutionWarningReason instance corresponding to string argument
        Throws:
        BuildException - if argument is not a valid ResolutionWarningReason value