public abstract class DynamicArray extends ScriptArray
Modifier and Type | Class and Description |
---|---|
protected static class |
DynamicArray.DynamicArrayCache |
ScriptArray.CreateWritableProfileAccess, ScriptArray.DefaultIterator, ScriptArray.SetLengthProfileAccess
Modifier and Type | Field and Description |
---|---|
protected DynamicArray.DynamicArrayCache |
cache |
protected static int |
INTEGRITY_LEVEL_FROZEN |
protected static int |
INTEGRITY_LEVEL_FROZEN_LENGTH_READONLY |
protected static int |
INTEGRITY_LEVEL_MASK |
protected static int |
INTEGRITY_LEVEL_NONE |
protected static int |
INTEGRITY_LEVEL_NONE_LENGTH_READONLY |
protected static int |
INTEGRITY_LEVEL_NOT_EXTENSIBLE |
protected static int |
INTEGRITY_LEVEL_NOT_EXTENSIBLE_LENGTH_READONLY |
protected static int |
INTEGRITY_LEVEL_SEALED |
protected static int |
INTEGRITY_LEVEL_SEALED_LENGTH_READONLY |
protected static int |
INTEGRITY_LEVELS |
protected int |
integrityLevel |
protected static int |
LENGTH_NOT_WRITABLE |
protected static int |
LENGTH_WRITABLE_MASK |
EMPTY_OBJECT_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
DynamicArray(int integrityLevel,
DynamicArray.DynamicArrayCache cache) |
Modifier and Type | Method and Description |
---|---|
abstract Object |
cloneArray(JSDynamicObject object) |
protected static DynamicArray.DynamicArrayCache |
createCache() |
ScriptArray |
freeze() |
boolean |
isExtensible() |
boolean |
isFrozen() |
boolean |
isLengthNotWritable() |
boolean |
isSealed() |
protected <T extends ScriptArray> |
maybePreinitializeCache() |
ScriptArray |
preventExtensions() |
ScriptArray |
seal() |
protected <T extends ScriptArray> |
setIntegrityLevel(int integrityLevel) |
ScriptArray |
setLengthNotWritable() |
String |
toString() |
protected abstract DynamicArray |
withIntegrityLevel(int newIntegrityLevel) |
addRange, addRangeImpl, asIterable, canDeleteElement, cast, createConstantArray, createConstantEmptyArray, deleteElement, deleteElementImpl, firstElementIndex, getElement, getElementInBounds, hasElement, hasHoles, isHolesType, isInBoundsFast, isInstance, lastElementIndex, length, lengthInt, makeMultiRangeList, makeRangeList, nextElementIndex, nextPower, ownPropertyKeys, ownPropertyKeysContiguous, ownPropertyKeysHoles, previousElementIndex, removeRange, removeRange, removeRangeImpl, setElement, setElementImpl, setLength, setLength, setLengthImpl, shiftRange, shiftRangeImpl, toArray, toString, traceArrayTransition, traceWrite, valueIsByte
protected static final int INTEGRITY_LEVEL_NONE
protected static final int INTEGRITY_LEVEL_NONE_LENGTH_READONLY
protected static final int INTEGRITY_LEVEL_NOT_EXTENSIBLE
protected static final int INTEGRITY_LEVEL_NOT_EXTENSIBLE_LENGTH_READONLY
protected static final int INTEGRITY_LEVEL_SEALED
protected static final int INTEGRITY_LEVEL_SEALED_LENGTH_READONLY
protected static final int INTEGRITY_LEVEL_FROZEN
protected static final int INTEGRITY_LEVEL_FROZEN_LENGTH_READONLY
protected static final int INTEGRITY_LEVELS
protected static final int INTEGRITY_LEVEL_MASK
protected static final int LENGTH_WRITABLE_MASK
protected static final int LENGTH_NOT_WRITABLE
protected final int integrityLevel
protected final DynamicArray.DynamicArrayCache cache
protected DynamicArray(int integrityLevel, DynamicArray.DynamicArrayCache cache)
protected final <T extends ScriptArray> T maybePreinitializeCache()
protected static DynamicArray.DynamicArrayCache createCache()
protected abstract DynamicArray withIntegrityLevel(int newIntegrityLevel)
protected final <T extends ScriptArray> T setIntegrityLevel(int integrityLevel)
public boolean isSealed()
isSealed
in class ScriptArray
public boolean isFrozen()
isFrozen
in class ScriptArray
public boolean isExtensible()
isExtensible
in class ScriptArray
public boolean isLengthNotWritable()
isLengthNotWritable
in class ScriptArray
public ScriptArray seal()
seal
in class ScriptArray
public ScriptArray freeze()
freeze
in class ScriptArray
public ScriptArray preventExtensions()
preventExtensions
in class ScriptArray
public ScriptArray setLengthNotWritable()
setLengthNotWritable
in class ScriptArray
public abstract Object cloneArray(JSDynamicObject object)