Package org.apache.calcite.runtime
Class Pattern.PatternBuilder
java.lang.Object
org.apache.calcite.runtime.Pattern.PatternBuilder
- Enclosing interface:
Pattern
Builds a pattern expression.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the resulting automaton.build()
Returns the resulting pattern.optional()
or()
Creates a pattern that matches either of the two patterns at the top of the stack, and pushes it onto the stack.plus()
Creates a pattern that matches the patterns at the top of the stack one or more times, and pushes it onto the stack.repeat
(int minRepeat, int maxRepeat) seq()
Creates a pattern that matches the two patterns at the top of the stack in sequence, and pushes it onto the stack.star()
Creates a pattern that matches the patterns at the top of the stack zero or more times, and pushes it onto the stack.Creates a pattern that matches symbol, and pushes it onto the stack.
-
Method Details
-
build
Returns the resulting pattern. -
automaton
Returns the resulting automaton. -
symbol
Creates a pattern that matches symbol, and pushes it onto the stack.- See Also:
-
seq
Creates a pattern that matches the two patterns at the top of the stack in sequence, and pushes it onto the stack. -
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
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
-
optional
-