public final class TRegexCompiler extends Object implements RegexCompiler
| Constructor and Description |
|---|
TRegexCompiler(RegexLanguage language,
RegexOptions options) |
| Modifier and Type | Method and Description |
|---|---|
CompiledRegexObject |
compile(RegexSource source)
Uses the compiler to try and compile the regular expression described in
source. |
TRegexBacktrackingNFAExecutorNode |
compileBacktrackingExecutor(NFA nfa) |
TRegexDFAExecutorNode |
compileEagerDFAExecutor(RegexSource source) |
TRegexExecRootNode.LazyCaptureGroupRegexSearchNode |
compileLazyDFAExecutor(NFA nfa,
TRegexExecRootNode rootNode,
boolean allowSimpleCG) |
RegexLanguage |
getLanguage() |
RegexOptions |
getOptions() |
public TRegexCompiler(RegexLanguage language, RegexOptions options)
public RegexLanguage getLanguage()
public RegexOptions getOptions()
public CompiledRegexObject compile(RegexSource source) throws RegexSyntaxException
RegexCompilersource.compile in interface RegexCompilerCompiledRegexObject or a TruffleObject compatible to
RegexObjectRegexSyntaxException - if the engine discovers a syntax error in the regular expressionpublic TRegexDFAExecutorNode compileEagerDFAExecutor(RegexSource source)
public TRegexExecRootNode.LazyCaptureGroupRegexSearchNode compileLazyDFAExecutor(NFA nfa, TRegexExecRootNode rootNode, boolean allowSimpleCG)
public TRegexBacktrackingNFAExecutorNode compileBacktrackingExecutor(NFA nfa)