Class NativeUint8ClampedArray
java.lang.Object
org.mozilla.javascript.SlotMapOwner
org.mozilla.javascript.ScriptableObject
org.mozilla.javascript.typedarrays.NativeArrayBufferView
org.mozilla.javascript.typedarrays.NativeTypedArrayView<Integer>
org.mozilla.javascript.typedarrays.NativeUint8ClampedArray
- All Implemented Interfaces:
Serializable, Iterable<Integer>, Collection<Integer>, List<Integer>, RandomAccess, SequencedCollection<Integer>, ConstProperties, DebuggableObject, ExternalArrayData, Scriptable, SymbolScriptable
An array view that stores 8-bit quantities and implements the JavaScript "Uint8ClampedArray"
interface. It also implements List<Integer> for direct manipulation in Java. Bytes inserted
that fall out of the range (0 <= X < 256) will be adjusted so that they match before
insertion.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class NativeTypedArrayView
NativeTypedArrayView.RealThis, NativeTypedArrayView.TypedArrayConstructableNested classes/interfaces inherited from class ScriptableObject
ScriptableObject.DescriptorInfo, ScriptableObject.KeyComparator, ScriptableObject.LambdaGetterFunction, ScriptableObject.LambdaSetterFunction -
Field Summary
Fields inherited from class NativeTypedArrayView
lengthFields inherited from class NativeArrayBufferView
arrayBuffer, byteLength, offset, outOfRangeFields inherited from class ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTFields inherited from interface Scriptable
NOT_FOUND -
Constructor Summary
ConstructorsConstructorDescriptionNativeUint8ClampedArray(int len) NativeUint8ClampedArray(NativeArrayBuffer ab, int off, int len) -
Method Summary
Methods inherited from class NativeTypedArrayView
add, add, addAll, addAll, checkIndex, clear, contains, containsAll, defineOwnProperty, delete, delete, ensureIndex, equals, get, get, getArrayElement, getArrayLength, getIds, has, has, hashCode, indexOf, isEmpty, isTypedArrayOutOfBounds, iterator, js_constructor, lastIndexOf, listIterator, listIterator, put, put, remove, remove, removeAll, retainAll, setArrayElement, size, subList, toArray, toArray, toNumericMethods inherited from class NativeArrayBufferView
getBuffer, getByteLength, getByteOffset, isArg, useLittleEndianMethods inherited from class ScriptableObject
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkPropertyDefinition, checkSlotRemoval, defineBuiltinProperty, defineBuiltinProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototypeMethods inherited from class SlotMapOwner
createSlotMapMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface List
addFirst, addLast, getFirst, getLast, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
NativeUint8ClampedArray
public NativeUint8ClampedArray() -
NativeUint8ClampedArray
-
NativeUint8ClampedArray
public NativeUint8ClampedArray(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>
-
js_get
- Specified by:
js_getin classNativeTypedArrayView<Integer>
-
js_set
- Specified by:
js_setin classNativeTypedArrayView<Integer>
-
get
-
set
-