Class NativeFloat32Array
- java.lang.Object
-
- org.mozilla.javascript.ScriptableObject
-
- org.mozilla.javascript.IdScriptableObject
-
- org.mozilla.javascript.typedarrays.NativeArrayBufferView
-
- org.mozilla.javascript.typedarrays.NativeTypedArrayView<java.lang.Float>
-
- org.mozilla.javascript.typedarrays.NativeFloat32Array
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<java.lang.Float>
,java.util.Collection<java.lang.Float>
,java.util.List<java.lang.Float>
,java.util.RandomAccess
,ConstProperties
,DebuggableObject
,ExternalArrayData
,IdFunctionCall
,Scriptable
public class NativeFloat32Array extends NativeTypedArrayView<java.lang.Float>
An array view that stores 32-bit quantities and implements the JavaScript "loat32Array" interface. It also implements Listfor direct manipulation in Java. - See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.mozilla.javascript.ScriptableObject
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST
-
Fields inherited from interface org.mozilla.javascript.Scriptable
NOT_FOUND
-
-
Constructor Summary
Constructors Constructor Description NativeFloat32Array()
NativeFloat32Array(int len)
NativeFloat32Array(NativeArrayBuffer ab, int off, int len)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Float
get(int i)
int
getBytesPerElement()
Return the number of bytes represented by each element in the array.java.lang.String
getClassName()
Return the name of the class.static void
init(Context cx, Scriptable scope, boolean sealed)
java.lang.Float
set(int i, java.lang.Float aByte)
-
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, toArray
-
Methods inherited from class org.mozilla.javascript.typedarrays.NativeArrayBufferView
getBuffer, getByteLength, getByteOffset
-
Methods inherited from class org.mozilla.javascript.IdScriptableObject
activatePrototypeMap, defineOwnProperty, delete, exportAsJSClass, get, getAttributes, has, hasPrototypeMap, initPrototypeConstructor, initPrototypeMethod, initPrototypeValue, put, setAttributes
-
Methods 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, setPrototype
-
-
-
-
Constructor Detail
-
NativeFloat32Array
public NativeFloat32Array()
-
NativeFloat32Array
public NativeFloat32Array(NativeArrayBuffer ab, int off, int len)
-
NativeFloat32Array
public NativeFloat32Array(int len)
-
-
Method Detail
-
getClassName
public java.lang.String getClassName()
Description copied from class:ScriptableObject
Return the name of the class. This is typically the same name as the constructor. Classes extending ScriptableObject must implement this abstract method.- Specified by:
getClassName
in interfaceScriptable
- Specified by:
getClassName
in classScriptableObject
-
init
public static void init(Context cx, Scriptable scope, boolean sealed)
-
getBytesPerElement
public int getBytesPerElement()
Description copied from class:NativeTypedArrayView
Return 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:
getBytesPerElement
in classNativeTypedArrayView<java.lang.Float>
-
get
public java.lang.Float get(int i)
-
set
public java.lang.Float set(int i, java.lang.Float aByte)
-
-