Package org.graalvm.polyglot.proxy
Interface ProxyIterable
- All Superinterfaces:
Proxy
- All Known Subinterfaces:
ProxyArray
Interface to be implemented to mimic guest language iterables.
- Since:
- 21.1
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProxyIterable
Creates a proxy iterable backed by a JavaIterable
.Returns an iterator.
-
Method Details
-
getIterator
Object getIterator()Returns an iterator. The returned object must be interpreted as an iterator using the semantics ofContext.asValue(Object)
otherwise anIllegalStateException
is thrown. Examples for valid return values are:ProxyIterator
Iterator
, requireshost iterable access
- A guest language object representing an iterator
- Since:
- 21.1
- See Also:
-
from
Creates a proxy iterable backed by a JavaIterable
. If the values of the iterable are host values then they will beunboxed
.- Since:
- 21.1
-