Package org.apache.lucene.util.automaton
Enum RegExp.Kind
- All Implemented Interfaces:
Serializable
,Comparable<RegExp.Kind>
- Enclosing class:
- RegExp
The type of expression represented by a RegExp node.
-
Enum Constant Summary
Enum ConstantDescriptionAny Character allowedAny string allowedAn Automaton expressionA CharacterA Character rangeThe complement of an expressionA sequence of two expressionsAn empty expressionThe intersection of two expressionsAn Interval expressionAn optional expressionAn expression for a pre-defined class e.g.An 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 type with the specified name.static RegExp.Kind[]
values()
Returns an array containing the constants of this enum type, 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 an expression -
REGEXP_CHAR
A Character -
REGEXP_CHAR_RANGE
A Character range -
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_PRE_CLASS
An expression for a pre-defined class e.g. \w
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-