java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
io.quarkus.gizmo2.creator.ops.IteratorOps
Operations on an
Iterator.-
Constructor Summary
ConstructorsModifierConstructorDescriptionIteratorOps(BlockCreator bc, Expr obj) Construct a new instance.protectedIteratorOps(Class<?> receiverType, BlockCreator bc, Expr obj) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidforEachRemaining(Expr action) hasNext()CallIterator.hasNext().next()CallIterator.next().voidremove()CallIterator.remove().Methods inherited from class io.quarkus.gizmo2.creator.ops.ObjectOps
blockCreator, equals_, getClass_, hashCode_, invokeInstance, invokeInstance, invokeInstance, invokeInstance, invokeInstance, receiver, receiverType, toString_
-
Constructor Details
-
IteratorOps
Construct a new instance.- Parameters:
bc- the block creator to wrap (must not benull)obj- the iterator object (must not benull)
-
IteratorOps
Construct a new instance.- Parameters:
receiverType- the type class of the receiver (must not benull)bc- the block creator to wrap (must not benull)obj- the iterator object (must not benull)
-
-
Method Details
-
hasNext
CallIterator.hasNext().- Returns:
- the boolean result of the method call (not
null)
-
next
CallIterator.next().- Returns:
- the next iterator item (not
null)
-
remove
public void remove()CallIterator.remove(). -
forEachRemaining
- Parameters:
action- the consumer to pass to the function (notnull)
-