public static enum Pattern.Op extends Enum<Pattern.Op>
Pattern instances.| Enum Constant and Description |
|---|
ANCHOR_END
Anchor for end "$".
|
ANCHOR_START
Anchor for start "^".
|
OPTIONAL
Pattern that matches a pattern one time or zero times.
|
OR
Pattern that matches one pattern or another.
|
PLUS
Pattern that matches a pattern repeated one or more times.
|
REPEAT
Pattern that matches a pattern repeated between
minRepeat
and maxRepeat times. |
SEQ
Pattern that matches one pattern followed by another.
|
STAR
Pattern that matches a pattern repeated zero or more times.
|
SYMBOL
A leaf pattern, consisting of a single symbol.
|
| Modifier and Type | Method and Description |
|---|---|
static Pattern.Op |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pattern.Op[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pattern.Op SYMBOL
public static final Pattern.Op ANCHOR_START
public static final Pattern.Op ANCHOR_END
public static final Pattern.Op SEQ
public static final Pattern.Op OR
public static final Pattern.Op STAR
public static final Pattern.Op PLUS
public static final Pattern.Op REPEAT
minRepeat
and maxRepeat times.public static final Pattern.Op OPTIONAL
public static Pattern.Op[] values()
for (Pattern.Op c : Pattern.Op.values()) System.out.println(c);
public static Pattern.Op valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2012-2022 Apache Software Foundation. All Rights Reserved.