public final class LazyCaptureGroupsResult extends LazyResult implements JsonConvertible
RegexResult.RegexResultGetEndMethod, RegexResult.RegexResultGetStartMethodAbstractConstantKeysObject.IsReadableCacheNode, AbstractConstantKeysObject.ReadCacheNode| Constructor and Description |
|---|
LazyCaptureGroupsResult(Object input,
int[] result) |
LazyCaptureGroupsResult(Object input,
int fromIndex,
int end,
com.oracle.truffle.api.CallTarget findStartCallTarget,
com.oracle.truffle.api.CallTarget captureGroupCallTarget) |
| Modifier and Type | Method and Description |
|---|---|
Object[] |
createArgsCG(int start)
Creates an arguments array suitable for the lazy calculation of this result's capture group
boundaries.
|
Object[] |
createArgsCGNoFindStart()
Creates an arguments array suitable for the lazy calculation of this result's capture group
boundaries if there is no find-start call target (this is the case when the expression is
sticky or starts with "^").
|
Object[] |
createArgsFindStart()
Creates an arguments array suitable for the lazy calculation of this result's starting index.
|
void |
debugForceEvaluation()
Forces evaluation of this lazy regex result.
|
com.oracle.truffle.api.CallTarget |
getCaptureGroupCallTarget() |
int |
getEnd(int groupNumber) |
com.oracle.truffle.api.CallTarget |
getFindStartCallTarget() |
int[] |
getResult() |
int |
getStart(int groupNumber) |
void |
setResult(int[] result) |
JsonObject |
toJson() |
String |
toString() |
getEnd, getFromIndex, getInputgetKeys, readMemberImplgetMembers, hasMembers, isMemberReadable, readMemberpublic LazyCaptureGroupsResult(Object input, int fromIndex, int end, com.oracle.truffle.api.CallTarget findStartCallTarget, com.oracle.truffle.api.CallTarget captureGroupCallTarget)
public LazyCaptureGroupsResult(Object input, int[] result)
public int getStart(int groupNumber)
getStart in class RegexResultpublic int getEnd(int groupNumber)
getEnd in class RegexResultpublic void setResult(int[] result)
public int[] getResult()
public com.oracle.truffle.api.CallTarget getFindStartCallTarget()
public com.oracle.truffle.api.CallTarget getCaptureGroupCallTarget()
public Object[] createArgsFindStart()
TRegexLazyFindStartRootNode
contained in LazyCaptureGroupsResult.getFindStartCallTarget().public Object[] createArgsCG(int start)
start - The value returned by the call to the TRegexLazyFindStartRootNode
contained in LazyCaptureGroupsResult.getFindStartCallTarget().TRegexLazyCaptureGroupsRootNode
contained in LazyCaptureGroupsResult.getCaptureGroupCallTarget().public Object[] createArgsCGNoFindStart()
TRegexLazyCaptureGroupsRootNode
contained in LazyCaptureGroupsResult.getCaptureGroupCallTarget().public void debugForceEvaluation()
LazyCaptureGroupGetResultNode instead!debugForceEvaluation in class LazyResultpublic JsonObject toJson()
toJson in interface JsonConvertibletoJson in class LazyResult