public final class TRegexCompiler extends Object
| Constructor and Description |
|---|
TRegexCompiler() |
| Modifier and Type | Method and Description |
|---|---|
static RegexObject |
compile(RegexLanguage language,
RegexSource source)
Try and compile the regular expression described in
source. |
static TRegexBacktrackingNFAExecutorNode |
compileBacktrackingExecutor(RegexLanguage language,
NFA nfa) |
static TRegexDFAExecutorNode |
compileEagerDFAExecutor(RegexLanguage language,
RegexSource source) |
static TRegexExecNode.LazyCaptureGroupRegexSearchNode |
compileLazyDFAExecutor(RegexLanguage language,
NFA nfa,
TRegexExecNode rootNode,
boolean allowSimpleCG) |
public static RegexObject compile(RegexLanguage language, RegexSource source) throws RegexSyntaxException
source.RegexSyntaxException - if the engine discovers a syntax error in the regular expressionUnsupportedRegexException - if the regular expression is not supported by the enginepublic static TRegexDFAExecutorNode compileEagerDFAExecutor(RegexLanguage language, RegexSource source)
public static TRegexExecNode.LazyCaptureGroupRegexSearchNode compileLazyDFAExecutor(RegexLanguage language, NFA nfa, TRegexExecNode rootNode, boolean allowSimpleCG)
public static TRegexBacktrackingNFAExecutorNode compileBacktrackingExecutor(RegexLanguage language, NFA nfa)