Class AbstractRegexParseStrategy
- java.lang.Object
-
- org.apache.flink.table.planner.parse.AbstractRegexParseStrategy
-
- All Implemented Interfaces:
ExtendedParseStrategy
- Direct Known Subclasses:
ClearOperationParseStrategy
,HelpOperationParseStrategy
,QuitOperationParseStrategy
,ResetOperationParseStrategy
,SetOperationParseStrategy
public abstract class AbstractRegexParseStrategy extends Object implements ExtendedParseStrategy
Strategy to parse statement toOperation
by regex.
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
DEFAULT_PATTERN_FLAGS
protected Pattern
pattern
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractRegexParseStrategy(Pattern pattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
match(String statement)
Determine whether the input statement is satisfied the strategy.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.flink.table.planner.parse.ExtendedParseStrategy
convert, getHints
-
-
-
-
Field Detail
-
DEFAULT_PATTERN_FLAGS
protected static final int DEFAULT_PATTERN_FLAGS
- See Also:
- Constant Field Values
-
pattern
protected Pattern pattern
-
-
Constructor Detail
-
AbstractRegexParseStrategy
protected AbstractRegexParseStrategy(Pattern pattern)
-
-
Method Detail
-
match
public boolean match(String statement)
Description copied from interface:ExtendedParseStrategy
Determine whether the input statement is satisfied the strategy.- Specified by:
match
in interfaceExtendedParseStrategy
-
-