Package org.apache.lucene.util.automaton
Enum Class RegExp.Kind
- All Implemented Interfaces:
Serializable
,Comparable<RegExp.Kind>
,Constable
- Enclosing class:
RegExp
The type of expression represented by a RegExp node.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAny Character allowedAny string allowedAn Automaton expressionA CharacterA Character class (list of ranges)A Character rangeThe complement of a character classA sequence of two expressionsDeprecated.Will be removed in Lucene 11An empty expressionThe intersection of two expressionsAn Interval expressionAn optional expressionAn expression that repeatsAn expression that repeats a minimum number of timesAn expression that repeats a minimum and maximum number of timesA string expressionThe union of two expressions -
Method Summary
Modifier and TypeMethodDescriptionstatic RegExp.Kind
Returns the enum constant of this class with the specified name.static RegExp.Kind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REGEXP_UNION
The union of two expressions -
REGEXP_CONCATENATION
A sequence of two expressions -
REGEXP_INTERSECTION
The intersection of two expressions -
REGEXP_OPTIONAL
An optional expression -
REGEXP_REPEAT
An expression that repeats -
REGEXP_REPEAT_MIN
An expression that repeats a minimum number of times -
REGEXP_REPEAT_MINMAX
An expression that repeats a minimum and maximum number of times -
REGEXP_COMPLEMENT
The complement of a character class -
REGEXP_CHAR
A Character -
REGEXP_CHAR_RANGE
A Character range -
REGEXP_CHAR_CLASS
A Character class (list of ranges) -
REGEXP_ANYCHAR
Any Character allowed -
REGEXP_EMPTY
An empty expression -
REGEXP_STRING
A string expression -
REGEXP_ANYSTRING
Any string allowed -
REGEXP_AUTOMATON
An Automaton expression -
REGEXP_INTERVAL
An Interval expression -
REGEXP_DEPRECATED_COMPLEMENT
Deprecated.Will be removed in Lucene 11The complement of an expression.
-
-
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
-