public abstract class NativeTypedArrayView<T> extends NativeArrayBufferView implements List<T>, RandomAccess, ExternalArrayData
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Modifier and Type | Method and Description |
|---|---|
void |
add(int i,
T aByte) |
boolean |
add(T aByte) |
boolean |
addAll(Collection<? extends T> bytes) |
boolean |
addAll(int i,
Collection<? extends T> bytes) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> objects) |
void |
delete(int index)
Removes the indexed property from the object.
|
boolean |
equals(Object o) |
Object |
execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
Object[] args)
'thisObj' will be null if invoked as constructor, in which case
instance of Scriptable should be returned.
|
Object |
get(int index,
Scriptable start)
Returns the value of the indexed property or NOT_FOUND.
|
Object |
getArrayElement(int index)
Return the element at the specified index.
|
int |
getArrayLength()
Return the length of the array.
|
abstract int |
getBytesPerElement()
Return the number of bytes represented by each element in the array.
|
Object[] |
getIds()
Returns an array of ids for the properties of the object.
|
boolean |
has(int index,
Scriptable start)
Returns true if the property index is defined.
|
int |
hashCode() |
int |
indexOf(Object o) |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
lastIndexOf(Object o) |
ListIterator<T> |
listIterator() |
ListIterator<T> |
listIterator(int start) |
void |
put(int index,
Scriptable start,
Object val)
Sets the value of the indexed property, creating it if need be.
|
T |
remove(int i) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
void |
setArrayElement(int index,
Object value)
Set the element at the specified index.
|
int |
size() |
List<T> |
subList(int i,
int i2) |
Object[] |
toArray() |
<U> U[] |
toArray(U[] ts) |
getBuffer, getByteLength, getByteOffsetactivatePrototypeMap, defineOwnProperty, delete, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributesassociateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasInstance, hasProperty, hasProperty, isConst, isExtensible, isSealed, preventExtensions, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototypegetClass, notify, notifyAll, toString, wait, wait, waitget, replaceAll, set, sort, spliteratorparallelStream, removeIf, streampublic Object get(int index, Scriptable start)
ScriptableObjectget in interface Scriptableget in class ScriptableObjectindex - the numeric index for the propertystart - the object in which the lookup beganScriptable.get(String,Scriptable)public boolean has(int index,
Scriptable start)
ScriptableObjecthas in interface Scriptablehas in class ScriptableObjectindex - the numeric index for the propertystart - the object in which the lookup beganScriptable.get(int, Scriptable),
ScriptableObject.getProperty(Scriptable, int)public void put(int index,
Scriptable start,
Object val)
ScriptableObjectput in interface Scriptableput in class ScriptableObjectindex - the numeric index for the propertystart - the object whose property is being setval - value to set the property toScriptable.has(int, Scriptable),
Scriptable.get(int, Scriptable),
ScriptableObject.putProperty(Scriptable, int, Object),
Context.toObject(Object, Scriptable)public void delete(int index)
ScriptableObjectdelete in interface Scriptabledelete in class ScriptableObjectindex - the numeric index for the propertyScriptable.get(int, Scriptable),
ScriptableObject.deleteProperty(Scriptable, int)public Object[] getIds()
ScriptableObjectAny properties with the attribute DONTENUM are not listed.
getIds in interface ScriptablegetIds in class ScriptableObjectpublic abstract int getBytesPerElement()
public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, Object[] args)
IdScriptableObjectexecIdCall in interface IdFunctionCallexecIdCall in class IdScriptableObjectpublic Object getArrayElement(int index)
ExternalArrayDatagetArrayElement in interface ExternalArrayDatapublic void setArrayElement(int index,
Object value)
ExternalArrayDatasetArrayElement in interface ExternalArrayDatapublic int getArrayLength()
ExternalArrayDatagetArrayLength in interface ExternalArrayDatapublic int size()
size in interface Collection<T>size in interface List<T>size in class ScriptableObjectpublic boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface List<T>isEmpty in class ScriptableObjectpublic boolean contains(Object o)
public boolean containsAll(Collection<?> objects)
containsAll in interface Collection<T>containsAll in interface List<T>public int lastIndexOf(Object o)
lastIndexOf in interface List<T>public Object[] toArray()
public <U> U[] toArray(U[] ts)
public boolean equals(Object o)
public int hashCode()
public ListIterator<T> listIterator()
listIterator in interface List<T>public ListIterator<T> listIterator(int start)
listIterator in interface List<T>public boolean add(T aByte)
public boolean addAll(Collection<? extends T> bytes)
public boolean addAll(int i,
Collection<? extends T> bytes)
public void clear()
public boolean remove(Object o)
public boolean removeAll(Collection<?> objects)
public boolean retainAll(Collection<?> objects)
Copyright © 2010 - 2020 Adobe. All Rights Reserved