public enum GroupType extends Enum<GroupType>
| Enum Constant and Description |
|---|
CAPTURING_GROUP |
NEGATIVE_LOOKAHEAD |
NEGATIVE_LOOKBEHIND |
NON_CAPTURING_GROUP |
POSITIVE_LOOKAHEAD |
POSITIVE_LOOKBEHIND |
| Modifier and Type | Method and Description |
|---|---|
static GroupType |
forPrefix(String s) |
String |
getClose() |
String |
getOpen() |
static GroupType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GroupType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GroupType CAPTURING_GROUP
public static final GroupType NON_CAPTURING_GROUP
public static final GroupType POSITIVE_LOOKAHEAD
public static final GroupType NEGATIVE_LOOKAHEAD
public static final GroupType POSITIVE_LOOKBEHIND
public static final GroupType NEGATIVE_LOOKBEHIND
public static GroupType[] values()
for (GroupType c : GroupType.values()) System.out.println(c);
public static GroupType 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 nullpublic String getOpen()
public String getClose()
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.