public abstract class TRegexExecutorNode extends TRegexExecutorBaseNode
| Modifier and Type | Field and Description |
|---|---|
static double |
ASTRAL_PROBABILITY |
static double |
BMP_PROBABILITY |
static double |
CONTINUE_PROBABILITY |
static double |
EXIT_PROBABILITY |
static double |
LATIN1_PROBABILITY |
| Modifier | Constructor and Description |
|---|---|
protected |
TRegexExecutorNode(RegexAST ast,
int numberOfTransitions) |
protected |
TRegexExecutorNode(RegexSource source,
int numberOfCaptureGroups,
int numberOfTransitions) |
protected |
TRegexExecutorNode(TRegexExecutorNode copy) |
| Modifier and Type | Method and Description |
|---|---|
int |
countUpTo(TRegexExecutorLocals locals,
int max,
int nCodePoints,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
com.oracle.truffle.api.profiles.BranchProfile |
getAstralProfile() |
com.oracle.truffle.api.profiles.BranchProfile |
getBMPProfile() |
int |
getInputLength(TRegexExecutorLocals locals)
The length of the
input argument given to
RegexExecNode.execute(VirtualFrame). |
int |
getMaxIndex(TRegexExecutorLocals locals) |
int |
getMinIndex(TRegexExecutorLocals locals) |
int |
getNumberOfCaptureGroups() |
int |
getNumberOfTransitions() |
RegexSource |
getSource() |
void |
inputAdvance(TRegexExecutorLocals locals) |
boolean |
inputAtBegin(TRegexExecutorLocals locals)
Returns
true iff the index is at the beginning of the input string in respect to
TRegexExecutorBaseNode.isForward(). |
boolean |
inputAtEnd(TRegexExecutorLocals locals)
Returns
true iff the index is at the end of the input string in respect to
TRegexExecutorBaseNode.isForward(). |
int |
inputGetCodePointSize(TRegexExecutorLocals locals,
boolean forward,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
int |
inputGetCodePointSize(TRegexExecutorLocals locals,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
boolean |
inputHasNext(TRegexExecutorLocals locals) |
boolean |
inputHasNext(TRegexExecutorLocals locals,
boolean forward) |
boolean |
inputHasNext(TRegexExecutorLocals locals,
int index) |
boolean |
inputHasNext(TRegexExecutorLocals locals,
int index,
boolean forward) |
void |
inputIncNextIndexRaw(TRegexExecutorLocals locals) |
void |
inputIncNextIndexRaw(TRegexExecutorLocals locals,
int offset) |
int |
inputIncRaw(int index) |
int |
inputIncRaw(int index,
int offset) |
static int |
inputIncRaw(int index,
int offset,
boolean forward) |
void |
inputIncRaw(TRegexExecutorLocals locals) |
void |
inputIncRaw(TRegexExecutorLocals locals,
boolean forward) |
void |
inputIncRaw(TRegexExecutorLocals locals,
int offset) |
void |
inputIncRaw(TRegexExecutorLocals locals,
int offset,
boolean forward) |
int |
inputReadAndDecode(TRegexExecutorLocals locals,
int index,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
int |
inputReadAndDecode(TRegexExecutorLocals locals,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
int |
inputReadRaw(TRegexExecutorLocals locals) |
int |
inputReadRaw(TRegexExecutorLocals locals,
boolean forward) |
int |
inputReadRaw(TRegexExecutorLocals locals,
int index) |
int |
inputReadRaw(TRegexExecutorLocals locals,
int index,
boolean forward) |
void |
inputSkip(TRegexExecutorLocals locals,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
protected void |
inputSkipIntl(TRegexExecutorLocals locals,
boolean forward,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
void |
inputSkipReverse(TRegexExecutorLocals locals,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
boolean |
inputUTF16IsHighSurrogate(int c) |
boolean |
inputUTF16IsLowSurrogate(int c) |
int |
inputUTF16ToCodePoint(int highSurrogate,
int lowSurrogate) |
boolean |
isSimpleCG() |
int |
rewindUpTo(TRegexExecutorLocals locals,
int min,
int nCodePoints,
com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange) |
createLocals, createWrapper, execute, getEncoding, getName, getNumberOfStates, isBooleanMatch, isForward, isInstrumentable, isTrivial, isUTF16, isUTF32, isUTF8, shallowCopy, unwrap, writesCaptureGroupsaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringpublic static final double CONTINUE_PROBABILITY
public static final double EXIT_PROBABILITY
public static final double LATIN1_PROBABILITY
public static final double BMP_PROBABILITY
public static final double ASTRAL_PROBABILITY
protected TRegexExecutorNode(RegexAST ast, int numberOfTransitions)
protected TRegexExecutorNode(TRegexExecutorNode copy)
protected TRegexExecutorNode(RegexSource source, int numberOfCaptureGroups, int numberOfTransitions)
public RegexSource getSource()
getSource in class TRegexExecutorBaseNodepublic final int getNumberOfCaptureGroups()
public final int getNumberOfTransitions()
getNumberOfTransitions in class TRegexExecutorBaseNodepublic com.oracle.truffle.api.profiles.BranchProfile getBMPProfile()
public com.oracle.truffle.api.profiles.BranchProfile getAstralProfile()
public int getInputLength(TRegexExecutorLocals locals)
input argument given to
RegexExecNode.execute(VirtualFrame).input argument given to
RegexExecNode.execute(VirtualFrame).public boolean inputAtBegin(TRegexExecutorLocals locals)
true iff the index is at the beginning of the input string in respect to
TRegexExecutorBaseNode.isForward().public boolean inputAtEnd(TRegexExecutorLocals locals)
true iff the index is at the end of the input string in respect to
TRegexExecutorBaseNode.isForward().public int getMinIndex(TRegexExecutorLocals locals)
public int getMaxIndex(TRegexExecutorLocals locals)
public boolean inputHasNext(TRegexExecutorLocals locals)
public boolean inputHasNext(TRegexExecutorLocals locals, int index)
public boolean inputHasNext(TRegexExecutorLocals locals, boolean forward)
public boolean inputHasNext(TRegexExecutorLocals locals, int index, boolean forward)
public int inputReadAndDecode(TRegexExecutorLocals locals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public int inputReadAndDecode(TRegexExecutorLocals locals, int index, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public boolean inputUTF16IsHighSurrogate(int c)
public boolean inputUTF16IsLowSurrogate(int c)
public int inputUTF16ToCodePoint(int highSurrogate,
int lowSurrogate)
public int inputReadRaw(TRegexExecutorLocals locals)
public int inputReadRaw(TRegexExecutorLocals locals, int index)
public int inputReadRaw(TRegexExecutorLocals locals, boolean forward)
public int inputReadRaw(TRegexExecutorLocals locals, int index, boolean forward)
public void inputAdvance(TRegexExecutorLocals locals)
public void inputSkip(TRegexExecutorLocals locals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public void inputSkipReverse(TRegexExecutorLocals locals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
protected void inputSkipIntl(TRegexExecutorLocals locals, boolean forward, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public int inputGetCodePointSize(TRegexExecutorLocals locals, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public int inputGetCodePointSize(TRegexExecutorLocals locals, boolean forward, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public void inputIncRaw(TRegexExecutorLocals locals)
public void inputIncRaw(TRegexExecutorLocals locals, int offset)
public void inputIncRaw(TRegexExecutorLocals locals, boolean forward)
public void inputIncRaw(TRegexExecutorLocals locals, int offset, boolean forward)
public int inputIncRaw(int index)
public int inputIncRaw(int index,
int offset)
public static int inputIncRaw(int index,
int offset,
boolean forward)
public void inputIncNextIndexRaw(TRegexExecutorLocals locals)
public void inputIncNextIndexRaw(TRegexExecutorLocals locals, int offset)
public int countUpTo(TRegexExecutorLocals locals, int max, int nCodePoints, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public int rewindUpTo(TRegexExecutorLocals locals, int min, int nCodePoints, com.oracle.truffle.api.strings.TruffleString.CodeRange codeRange)
public boolean isSimpleCG()
isSimpleCG in class TRegexExecutorBaseNode