public final class LazyRegexResultArray extends AbstractConstantArray
DynamicArray.DynamicArrayCacheScriptArray.CreateWritableProfileAccess, ScriptArray.DefaultIterator, ScriptArray.SetLengthProfileAccess| Modifier and Type | Field and Description |
|---|---|
static LazyRegexResultArray |
LAZY_REGEX_RESULT_ARRAY |
cache, INTEGRITY_LEVEL_FROZEN, INTEGRITY_LEVEL_FROZEN_LENGTH_READONLY, INTEGRITY_LEVEL_MASK, INTEGRITY_LEVEL_NONE, INTEGRITY_LEVEL_NONE_LENGTH_READONLY, INTEGRITY_LEVEL_NOT_EXTENSIBLE, INTEGRITY_LEVEL_NOT_EXTENSIBLE_LENGTH_READONLY, INTEGRITY_LEVEL_SEALED, INTEGRITY_LEVEL_SEALED_LENGTH_READONLY, INTEGRITY_LEVELS, integrityLevel, LENGTH_NOT_WRITABLE, LENGTH_WRITABLE_MASKEMPTY_OBJECT_ARRAY| Modifier and Type | Method and Description |
|---|---|
ScriptArray |
addRangeImpl(JSDynamicObject object,
long offset,
int size)
This method grows the array by adding more elements of a given size.
|
Object |
cloneArray(JSDynamicObject object) |
static LazyRegexResultArray |
createLazyRegexResultArray() |
ScriptArray |
createWritable(JSContext context,
JSDynamicObject object,
long index,
Object value,
com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultNode,
com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultOriginalInputNode,
com.oracle.truffle.api.nodes.Node node,
com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode,
TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode,
TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) |
AbstractObjectArray |
createWriteableDouble(JSDynamicObject object,
long index,
double value,
com.oracle.truffle.api.nodes.Node node,
ScriptArray.CreateWritableProfileAccess profile) |
AbstractObjectArray |
createWriteableInt(JSDynamicObject object,
long index,
int value,
com.oracle.truffle.api.nodes.Node node,
ScriptArray.CreateWritableProfileAccess profile) |
AbstractObjectArray |
createWriteableJSObject(JSDynamicObject object,
long index,
JSDynamicObject value,
com.oracle.truffle.api.nodes.Node node,
ScriptArray.CreateWritableProfileAccess profile) |
AbstractObjectArray |
createWriteableObject(JSDynamicObject object,
long index,
Object value,
com.oracle.truffle.api.nodes.Node node,
ScriptArray.CreateWritableProfileAccess profile) |
ScriptArray |
deleteElementImpl(JSDynamicObject object,
long index,
boolean strict) |
Object |
getElementInBounds(JSDynamicObject object,
int index) |
boolean |
hasElement(JSDynamicObject object,
long index) |
int |
lengthInt(JSDynamicObject object) |
static Object |
materializeGroup(JSContext context,
JSDynamicObject object,
int index,
com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultNode,
com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultOriginalInputNode,
com.oracle.truffle.api.nodes.Node node,
com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode,
TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode,
TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode) |
ScriptArray |
removeRangeImpl(JSDynamicObject object,
long start,
long end)
This function deletes all elements in the range from [start..end[.
|
ScriptArray |
setLengthImpl(JSDynamicObject object,
long length,
com.oracle.truffle.api.nodes.Node node,
ScriptArray.SetLengthProfileAccess profile) |
protected DynamicArray |
withIntegrityLevel(int newIntegrityLevel) |
firstElementIndex, getElement, getElementInBounds, hasHoles, isInBoundsFast, lastElementIndex, length, nextElementIndex, previousElementIndex, setElementImplcreateCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, maybePreinitializeCache, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringaddRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, isHolesType, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, shiftRange, shiftRangeImpl, toArray, toString, traceArrayTransition, traceWrite, valueIsBytepublic static final LazyRegexResultArray LAZY_REGEX_RESULT_ARRAY
public static LazyRegexResultArray createLazyRegexResultArray()
public static Object materializeGroup(JSContext context, JSDynamicObject object, int index, com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultNode, com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultOriginalInputNode, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode)
public ScriptArray createWritable(JSContext context, JSDynamicObject object, long index, Object value, com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultNode, com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultOriginalInputNode, com.oracle.truffle.api.nodes.Node node, com.oracle.truffle.api.strings.TruffleString.SubstringByteIndexNode substringNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getStartNode, TRegexUtil.InvokeGetGroupBoundariesMethodNode getEndNode)
public Object getElementInBounds(JSDynamicObject object, int index)
getElementInBounds in class AbstractConstantArraypublic boolean hasElement(JSDynamicObject object, long index)
hasElement in class ScriptArraypublic int lengthInt(JSDynamicObject object)
lengthInt in class ScriptArraypublic AbstractObjectArray createWriteableObject(JSDynamicObject object, long index, Object value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile)
createWriteableObject in class AbstractConstantArraypublic AbstractObjectArray createWriteableInt(JSDynamicObject object, long index, int value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile)
createWriteableInt in class AbstractConstantArraypublic AbstractObjectArray createWriteableDouble(JSDynamicObject object, long index, double value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile)
createWriteableDouble in class AbstractConstantArraypublic AbstractObjectArray createWriteableJSObject(JSDynamicObject object, long index, JSDynamicObject value, com.oracle.truffle.api.nodes.Node node, ScriptArray.CreateWritableProfileAccess profile)
createWriteableJSObject in class AbstractConstantArraypublic ScriptArray deleteElementImpl(JSDynamicObject object, long index, boolean strict)
deleteElementImpl in class ScriptArraypublic ScriptArray setLengthImpl(JSDynamicObject object, long length, com.oracle.truffle.api.nodes.Node node, ScriptArray.SetLengthProfileAccess profile)
setLengthImpl in class ScriptArraypublic ScriptArray addRangeImpl(JSDynamicObject object, long offset, int size)
ScriptArrayaddRangeImpl in class ScriptArrayoffset - starting offset positionsize - size of the inserted empty arrayScriptArray instance with the new sizepublic ScriptArray removeRangeImpl(JSDynamicObject object, long start, long end)
ScriptArrayremoveRangeImpl in class ScriptArraypublic Object cloneArray(JSDynamicObject object)
cloneArray in class DynamicArrayprotected DynamicArray withIntegrityLevel(int newIntegrityLevel)
withIntegrityLevel in class DynamicArray