| Modifier and Type | Class and Description |
|---|---|
| public static class | RubyEnumerator.
Internal Enumerator::FeedValue class to be shared between enumerator and its next-er Fiber. |
| public static interface | RubyEnumerator.
the enumerated object's type T extends IRubyObject>"Function" type for java-created enumerators with size. |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| private RubyEnumerator. | |
| public static final String | |
| public static final String | |
| public static final String | |
| private String | method
method to invoke for each operation |
| private IRubyObject[] | methodArgs
args to each method |
| private boolean | methodArgsHasKeywords
args contains a keywords argument |
| public static final String | |
| private IRubyObject | object
target for each operation |
| private IRubyObject | size
A value or proc to provide the size of the Enumerator contents |
| private RubyEnumerator. | sizeFn
Function object for lazily computing size (used for internally created enumerators) |
| Access | Constructor and Description |
|---|---|
| private | |
| private | RubyEnumerator(Ruby runtime, RubyClass type, IRubyObject object, RubySymbol method, IRubyObject[] args, IRubyObject size, RubyEnumerator.
|
| private | RubyEnumerator(Ruby runtime, RubyClass type, IRubyObject object, IRubyObject method, IRubyObject[] args)
|
| Modifier and Type | Method and Description |
|---|---|
| private IRubyObject | |
| public static IRubyObject | |
| private static void | |
| public static RubyClass | |
| public IRubyObject | dup()
Overrides org. Implements org. RubyMethod dup. |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static IRubyObject | |
| public static <T extends IRubyObject> IRubyObject | enumeratorizeWithSize(ThreadContext context, final T object, String method, IRubyObject[] args, RubyEnumerator.
|
| public static <T extends IRubyObject> IRubyObject | enumeratorizeWithSize(ThreadContext context, final T object, String method, IRubyObject[] args, RubyEnumerator.
|
| public static <T extends IRubyObject> IRubyObject | enumeratorizeWithSize(ThreadContext context, T object, String method, RubyEnumerator.
|
| public static IRubyObject | enumeratorizeWithSize(ThreadContext context, IRubyObject object, String method, IRubyObject arg, IRubyObject size)
|
| public static <T extends IRubyObject> RubyEnumerator | enumWithSize(ThreadContext context, final T object, String method, IRubyObject[] args, RubyEnumerator.
Transform object into an Enumerator with the given size |
| public static <T extends IRubyObject> RubyEnumerator | |
| private IRubyObject | |
| public synchronized boolean | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| private IRubyObject | initialize(Ruby runtime, IRubyObject object, IRubyObject method, IRubyObject[] methodArgs, IRubyObject size, RubyEnumerator.
|
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | |
| public IRubyObject | inspect(ThreadContext context)
Overrides org. Overrides default org. Returns a string containing a human-readable representation of obj. |
| private IRubyObject | |
| public Object | |
| public static IRubyObject | produce(ThreadContext context, IRubyObject recv, IRubyObject[] args, final Block block)
MRI: enumerator_s_produce |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| private static JavaSites. | sites(ThreadContext context)
Hides org. Retrieve the call sites for this class. |
| public final IRubyObject | |
| public long | |
| private static IRubyObject | size(ThreadContext context, RubyEnumerator recv, IRubyObject[] args)
A size method suitable for lambda method reference implementation of |
| public Spliterator | |
| public Spliterator | |
| public Stream | |
| public Stream | |
| public IRubyObject | |
| public IRubyObject | |
| private IRubyObject | with_index_common(ThreadContext context, final Block block, final String rubyMethodName, IRubyObject arg)
|
| public IRubyObject |