Top Description Methods
org.graalvm.polyglot.proxy

public Interface ProxyIterable

extends Proxy
Known Direct Subinterfaces
org.graalvm.polyglot.proxy.ProxyArray
Imports
java.util.Iterator, .Objects, org.graalvm.polyglot.Context, .HostAccess.Builder, .Value

Interface to be implemented to mimic guest language iterables.
Since
21.1
See Also
Proxy, ProxyIterator

Method Summary

Modifier and TypeMethod and Description
public static ProxyIterable
from(Iterable<Object> iterable)

Creates a proxy iterable backed by a Java Iterable.

public Object
getIterator()

Returns an iterator.

Method Detail

fromback to summary
public static ProxyIterable from(Iterable<Object> iterable)

Creates a proxy iterable backed by a Java Iterable. If the values of the iterable are host values then they will be unboxed.

Since
21.1
getIteratorback to summary
public Object getIterator()

Returns an iterator. The returned object must be interpreted as an iterator using the semantics of Context#asValue(Object) otherwise an IllegalStateException is thrown. Examples for valid return values are:

Since
21.1
See Also
ProxyIterator