public final class LazyRegexResultArray extends AbstractConstantArray
AbstractConstantArray.CreateWritableProfileAccessDynamicArray.DynamicArrayCacheScriptArray.DefaultIterator, ScriptArray.ProfileAccess, ScriptArray.ProfileHolder, ScriptArray.SetLengthProfileAccess| Modifier and Type | Field and Description |
|---|---|
static LazyRegexResultArray |
LAZY_REGEX_RESULT_ARRAY |
CREATE_WRITABLE_PROFILEcache, 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, SET_LENGTH_PROFILE| Modifier and Type | Method and Description |
|---|---|
ScriptArray |
addRangeImpl(com.oracle.truffle.api.object.DynamicObject object,
long offset,
int size)
This method grows the array by adding more elements of a given size.
|
Object |
cloneArray(com.oracle.truffle.api.object.DynamicObject object) |
static LazyRegexResultArray |
createLazyRegexResultArray() |
ScriptArray |
createWritable(TRegexUtil.TRegexMaterializeResultNode materializeResultNode,
com.oracle.truffle.api.object.DynamicObject object,
long index,
Object value) |
AbstractObjectArray |
createWriteableDouble(com.oracle.truffle.api.object.DynamicObject object,
long index,
double value,
ScriptArray.ProfileHolder profile) |
AbstractObjectArray |
createWriteableInt(com.oracle.truffle.api.object.DynamicObject object,
long index,
int value,
ScriptArray.ProfileHolder profile) |
AbstractObjectArray |
createWriteableJSObject(com.oracle.truffle.api.object.DynamicObject object,
long index,
JSDynamicObject value,
ScriptArray.ProfileHolder profile) |
AbstractObjectArray |
createWriteableObject(com.oracle.truffle.api.object.DynamicObject object,
long index,
Object value,
ScriptArray.ProfileHolder profile) |
ScriptArray |
deleteElementImpl(com.oracle.truffle.api.object.DynamicObject object,
long index,
boolean strict) |
Object |
getElementInBounds(com.oracle.truffle.api.object.DynamicObject object,
int index) |
boolean |
hasElement(com.oracle.truffle.api.object.DynamicObject object,
long index) |
int |
lengthInt(com.oracle.truffle.api.object.DynamicObject object) |
static Object |
materializeGroup(TRegexUtil.TRegexMaterializeResultNode materializeResultNode,
com.oracle.truffle.api.object.DynamicObject object,
int index,
com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultNode,
com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultOriginalInputNode) |
ScriptArray |
removeRangeImpl(com.oracle.truffle.api.object.DynamicObject object,
long start,
long end)
This function deletes all elements in the range from [start..end[.
|
ScriptArray |
setLengthImpl(com.oracle.truffle.api.object.DynamicObject object,
long length,
ScriptArray.ProfileHolder profile) |
Object[] |
toArray(com.oracle.truffle.api.object.DynamicObject object)
Creates an Object[] from this array, of size array.length.
|
protected DynamicArray |
withIntegrityLevel(int newIntegrityLevel) |
createCreateWritableProfile, firstElementIndex, getElement, getElementInBounds, hasHoles, isInBoundsFast, lastElementIndex, length, nextElementIndex, previousElementIndex, setElementImplarray, createCache, freeze, isExtensible, isFrozen, isLengthNotWritable, isSealed, preventExtensions, seal, setIntegrityLevel, setLengthNotWritable, toStringaddRange, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, createSetLengthProfile, deleteElement, isHolesType, isInstance, makeMultiRangeList, makeRangeList, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, removeRange, removeRange, setElement, setLength, setLength, toString, traceArrayTransition, traceWrite, valueIsBytepublic static final LazyRegexResultArray LAZY_REGEX_RESULT_ARRAY
public static LazyRegexResultArray createLazyRegexResultArray()
public static Object materializeGroup(TRegexUtil.TRegexMaterializeResultNode materializeResultNode, com.oracle.truffle.api.object.DynamicObject object, int index, com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultNode, com.oracle.truffle.api.object.DynamicObjectLibrary lazyRegexResultOriginalInputNode)
public ScriptArray createWritable(TRegexUtil.TRegexMaterializeResultNode materializeResultNode, com.oracle.truffle.api.object.DynamicObject object, long index, Object value)
public Object getElementInBounds(com.oracle.truffle.api.object.DynamicObject object, int index)
getElementInBounds in class AbstractConstantArraypublic boolean hasElement(com.oracle.truffle.api.object.DynamicObject object,
long index)
hasElement in class ScriptArraypublic int lengthInt(com.oracle.truffle.api.object.DynamicObject object)
lengthInt in class ScriptArraypublic AbstractObjectArray createWriteableObject(com.oracle.truffle.api.object.DynamicObject object, long index, Object value, ScriptArray.ProfileHolder profile)
createWriteableObject in class AbstractConstantArraypublic AbstractObjectArray createWriteableInt(com.oracle.truffle.api.object.DynamicObject object, long index, int value, ScriptArray.ProfileHolder profile)
createWriteableInt in class AbstractConstantArraypublic AbstractObjectArray createWriteableDouble(com.oracle.truffle.api.object.DynamicObject object, long index, double value, ScriptArray.ProfileHolder profile)
createWriteableDouble in class AbstractConstantArraypublic AbstractObjectArray createWriteableJSObject(com.oracle.truffle.api.object.DynamicObject object, long index, JSDynamicObject value, ScriptArray.ProfileHolder profile)
createWriteableJSObject in class AbstractConstantArraypublic ScriptArray deleteElementImpl(com.oracle.truffle.api.object.DynamicObject object, long index, boolean strict)
deleteElementImpl in class ScriptArraypublic ScriptArray setLengthImpl(com.oracle.truffle.api.object.DynamicObject object, long length, ScriptArray.ProfileHolder profile)
setLengthImpl in class ScriptArraypublic ScriptArray addRangeImpl(com.oracle.truffle.api.object.DynamicObject 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(com.oracle.truffle.api.object.DynamicObject object, long start, long end)
ScriptArrayremoveRangeImpl in class ScriptArraypublic Object[] toArray(com.oracle.truffle.api.object.DynamicObject object)
ScriptArraytoArray in class ScriptArraypublic Object cloneArray(com.oracle.truffle.api.object.DynamicObject object)
cloneArray in class DynamicArrayprotected DynamicArray withIntegrityLevel(int newIntegrityLevel)
withIntegrityLevel in class DynamicArray