Package jp.vmi.script
Class JSList<E>
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- jp.vmi.script.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.
-
-
Field Summary
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description JSList()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static <E> List<E>toList(ScriptEngine engine, Object object)JavaScript object to List.abstract Objectunwrap()Unwrap object.-
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, get, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, size, sort, spliterator, toArray, toArray
-
-
-
-
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.
-
-