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, valueIsByteprotected 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 ScriptArraypublic boolean isFrozen()
isFrozen in class ScriptArraypublic boolean isExtensible()
isExtensible in class ScriptArraypublic boolean isLengthNotWritable()
isLengthNotWritable in class ScriptArraypublic ScriptArray seal()
seal in class ScriptArraypublic ScriptArray freeze()
freeze in class ScriptArraypublic ScriptArray preventExtensions()
preventExtensions in class ScriptArraypublic ScriptArray setLengthNotWritable()
setLengthNotWritable in class ScriptArraypublic abstract Object cloneArray(JSDynamicObject object)