public enum PatternMessage extends java.lang.Enum<PatternMessage>
PatternParseException
when there is a parse failure.Modifier and Type | Field and Description |
---|---|
private java.lang.String |
message |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatMessage(java.lang.Object... inserts) |
static PatternMessage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PatternMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PatternMessage MISSING_CLOSE_CAPTURE
public static final PatternMessage MISSING_OPEN_CAPTURE
public static final PatternMessage ILLEGAL_NESTED_CAPTURE
public static final PatternMessage CANNOT_HAVE_ADJACENT_CAPTURES
public static final PatternMessage ILLEGAL_CHARACTER_AT_START_OF_CAPTURE_DESCRIPTOR
public static final PatternMessage ILLEGAL_CHARACTER_IN_CAPTURE_DESCRIPTOR
public static final PatternMessage NO_MORE_DATA_EXPECTED_AFTER_CAPTURE_THE_REST
public static final PatternMessage BADLY_FORMED_CAPTURE_THE_REST
public static final PatternMessage MISSING_REGEX_CONSTRAINT
public static final PatternMessage ILLEGAL_DOUBLE_CAPTURE
public static final PatternMessage JDK_PATTERN_SYNTAX_EXCEPTION
public static final PatternMessage CAPTURE_ALL_IS_STANDALONE_CONSTRUCT
public static PatternMessage[] values()
for (PatternMessage c : PatternMessage.values()) System.out.println(c);
public static PatternMessage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String formatMessage(java.lang.Object... inserts)