Package org.gnome.glib
Enum Class RegexError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<RegexError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum RegexError
extends Enum<RegexError>
implements Enumeration
Error codes returned by regular expressions functions.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAssertion expected after "(?(".the backtracing control verb used does not allow an argument.the backtracing control verb requires an argument.the character value in the \\\\u sequence is too large.Compilation of the regular expression failed.Repeating a "DEFINE" group is not allowed.Two named subpatterns have the same name.Regular expression too large.different names for subpatterns of the same number are not allowed.Character value in "\\\\x{...}" sequence is too large.Inconsistent newline options.Reference to non-existent subpattern.Recursive call could loop indefinitely.Internal error of the regular expression engine.Invalid condition "(?(0)"."\\\\c" must be followed by an ASCII character.In JavaScript compatibility mode, "[" is an invalid data character.Invalid escape sequence in character class.Octal value is greater than "\\\\377".relative reference must not be zero.Malformed number or name after "(?(".Malformed "\\\\P" or "\\\\p" sequence.The match process failed.Failed to get memory."\\\\g" is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number."\\\\c" at end of pattern.Missing digit."\\\\k" is not followed by a braced, angle-bracketed, or quoted name.Missing subpattern name.Missing terminator in subpattern name.the name is too long in "(*MARK)", "(*PRUNE)", "(*SKIP)", or "(*THEN)"."\\\\N" is not supported in a class.Nothing to repeat.number is too big in escape sequence.Optimization of the regular expression failed.POSIX collating elements are not supported.POSIX named classes are supported only within a class.Number too big in "{}" quantifier.Numbers out of order in "{}" quantifier.Range out of order in character class.Replacement failed due to an ill-formed replacement string.\\\\C not allowed in lookbehind assertion."\\\\" at end of pattern.Subpattern name is too long (maximum 32 characters)."DEFINE" group contains more than one branch.Conditional group contains more than two branches.too many forward references.Too many named subpatterns (maximum 10,000).unknown backtracing control verb.Unknown POSIX class name.Unknown property name after "\\\\P" or "\\\\p".Missing terminating ")" or ")" without opening "(".Unrecognized character after "(?", "(?<" or "(?P".Unrecognized character follows "\\\\".Missing terminating "]" for character class.Missing terminating ")" after comment.Lookbehind assertion is not fixed length. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic RegexError
of
(int value) Create a new RegexError for the provided valuestatic RegexError
Returns the enum constant of this class with the specified name.static RegexError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COMPILE
Compilation of the regular expression failed. -
OPTIMIZE
Optimization of the regular expression failed. -
REPLACE
Replacement failed due to an ill-formed replacement string. -
MATCH
The match process failed. -
INTERNAL
Internal error of the regular expression engine. Since 2.16 -
STRAY_BACKSLASH
"\\\\" at end of pattern. Since 2.16 -
MISSING_CONTROL_CHAR
"\\\\c" at end of pattern. Since 2.16 -
UNRECOGNIZED_ESCAPE
Unrecognized character follows "\\\\". Since 2.16 -
QUANTIFIERS_OUT_OF_ORDER
Numbers out of order in "{}" quantifier. Since 2.16 -
QUANTIFIER_TOO_BIG
Number too big in "{}" quantifier. Since 2.16 -
UNTERMINATED_CHARACTER_CLASS
Missing terminating "]" for character class. Since 2.16 -
INVALID_ESCAPE_IN_CHARACTER_CLASS
Invalid escape sequence in character class. Since 2.16 -
RANGE_OUT_OF_ORDER
Range out of order in character class. Since 2.16 -
NOTHING_TO_REPEAT
Nothing to repeat. Since 2.16 -
UNRECOGNIZED_CHARACTER
Unrecognized character after "(?", "(?<" or "(?P". Since 2.16 -
POSIX_NAMED_CLASS_OUTSIDE_CLASS
POSIX named classes are supported only within a class. Since 2.16 -
UNMATCHED_PARENTHESIS
Missing terminating ")" or ")" without opening "(". Since 2.16 -
INEXISTENT_SUBPATTERN_REFERENCE
Reference to non-existent subpattern. Since 2.16 -
UNTERMINATED_COMMENT
Missing terminating ")" after comment. Since 2.16 -
EXPRESSION_TOO_LARGE
Regular expression too large. Since 2.16 -
MEMORY_ERROR
Failed to get memory. Since 2.16 -
VARIABLE_LENGTH_LOOKBEHIND
Lookbehind assertion is not fixed length. Since 2.16 -
MALFORMED_CONDITION
Malformed number or name after "(?(". Since 2.16 -
TOO_MANY_CONDITIONAL_BRANCHES
Conditional group contains more than two branches. Since 2.16 -
ASSERTION_EXPECTED
Assertion expected after "(?(". Since 2.16 -
UNKNOWN_POSIX_CLASS_NAME
Unknown POSIX class name. Since 2.16 -
POSIX_COLLATING_ELEMENTS_NOT_SUPPORTED
POSIX collating elements are not supported. Since 2.16 -
HEX_CODE_TOO_LARGE
Character value in "\\\\x{...}" sequence is too large. Since 2.16 -
INVALID_CONDITION
Invalid condition "(?(0)". Since 2.16 -
SINGLE_BYTE_MATCH_IN_LOOKBEHIND
\\\\C not allowed in lookbehind assertion. Since 2.16 -
INFINITE_LOOP
Recursive call could loop indefinitely. Since 2.16 -
MISSING_SUBPATTERN_NAME_TERMINATOR
Missing terminator in subpattern name. Since 2.16 -
DUPLICATE_SUBPATTERN_NAME
Two named subpatterns have the same name. Since 2.16 -
MALFORMED_PROPERTY
Malformed "\\\\P" or "\\\\p" sequence. Since 2.16 -
UNKNOWN_PROPERTY
Unknown property name after "\\\\P" or "\\\\p". Since 2.16 -
SUBPATTERN_NAME_TOO_LONG
Subpattern name is too long (maximum 32 characters). Since 2.16 -
TOO_MANY_SUBPATTERNS
Too many named subpatterns (maximum 10,000). Since 2.16 -
INVALID_OCTAL_VALUE
Octal value is greater than "\\\\377". Since 2.16 -
TOO_MANY_BRANCHES_IN_DEFINE
"DEFINE" group contains more than one branch. Since 2.16 -
DEFINE_REPETION
Repeating a "DEFINE" group is not allowed. This error is never raised. Since: 2.16 Deprecated: 2.34 -
INCONSISTENT_NEWLINE_OPTIONS
Inconsistent newline options. Since 2.16 -
MISSING_BACK_REFERENCE
"\\\\g" is not followed by a braced, angle-bracketed, or quoted name or number, or by a plain number. Since: 2.16 -
INVALID_RELATIVE_REFERENCE
relative reference must not be zero. Since: 2.34 -
BACKTRACKING_CONTROL_VERB_ARGUMENT_FORBIDDEN
the backtracing control verb used does not allow an argument. Since: 2.34 -
UNKNOWN_BACKTRACKING_CONTROL_VERB
unknown backtracing control verb. Since: 2.34 -
NUMBER_TOO_BIG
number is too big in escape sequence. Since: 2.34 -
MISSING_SUBPATTERN_NAME
Missing subpattern name. Since: 2.34 -
MISSING_DIGIT
Missing digit. Since 2.34 -
INVALID_DATA_CHARACTER
In JavaScript compatibility mode, "[" is an invalid data character. Since: 2.34 -
EXTRA_SUBPATTERN_NAME
different names for subpatterns of the same number are not allowed. Since: 2.34 -
BACKTRACKING_CONTROL_VERB_ARGUMENT_REQUIRED
the backtracing control verb requires an argument. Since: 2.34 -
INVALID_CONTROL_CHAR
"\\\\c" must be followed by an ASCII character. Since: 2.34 -
MISSING_NAME
"\\\\k" is not followed by a braced, angle-bracketed, or quoted name. Since: 2.34 -
NOT_SUPPORTED_IN_CLASS
"\\\\N" is not supported in a class. Since: 2.34 -
TOO_MANY_FORWARD_REFERENCES
too many forward references. Since: 2.34 -
NAME_TOO_LONG
the name is too long in "(*MARK)", "(*PRUNE)", "(*SKIP)", or "(*THEN)". Since: 2.34 -
CHARACTER_VALUE_TOO_LARGE
the character value in the \\\\u sequence is too large. Since: 2.34
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
of
Create a new RegexError for the provided value- Parameters:
value
- the enum value- Returns:
- the enum for the provided value
-
getValue
public int getValue()Get the numeric value of this enum- Specified by:
getValue
in interfaceEnumeration
- Returns:
- the enum value
-