Enum Class RegexPattern.PosixCharClass
java.lang.Object
java.lang.Enum<RegexPattern.PosixCharClass>
com.google.common.labs.regex.RegexPattern.PosixCharClass
- All Implemented Interfaces:
RegexPattern
,RegexPattern.CharacterProperty
,RegexPattern.CharSetElement
,Serializable
,Comparable<RegexPattern.PosixCharClass>
,Constable
- Enclosing interface:
RegexPattern
public static enum RegexPattern.PosixCharClass
extends Enum<RegexPattern.PosixCharClass>
implements RegexPattern.CharacterProperty
Represents a POSIX character class inside a CharacterSet: e.g. \p{Lower}
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern
RegexPattern.Alternation, RegexPattern.Anchor, RegexPattern.AtLeast, RegexPattern.AtMost, RegexPattern.CharacterProperty, RegexPattern.CharacterSet, RegexPattern.CharRange, RegexPattern.CharSetElement, RegexPattern.Group, RegexPattern.Limited, RegexPattern.Literal, RegexPattern.LiteralChar, RegexPattern.Lookaround, RegexPattern.PosixCharClass, RegexPattern.PredefinedCharClass, RegexPattern.Quantified, RegexPattern.Quantifier, RegexPattern.Sequence, RegexPattern.UnicodeProperty
Nested classes/interfaces inherited from interface com.google.common.labs.regex.RegexPattern.CharacterProperty
RegexPattern.CharacterProperty.Negated
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns alternative name for this class, such as "lower" for "Lower".names()
toString()
static RegexPattern.PosixCharClass
Returns the enum constant of this class with the specified name.static RegexPattern.PosixCharClass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface com.google.common.labs.regex.RegexPattern
followedBy, notFollowedBy, notPrecededBy, precededBy
Methods inherited from interface com.google.common.labs.regex.RegexPattern.CharacterProperty
negated
-
Enum Constant Details
-
LOWER
-
UPPER
-
ASCII
-
ALPHA
-
DIGIT
-
ALNUM
-
PUNCT
-
GRAPH
-
PRINT
-
BLANK
-
CNTRL
-
XDIGIT
-
SPACE
-
-
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
-
propertyName
- Specified by:
propertyName
in interfaceRegexPattern.CharacterProperty
-
javaStyleName
Returns alternative name for this class, such as "lower" for "Lower". -
names
-
toString
- Overrides:
toString
in classEnum<RegexPattern.PosixCharClass>
-