Interface ExternalArrayData

    • Method Detail

      • getArrayElement

        java.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.
      • setArrayElement

        void 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.
      • getArrayLength

        int getArrayLength()
        Return the length of the array.