public abstract class TRegexExecutorNode extends TRegexExecutorBaseNode
| 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) |
abstract TRegexExecutorLocals |
createLocals(Object input,
int fromIndex,
int index,
int maxIndex) |
com.oracle.truffle.api.profiles.BranchProfile |
getAstralProfile() |
com.oracle.truffle.api.profiles.BranchProfile |
getBMPProfile() |
Encodings.Encoding |
getEncoding() |
int |
getInputLength(TRegexExecutorLocals locals)
The length of the
input argument given to
RegexExecNode.execute(VirtualFrame). |
int |
getMaxIndex(TRegexExecutorLocals locals) |
int |
getMinIndex(TRegexExecutorLocals locals) |
abstract String |
getName() |
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
TRegexExecutorNode.isForward(). |
boolean |
inputAtEnd(TRegexExecutorLocals locals)
Returns
true iff the index is at the end of the input string in respect to
TRegexExecutorNode.isForward(). |
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) |
static int |
inputIncRaw(int index,
boolean forward) |
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 |
inputReadAndDecode(TRegexExecutorLocals locals,
int index) |
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) |
protected void |
inputSkipIntl(TRegexExecutorLocals locals,
boolean forward) |
void |
inputSkipReverse(TRegexExecutorLocals locals) |
boolean |
inputUTF16IsHighSurrogate(int c) |
boolean |
inputUTF16IsLowSurrogate(int c) |
int |
inputUTF16ToCodePoint(int highSurrogate,
int lowSurrogate) |
boolean |
isBooleanMatch() |
abstract boolean |
isForward() |
boolean |
isUTF16() |
boolean |
isUTF32() |
boolean |
isUTF8() |
int |
rewindUpTo(TRegexExecutorLocals locals,
int min,
int nCodePoints) |
abstract TRegexExecutorNode |
shallowCopy() |
abstract boolean |
writesCaptureGroups()
Returns
true if this executor may write any new capture group boundaries. |
createWrapper, execute, isInstrumentableaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringprotected TRegexExecutorNode(RegexAST ast, int numberOfTransitions)
protected TRegexExecutorNode(TRegexExecutorNode copy)
protected TRegexExecutorNode(RegexSource source, int numberOfCaptureGroups, int numberOfTransitions)
public RegexSource getSource()
public final int getNumberOfCaptureGroups()
public final int getNumberOfTransitions()
public Encodings.Encoding getEncoding()
public boolean isUTF8()
public boolean isUTF16()
public boolean isUTF32()
public 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
TRegexExecutorNode.isForward().public boolean inputAtEnd(TRegexExecutorLocals locals)
true iff the index is at the end of the input string in respect to
TRegexExecutorNode.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)
public int inputReadAndDecode(TRegexExecutorLocals locals, int index)
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)
public void inputSkipReverse(TRegexExecutorLocals locals)
protected void inputSkipIntl(TRegexExecutorLocals locals, boolean forward)
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,
boolean forward)
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)
public int rewindUpTo(TRegexExecutorLocals locals, int min, int nCodePoints)
public boolean isBooleanMatch()
public abstract TRegexExecutorNode shallowCopy()
public abstract String getName()
public abstract boolean isForward()
public abstract boolean writesCaptureGroups()
true if this executor may write any new capture group boundaries.public abstract TRegexExecutorLocals createLocals(Object input, int fromIndex, int index, int maxIndex)