public class RegexCompilerWithFallback extends Object implements RegexCompiler
| Constructor and Description |
|---|
RegexCompilerWithFallback(RegexCompiler mainCompiler,
com.oracle.truffle.api.interop.TruffleObject fallbackCompiler) |
| Modifier and Type | Method and Description |
|---|---|
Object |
compile(RegexSource regexSource)
Uses the compiler to try and compile the regular expression described in
source. |
public RegexCompilerWithFallback(RegexCompiler mainCompiler, com.oracle.truffle.api.interop.TruffleObject fallbackCompiler)
public Object compile(RegexSource regexSource) throws RegexSyntaxException, UnsupportedRegexException
RegexCompilersource.compile in interface RegexCompilerCompiledRegexObject or a TruffleObject compatible to
RegexObjectRegexSyntaxException - if the engine discovers a syntax error in the regular expressionUnsupportedRegexException - if the regular expression is not supported by the engine