public abstract class NativeTypedArrayView<T> extends NativeArrayBufferView implements java.util.List<T>, java.util.RandomAccess, ExternalArrayData
ScriptableObject.KeyComparatorCONST, 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(java.util.Collection<? extends T> bytes) |
boolean |
addAll(int i,
java.util.Collection<? extends T> bytes) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> objects) |
void |
delete(int index)
Removes the indexed property from the object.
|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
execIdCall(IdFunctionObject f,
Context cx,
Scriptable scope,
Scriptable thisObj,
java.lang.Object[] args)
'thisObj' will be null if invoked as constructor, in which case
instance of Scriptable should be returned.
|
java.lang.Object |
get(int index,
Scriptable start)
Returns the value of the indexed property or NOT_FOUND.
|
java.lang.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.
|
java.lang.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(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator() |
java.util.ListIterator<T> |
listIterator(int start) |
void |
put(int index,
Scriptable start,
java.lang.Object val)
Sets the value of the indexed property, creating it if need be.
|
T |
remove(int i) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> objects) |
boolean |
retainAll(java.util.Collection<?> objects) |
void |
setArrayElement(int index,
java.lang.Object value)
Set the element at the specified index.
|
int |
size() |
java.util.List<T> |
subList(int i,
int i2) |
java.lang.Object[] |
toArray() |
<U> U[] |
toArray(U[] ts) |
getBuffer, getByteLength, getByteOffsetactivatePrototypeMap, defineOwnProperty, delete, delete, exportAsJSClass, get, get, getAttributes, getAttributes, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, put, put, setAttributesassociateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasInstance, hasProperty, hasProperty, hasProperty, isConst, isExtensible, isSealed, preventExtensions, putConst, putConstProperty, putProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototypepublic java.lang.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,
java.lang.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 java.lang.Object[] getIds()
ScriptableObjectAny properties with the attribute DONTENUM are not listed.
getIds in interface ScriptablegetIds in class ScriptableObjectpublic abstract int getBytesPerElement()
public java.lang.Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope, Scriptable thisObj, java.lang.Object[] args)
IdScriptableObjectexecIdCall in interface IdFunctionCallexecIdCall in class IdScriptableObjectpublic java.lang.Object getArrayElement(int index)
ExternalArrayDatagetArrayElement in interface ExternalArrayDatapublic void setArrayElement(int index,
java.lang.Object value)
ExternalArrayDatasetArrayElement in interface ExternalArrayDatapublic int getArrayLength()
ExternalArrayDatagetArrayLength in interface ExternalArrayDatapublic boolean containsAll(java.util.Collection<?> objects)
public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<T>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<T>public java.lang.Object[] toArray()
public <U> U[] toArray(U[] ts)
public int size()
size in interface java.util.Collection<T>size in interface java.util.List<T>size in class ScriptableObjectpublic boolean isEmpty()
isEmpty in interface java.util.Collection<T>isEmpty in interface java.util.List<T>isEmpty in class ScriptableObjectpublic boolean contains(java.lang.Object o)
public boolean equals(java.lang.Object o)
public int hashCode()
public java.util.Iterator<T> iterator()
public java.util.ListIterator<T> listIterator()
listIterator in interface java.util.List<T>public java.util.ListIterator<T> listIterator(int start)
listIterator in interface java.util.List<T>public java.util.List<T> subList(int i, int i2)
subList in interface java.util.List<T>public boolean add(T aByte)
public boolean addAll(java.util.Collection<? extends T> bytes)
public boolean addAll(int i,
java.util.Collection<? extends T> bytes)
addAll in interface java.util.List<T>public void clear()
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> objects)
Copyright © 2010 - 2023 Adobe. All Rights Reserved