Package jflex.l10n

Enum ErrorMessages

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ErrorMessages>

    public enum ErrorMessages
    extends java.lang.Enum<ErrorMessages>
    Central enum for all kinds of JFlex messages.

    The enum values are expected to be keys in the Messages.properties resource bundle.

    Version:
    JFlex 1.9.1
    • Field Detail

      • configurableWarnings

        private static final java.util.Set<ErrorMessages> configurableWarnings
      • resourceBundle

        private static java.util.ResourceBundle resourceBundle
    • Constructor Detail

      • ErrorMessages

        private ErrorMessages()
    • Method Detail

      • values

        public static ErrorMessages[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ErrorMessages c : ErrorMessages.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ErrorMessages valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • get

        public static java.lang.String get​(ErrorMessages msg)
        Returns a localized representation of the error messages.
        Parameters:
        msg - a ErrorMessages object.
        Returns:
        a String representation of the errors.
      • get

        public static java.lang.String get​(ErrorMessages msg,
                                           java.lang.Object... args)
        Returns an error message.
        Parameters:
        msg - a ErrorMessages containing the format string.
        Returns:
        a String object.
      • isConfigurableWarning

        public static boolean isConfigurableWarning​(ErrorMessages msg)
        Check whether a warning is configurable.
        Parameters:
        msg - the warning to check