public abstract class TRegexExecutorNode
extends com.oracle.truffle.api.nodes.Node
| Modifier and Type | Field and Description |
|---|---|
protected TRegexExecRootNode |
root |
| Constructor and Description |
|---|
TRegexExecutorNode() |
| Modifier and Type | Method and Description |
|---|---|
abstract TRegexExecutorLocals |
createLocals(Object input,
int fromIndex,
int index,
int maxIndex) |
abstract Object |
execute(TRegexExecutorLocals locals,
boolean compactString) |
char |
getChar(TRegexExecutorLocals locals) |
char |
getCharAt(TRegexExecutorLocals locals,
int index) |
int |
getInputLength(TRegexExecutorLocals locals)
The length of the
input argument given to
TRegexExecRootNode.execute(Object, int). |
protected int |
getNumberOfCaptureGroups() |
void |
setRoot(TRegexExecRootNode 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, lookupContextReference, lookupLanguageReference, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecialize, toStringprotected TRegexExecRootNode root
public void setRoot(TRegexExecRootNode root)
public int getInputLength(TRegexExecutorLocals locals)
input argument given to
TRegexExecRootNode.execute(Object, int).input argument given to
TRegexExecRootNode.execute(Object, int).public char getChar(TRegexExecutorLocals locals)
public char getCharAt(TRegexExecutorLocals locals, int index)
protected int getNumberOfCaptureGroups()
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)