Class Pattern.PatternBuilder

java.lang.Object
org.apache.calcite.runtime.Pattern.PatternBuilder
Enclosing interface:
Pattern

public static class Pattern.PatternBuilder extends Object
Builds a pattern expression.
  • Method Details

    • build

      public Pattern build()
      Returns the resulting pattern.
    • automaton

      public Automaton automaton()
      Returns the resulting automaton.
    • symbol

      public Pattern.PatternBuilder symbol(String symbolName)
      Creates a pattern that matches symbol, and pushes it onto the stack.
      See Also:
    • seq

      public Pattern.PatternBuilder seq()
      Creates a pattern that matches the two patterns at the top of the stack in sequence, and pushes it onto the stack.
    • star

      public Pattern.PatternBuilder star()
      Creates a pattern that matches the patterns at the top of the stack zero or more times, and pushes it onto the stack.
    • plus

      public Pattern.PatternBuilder plus()
      Creates a pattern that matches the patterns at the top of the stack one or more times, and pushes it onto the stack.
    • or

      Creates a pattern that matches either of the two patterns at the top of the stack, and pushes it onto the stack.
    • repeat

      public Pattern.PatternBuilder repeat(int minRepeat, int maxRepeat)
    • optional

      public Pattern.PatternBuilder optional()