Package org.apache.calcite.runtime
Enum Pattern.Op
- All Implemented Interfaces:
Serializable
,Comparable<Pattern.Op>
,Constable
- Enclosing interface:
Pattern
Operator that constructs composite
Pattern
instances.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAnchor for end "$".Anchor for start "^".Pattern that matches a pattern one time or zero times.Pattern that matches one pattern or another.Pattern that matches a pattern repeated one or more times.Pattern that matches a pattern repeated betweenminRepeat
andmaxRepeat
times.Pattern that matches one pattern followed by another.Pattern that matches a pattern repeated zero or more times.A leaf pattern, consisting of a single symbol. -
Method Summary
Modifier and TypeMethodDescriptionstatic Pattern.Op
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.
-
Enum Constant Details
-
SYMBOL
A leaf pattern, consisting of a single symbol. -
ANCHOR_START
Anchor for start "^". -
ANCHOR_END
Anchor for end "$". -
SEQ
Pattern that matches one pattern followed by another. -
OR
Pattern that matches one pattern or another. -
STAR
Pattern that matches a pattern repeated zero or more times. -
PLUS
Pattern that matches a pattern repeated one or more times. -
REPEAT
Pattern that matches a pattern repeated betweenminRepeat
andmaxRepeat
times. -
OPTIONAL
Pattern that matches a pattern one time or zero times.
-
-
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
-