class org.jruby.RubyEnumerable$EachWithIndex implements org.jruby.runtime.BlockCallback
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyEnumerable$EachWithIndex
super_class: java.lang.Object
{
private int index;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final org.jruby.runtime.Block block;
descriptor: Lorg/jruby/runtime/Block;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(org.jruby.runtime.Block, int);
descriptor: (Lorg/jruby/runtime/Block;I)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.RubyEnumerable$EachWithIndex.block:Lorg/jruby/runtime/Block;
2: aload 0
iload 2
putfield org.jruby.RubyEnumerable$EachWithIndex.index:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyEnumerable$EachWithIndex;
0 4 1 block Lorg/jruby/runtime/Block;
0 4 2 index I
MethodParameters:
Name Flags
block
index
void <init>(org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/Block;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.RubyEnumerable$EachWithIndex.block:Lorg/jruby/runtime/Block;
2: aload 0
iconst_0
putfield org.jruby.RubyEnumerable$EachWithIndex.index:I
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyEnumerable$EachWithIndex;
0 4 1 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
block
public org.jruby.runtime.builtin.IRubyObject call(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.RubyEnumerable$EachWithIndex.block:Lorg/jruby/runtime/Block;
aload 1
aload 1
aload 2
invokestatic org.jruby.RubyEnumerable.packEnumValues:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
dup
getfield org.jruby.RubyEnumerable$EachWithIndex.index:I
dup_x1
iconst_1
iadd
putfield org.jruby.RubyEnumerable$EachWithIndex.index:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.runtime.Block.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyEnumerable$EachWithIndex;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 iargs [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
iargs
block
public org.jruby.runtime.builtin.IRubyObject call(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.RubyEnumerable$EachWithIndex.block:Lorg/jruby/runtime/Block;
aload 1
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
dup
getfield org.jruby.RubyEnumerable$EachWithIndex.index:I
dup_x1
iconst_1
iadd
putfield org.jruby.RubyEnumerable$EachWithIndex.index:I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
invokevirtual org.jruby.runtime.Block.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyEnumerable$EachWithIndex;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 iarg Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
iarg
block
}
SourceFile: "RubyEnumerable.java"
NestHost: org.jruby.RubyEnumerable
InnerClasses:
EachWithIndex = org.jruby.RubyEnumerable$EachWithIndex of org.jruby.RubyEnumerable