public abstract class TRegexExecutorNode
extends com.oracle.truffle.api.nodes.Node
| Modifier and Type | Field and Description |
|---|---|
protected TRegexExecNode |
root |
| Constructor and Description |
|---|
TRegexExecutorNode() |
| 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) |
abstract Object |
execute(TRegexExecutorLocals locals,
boolean compactString) |
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
TRegexExecNode.execute(Object, int). |
int |
getMaxIndex(TRegexExecutorLocals locals) |
int |
getMinIndex(TRegexExecutorLocals locals) |
protected int |
getNumberOfCaptureGroups() |
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) |
abstract boolean |
isForward() |
int |
rewindUpTo(TRegexExecutorLocals locals,
int min,
int nCodePoints) |
void |
setRoot(TRegexExecNode root) |
abstract boolean |
writesCaptureGroups()
Returns
true if this executor may write any new capture group boundaries. |
accept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, getSourceSection, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringprotected TRegexExecNode root
public void setRoot(TRegexExecNode root)
public Encodings.Encoding getEncoding()
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
TRegexExecNode.execute(Object, int).input argument given to
TRegexExecNode.execute(Object, int).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)
protected int getNumberOfCaptureGroups()
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)
public abstract Object execute(TRegexExecutorLocals locals, boolean compactString)