Package org.mozilla.javascript
Interface ExternalArrayData
- 
- All Known Implementing Classes:
- NativeFloat32Array,- NativeFloat64Array,- NativeInt16Array,- NativeInt32Array,- NativeInt8Array,- NativeTypedArrayView,- NativeUint16Array,- NativeUint32Array,- NativeUint8Array,- NativeUint8ClampedArray
 
 public interface ExternalArrayDataImplement this interface in order to allow external data to be attached to a ScriptableObject.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.ObjectgetArrayElement(int index)Return the element at the specified index.intgetArrayLength()Return the length of the array.voidsetArrayElement(int index, java.lang.Object value)Set the element at the specified index.
 
- 
- 
- 
Method Detail- 
getArrayElementjava.lang.Object getArrayElement(int index) Return the element at the specified index. The result must be a type that is valid in JavaScript: Number, String, or Scriptable. This method will not be called unless "index" is in range.
 - 
setArrayElementvoid setArrayElement(int index, java.lang.Object value)Set the element at the specified index. This method will not be called unless "index" is in range. The method must check that "value" is a valid type, and convert it if necessary.
 - 
getArrayLengthint getArrayLength() Return the length of the array.
 
- 
 
-