Class NativeArrayBufferView
- java.lang.Object
- 
- org.mozilla.javascript.ScriptableObject
- 
- org.mozilla.javascript.IdScriptableObject
- 
- org.mozilla.javascript.typedarrays.NativeArrayBufferView
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- ConstProperties,- DebuggableObject,- IdFunctionCall,- Scriptable,- SymbolScriptable
 - Direct Known Subclasses:
- NativeDataView,- NativeTypedArrayView
 
 public abstract class NativeArrayBufferView extends IdScriptableObject This class is the abstract parent for all views of the array. It shows a view of the underlying NativeArrayBuffer. Many views may simultaneously share the same buffer, and changes to one will affect all.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.mozilla.javascript.ScriptableObjectScriptableObject.KeyComparator
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected NativeArrayBufferarrayBufferMany view objects can share the same backing arrayprotected intbyteLengthThe length, in bytes, of the portion of the backing array that we useprotected static intMAX_INSTANCE_IDprotected intoffsetThe offset, in bytes, from the start of the backing array- 
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 Modifier Constructor Description NativeArrayBufferView()protectedNativeArrayBufferView(NativeArrayBuffer ab, int offset, int byteLength)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected intfindInstanceIdInfo(java.lang.String s)Map name to id of instance property.java.lang.Objectget(Symbol key, Scriptable start)Another version of Get that supports Symbol keyed properties.NativeArrayBuffergetBuffer()Return the buffer that backs this view.intgetByteLength()Return the length, in bytes, of the part of the buffer that this view represents.intgetByteOffset()Return the offset in bytes from the start of the buffer that this view represents.protected java.lang.StringgetInstanceIdName(int id)Map id back to property name it defines.protected java.lang.ObjectgetInstanceIdValue(int id)Get id value.protected intgetMaxInstanceId()Get maximum id findInstanceIdInfo can generate.protected static booleanisArg(java.lang.Object[] args, int i)protected static booleanuseLittleEndian()- 
Methods inherited from class org.mozilla.javascript.IdScriptableObjectactivatePrototypeMap, addIdFunctionProperty, defaultGet, defaultHas, defaultPut, defineOwnProperty, delete, delete, ensureType, execIdCall, exportAsJSClass, fillConstructorProperties, findInstanceIdInfo, findPrototypeId, findPrototypeId, get, getAttributes, getAttributes, getOwnPropertyDescriptor, has, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeId, initPrototypeMethod, initPrototypeMethod, initPrototypeMethod, initPrototypeValue, initPrototypeValue, instanceIdInfo, put, 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, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureSymbolScriptable, equivalentValues, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getClassName, getClassPrototype, getDefaultValue, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasInstance, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, putConst, putConstProperty, putProperty, putProperty, putProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setParentScope, setPrototype, size
 
- 
 
- 
- 
- 
Field Detail- 
arrayBufferprotected final NativeArrayBuffer arrayBuffer Many view objects can share the same backing array
 - 
offsetprotected final int offset The offset, in bytes, from the start of the backing array
 - 
byteLengthprotected final int byteLength The length, in bytes, of the portion of the backing array that we use
 - 
MAX_INSTANCE_IDprotected static final int MAX_INSTANCE_ID - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
NativeArrayBufferViewpublic NativeArrayBufferView() 
 - 
NativeArrayBufferViewprotected NativeArrayBufferView(NativeArrayBuffer ab, int offset, int byteLength) 
 
- 
 - 
Method Detail- 
getBufferpublic NativeArrayBuffer getBuffer() Return the buffer that backs this view.
 - 
getByteOffsetpublic int getByteOffset() Return the offset in bytes from the start of the buffer that this view represents.
 - 
getByteLengthpublic int getByteLength() Return the length, in bytes, of the part of the buffer that this view represents.
 - 
useLittleEndianprotected static boolean useLittleEndian() 
 - 
isArgprotected static boolean isArg(java.lang.Object[] args, int i)
 - 
getMaxInstanceIdprotected int getMaxInstanceId() Description copied from class:IdScriptableObjectGet maximum id findInstanceIdInfo can generate.- Overrides:
- getMaxInstanceIdin class- IdScriptableObject
 
 - 
getInstanceIdNameprotected java.lang.String getInstanceIdName(int id) Description copied from class:IdScriptableObjectMap id back to property name it defines.- Overrides:
- getInstanceIdNamein class- IdScriptableObject
 
 - 
getInstanceIdValueprotected java.lang.Object getInstanceIdValue(int id) Description copied from class:IdScriptableObjectGet id value. * If id value is constant, descendant can call cacheIdValue to store * value in the permanent cache. * Default implementation creates IdFunctionObject instance for given id * and cache its value- Overrides:
- getInstanceIdValuein class- IdScriptableObject
 
 - 
findInstanceIdInfoprotected int findInstanceIdInfo(java.lang.String s) Description copied from class:IdScriptableObjectMap name to id of instance property. Should return 0 if not found or the result ofIdScriptableObject.instanceIdInfo(int, int).- Overrides:
- findInstanceIdInfoin class- IdScriptableObject
 
 - 
getpublic java.lang.Object get(Symbol key, Scriptable start) Description copied from class:ScriptableObjectAnother version of Get that supports Symbol keyed properties.- Specified by:
- getin interface- SymbolScriptable
- Overrides:
- getin class- IdScriptableObject
 
 
- 
 
-