Enum Pattern.Op

java.lang.Object
java.lang.Enum<Pattern.Op>
org.apache.calcite.runtime.Pattern.Op
All Implemented Interfaces:
Serializable, Comparable<Pattern.Op>, Constable
Enclosing interface:
Pattern

public static enum Pattern.Op extends Enum<Pattern.Op>
Operator that constructs composite Pattern instances.
  • Enum Constant Details

    • SYMBOL

      public static final Pattern.Op SYMBOL
      A leaf pattern, consisting of a single symbol.
    • ANCHOR_START

      public static final Pattern.Op ANCHOR_START
      Anchor for start "^".
    • ANCHOR_END

      public static final Pattern.Op ANCHOR_END
      Anchor for end "$".
    • SEQ

      public static final Pattern.Op SEQ
      Pattern that matches one pattern followed by another.
    • OR

      public static final Pattern.Op OR
      Pattern that matches one pattern or another.
    • STAR

      public static final Pattern.Op STAR
      Pattern that matches a pattern repeated zero or more times.
    • PLUS

      public static final Pattern.Op PLUS
      Pattern that matches a pattern repeated one or more times.
    • REPEAT

      public static final Pattern.Op REPEAT
      Pattern that matches a pattern repeated between minRepeat and maxRepeat times.
    • OPTIONAL

      public static final Pattern.Op OPTIONAL
      Pattern that matches a pattern one time or zero times.
  • Method Details

    • values

      public static Pattern.Op[] 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

      public static Pattern.Op valueOf(String name)
      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 name
      NullPointerException - if the argument is null