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 . |
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
RegexCompiler
source
.compile
in interface RegexCompiler
CompiledRegexObject
or a TruffleObject
compatible to
RegexObject
RegexSyntaxException
- 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)