Class NativeUint8ClampedArray
- java.lang.Object
- 
- org.mozilla.javascript.ScriptableObject
- 
- org.mozilla.javascript.IdScriptableObject
- 
- org.mozilla.javascript.typedarrays.NativeArrayBufferView
- 
- org.mozilla.javascript.typedarrays.NativeTypedArrayView<java.lang.Integer>
- 
- org.mozilla.javascript.typedarrays.NativeUint8ClampedArray
 
 
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Iterable<java.lang.Integer>,- java.util.Collection<java.lang.Integer>,- java.util.List<java.lang.Integer>,- java.util.RandomAccess,- ConstProperties,- DebuggableObject,- ExternalArrayData,- IdFunctionCall,- Scriptable,- SymbolScriptable
 
 public class NativeUint8ClampedArray extends NativeTypedArrayView<java.lang.Integer> 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:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObjectScriptableObject.KeyComparator
 
- 
 - 
Field Summary- 
Fields inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayViewlength, MAX_PROTOTYPE_ID
 - 
Fields inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferViewarrayBuffer, byteLength, offset
 - 
Fields inherited from class org.mozilla.javascript.ScriptableObjectCONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
 - 
Fields inherited from interface org.mozilla.javascript.ScriptableNOT_FOUND
 
- 
 - 
Constructor SummaryConstructors Constructor Description NativeUint8ClampedArray()NativeUint8ClampedArray(int len)NativeUint8ClampedArray(NativeArrayBuffer ab, int off, int len)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected NativeUint8ClampedArrayconstruct(NativeArrayBuffer ab, int off, int len)java.lang.Integerget(int i)intgetBytesPerElement()Return the number of bytes represented by each element in the array.java.lang.StringgetClassName()Return the name of the class.static voidinit(Context cx, Scriptable scope, boolean sealed)protected java.lang.Objectjs_get(int index)protected java.lang.Objectjs_set(int index, java.lang.Object c)protected NativeUint8ClampedArrayrealThis(Scriptable thisObj, IdFunctionObject f)java.lang.Integerset(int i, java.lang.Integer aByte)- 
Methods inherited from class org.mozilla.javascript.typedarrays.NativeTypedArrayViewadd, add, addAll, addAll, checkIndex, clear, contains, containsAll, delete, delete, equals, execIdCall, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, findPrototypeId, get, get, getArrayElement, getArrayLength, getIds, getInstanceIdName, getInstanceIdValue, getMaxInstanceId, has, has, hashCode, indexOf, initPrototypeId, isEmpty, iterator, lastIndexOf, listIterator, listIterator, put, put, remove, remove, removeAll, retainAll, setArrayElement, size, subList, toArray, toArray
 - 
Methods inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferViewget, getBuffer, getByteLength, getByteOffset, isArg, useLittleEndian
 - 
Methods inherited from class org.mozilla.javascript.IdScriptableObjectactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, ensureType, exportAsJSClass, findInstanceIdInfo, getAttributes, getAttributes, getOwnPropertyDescriptor, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, setAttributes, setInstanceIdAttributes, setInstanceIdValue
 - 
Methods inherited from class org.mozilla.javascript.ScriptableObjectapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype
 
- 
 
- 
- 
- 
Constructor Detail- 
NativeUint8ClampedArraypublic NativeUint8ClampedArray() 
 - 
NativeUint8ClampedArraypublic NativeUint8ClampedArray(NativeArrayBuffer ab, int off, int len) 
 - 
NativeUint8ClampedArraypublic NativeUint8ClampedArray(int len) 
 
- 
 - 
Method Detail- 
getClassNamepublic java.lang.String 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 interface- Scriptable
- Specified by:
- getClassNamein class- ScriptableObject
 
 - 
initpublic static void init(Context cx, Scriptable scope, boolean sealed) 
 - 
constructprotected NativeUint8ClampedArray construct(NativeArrayBuffer ab, int off, int len) - Specified by:
- constructin class- NativeTypedArrayView<java.lang.Integer>
 
 - 
getBytesPerElementpublic 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 class- NativeTypedArrayView<java.lang.Integer>
 
 - 
realThisprotected NativeUint8ClampedArray realThis(Scriptable thisObj, IdFunctionObject f) - Specified by:
- realThisin class- NativeTypedArrayView<java.lang.Integer>
 
 - 
js_getprotected java.lang.Object js_get(int index) - Specified by:
- js_getin class- NativeTypedArrayView<java.lang.Integer>
 
 - 
js_setprotected java.lang.Object js_set(int index, java.lang.Object c)- Specified by:
- js_setin class- NativeTypedArrayView<java.lang.Integer>
 
 - 
getpublic java.lang.Integer get(int i) 
 - 
setpublic java.lang.Integer set(int i, java.lang.Integer aByte)
 
- 
 
-