Enum ErrorMessages
- All Implemented Interfaces:
Serializable, Comparable<ErrorMessages>, java.lang.constant.Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Set<ErrorMessages> private static ResourceBundle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringget(ErrorMessages msg) Returns a localized representation of the error messages.static Stringget(ErrorMessages msg, Object... args) Returns an error message.static booleanCheck whether a warning is configurable.static ErrorMessagesReturns the enum constant of this type with the specified name.static ErrorMessages[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNTERMINATED_STR
-
EOF_WO_ACTION
-
UNKNOWN_OPTION
-
UNEXPECTED_CHAR
-
UNEXPECTED_NL
-
LEXSTATE_UNDECL
-
REPEAT_ZERO
-
REPEAT_GREATER
-
REGEXP_EXPECTED
-
MACRO_UNDECL
-
CHARSET_2_SMALL
-
CS2SMALL_STRING
-
CS2SMALL_CHAR
-
CHARCLASS_MACRO
-
UNKNOWN_SYNTAX
-
SYNTAX_ERROR
-
NOT_AT_BOL
-
EOF_IN_ACTION
-
EOF_IN_COMMENT
-
EOF_IN_STRING
-
EOF_IN_MACROS
-
EOF_IN_STATES
-
EOF_IN_REGEXP
-
UNEXPECTED_EOF
-
NO_LEX_SPEC
-
NO_LAST_ACTION
-
NO_DIRECTORY
-
NO_SKEL_FILE
-
WRONG_SKELETON
-
OUT_OF_MEMORY
-
QUIL_INITTHROW
-
QUIL_EOFTHROW
-
QUIL_YYLEXTHROW
-
ZERO_STATES
-
NO_BUFFER_SIZE
-
NOT_READABLE
-
FILE_CYCLE
-
FILE_WRITE
-
QUIL_SCANERROR
-
NEVER_MATCH
-
QUIL_THROW
-
EOL_IN_CHARCLASS
-
QUIL_CUPSYM
-
CUPSYM_AFTER_CUP
-
ALREADY_RUNNING
-
CANNOT_READ_SKEL
-
READING_SKEL
-
SKEL_IO_ERROR
-
SKEL_IO_ERROR_DEFAULT
-
READING
-
CANNOT_OPEN
-
NFA_IS
-
NFA_STATES
-
DFA_TOOK
-
DFA_IS
-
MIN_TOOK
-
MIN_DFA_IS
-
WRITE_TOOK
-
TOTAL_TIME
-
IO_ERROR
-
THIS_IS_JFLEX
-
UNKNOWN_COMMANDLINE
-
MACRO_CYCLE
-
MACRO_DEF_MISSING
-
PARSING_TOOK
-
NFA_TOOK
-
LOOKAHEAD_NEEDS_ACTION
-
EMPTY_MATCH
-
EMPTY_MATCH_LOOK
-
CTOR_ARG
-
CTOR_DEBUG
-
INT_AND_TYPE
-
UNSUPPORTED_UNICODE_VERSION
-
UNSUPPORTED_UNICODE_VERSION_SUPPORTED_ARE
-
INVALID_UNICODE_PROPERTY
-
DOT_BAR_NEWLINE_DOES_NOT_MATCH_ALL_CHARS
-
PROPS_ARG_REQUIRES_UNICODE_VERSION
-
IMPOSSIBLE_CHARCLASS_RANGE
-
CODEPOINT_OUT_OF_RANGE
-
NO_ENCODING
-
CHARSET_NOT_SUPPORTED
-
DOUBLE_CHARSET
-
NOT_CHARCLASS
-
MACRO_UNUSED
-
UNKNOWN_WARNING
-
NOT_A_WARNING_ID
-
UNICODE_TOO_LONG
-
TOKEN_SIZE_LIMIT
-
-
Field Details
-
configurableWarnings
-
resourceBundle
-
-
Constructor Details
-
ErrorMessages
private ErrorMessages()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
get
Returns a localized representation of the error messages.- Parameters:
msg- aErrorMessagesobject.- Returns:
- a
Stringrepresentation of the errors.
-
get
Returns an error message.- Parameters:
msg- aErrorMessagescontaining the format string.- Returns:
- a
Stringobject.
-
isConfigurableWarning
Check whether a warning is configurable.- Parameters:
msg- the warning to check
-