Package jp.vmi.script

Class JSList<E>

  • Type Parameters:
    E - the type of array element.
    All Implemented Interfaces:
    Iterable<E>, Collection<E>, List<E>

    public abstract class JSList<E>
    extends AbstractList<E>
    Wrapper for JavaScript array object.
    • Constructor Detail

      • JSList

        public JSList()
    • Method Detail

      • unwrap

        public abstract Object unwrap()
        Unwrap object.
        Returns:
        unwrapped object.
      • toList

        public static <E> List<E> toList​(ScriptEngine engine,
                                         Object object)
        JavaScript object to List.
        Type Parameters:
        E - the type of list element.
        Parameters:
        engine - script engine.
        object - JavaScript object.
        Returns:
        List object.