Uses of Interface
io.karatelabs.js.JsIterator
Packages that use JsIterator
-
Uses of JsIterator in io.karatelabs.js
Methods in io.karatelabs.js that return JsIteratorModifier and TypeMethodDescriptionstatic JsIteratorIterUtils.getIterator(Object source, Context context) GetIterator(source) per spec 7.4.1.static JsIteratorIterUtils.iteratorFromCallable(io.karatelabs.js.JsCallable factory, ObjectLike receiver, Context context) SpecGetIteratorFromMethod: invokefactorywithreceiverasthis(no args) and walk the returned iterator.static JsIteratorIterUtils.tryGetIterator(Object source, Context context) LikeIterUtils.getIterator(java.lang.Object, io.karatelabs.js.Context)but returns null instead of throwing — for callers that need to gate behavior on iterability without forcing a TypeError.Methods in io.karatelabs.js with parameters of type JsIteratorModifier and TypeMethodDescriptionstatic io.karatelabs.js.JsObjectIterUtils.toIteratorObject(JsIterator iter) Wraps aJsIteratoras the user-visible iterator object: aJsObjectwith anextmethod returning{value, done}.