Class NativeInt32Array
java.lang.Object
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.IdScriptableObject
org.mozilla.javascript.typedarrays.NativeArrayBufferView
org.mozilla.javascript.typedarrays.NativeTypedArrayView<Integer>
org.mozilla.javascript.typedarrays.NativeInt32Array
- All Implemented Interfaces:
Serializable,Iterable<Integer>,Collection<Integer>,List<Integer>,RandomAccess,SequencedCollection<Integer>,ConstProperties,DebuggableObject,ExternalArrayData,IdFunctionCall,Scriptable
An array view that stores 32-bit quantities and implements the JavaScript "Int32Array" interface.
It also implements List for direct manipulation in Java.
- See Also:
-
Field Summary
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionNativeInt32Array(int len) NativeInt32Array(NativeArrayBuffer ab, int off, int len) -
Method Summary
Modifier and TypeMethodDescriptionget(int i) intReturn the number of bytes represented by each element in the array.Return the name of the class.static voidinit(Context cx, Scriptable scope, boolean sealed) Methods inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayView
add, add, addAll, addAll, clear, contains, containsAll, delete, equals, execIdCall, get, getArrayElement, getArrayLength, getIds, has, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, put, remove, remove, removeAll, retainAll, setArrayElement, size, subList, toArray, toArrayMethods inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferView
getBuffer, getByteLength, getByteOffsetMethods inherited from class org.mozilla.javascript.IdScriptableObject
activatePrototypeMap, defineOwnProperty, delete, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributesMethods inherited from class org.mozilla.javascript.ScriptableObject
associateValue, avoidObjectDetection, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, 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, setPrototypeMethods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
NativeInt32Array
public NativeInt32Array() -
NativeInt32Array
-
NativeInt32Array
public NativeInt32Array(int len)
-
-
Method Details
-
getClassName
Description copied from class:ScriptableObjectReturn the name of the class. This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.- Specified by:
getClassNamein interfaceScriptable- Specified by:
getClassNamein classScriptableObject
-
init
-
getBytesPerElement
public int getBytesPerElement()Description copied from class:NativeTypedArrayViewReturn the number of bytes represented by each element in the array. This can be useful when wishing to manipulate the byte array directly from Java.- Specified by:
getBytesPerElementin classNativeTypedArrayView<Integer>
-
get
-
set
-