public final class org.jruby.RubyEnumerable$PutKeyValueCallback implements org.jruby.runtime.BlockCallback
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.RubyEnumerable$PutKeyValueCallback
super_class: java.lang.Object
{
private final org.jruby.RubyHash result;
descriptor: Lorg/jruby/RubyHash;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.Ruby, org.jruby.RubyHash);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyHash;)V
flags: (0x0001) ACC_PUBLIC
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 2
putfield org.jruby.RubyEnumerable$PutKeyValueCallback.result:Lorg/jruby/RubyHash;
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyEnumerable$PutKeyValueCallback;
0 3 1 runtime Lorg/jruby/Ruby;
0 3 2 result Lorg/jruby/RubyHash;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
runtime
result
void <init>(org.jruby.RubyHash);
descriptor: (Lorg/jruby/RubyHash;)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$PutKeyValueCallback.result:Lorg/jruby/RubyHash;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyEnumerable$PutKeyValueCallback;
0 3 1 result Lorg/jruby/RubyHash;
MethodParameters:
Name Flags
result
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=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
arraylength
tableswitch { // 0 - 1
0: 1
1: 3
default: 5
}
1: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 2: goto 6
end local 4 3: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
astore 4
start local 4 4: goto 6
end local 4 5: StackMap locals:
StackMap stack:
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.RubyArray.newArrayMayCopy:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
astore 4
start local 4 6: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 4
invokevirtual org.jruby.RubyEnumerable$PutKeyValueCallback.callImpl:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)V
7: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/RubyEnumerable$PutKeyValueCallback;
0 8 1 context Lorg/jruby/runtime/ThreadContext;
0 8 2 largs [Lorg/jruby/runtime/builtin/IRubyObject;
0 8 3 blk Lorg/jruby/runtime/Block;
2 3 4 value Lorg/jruby/runtime/builtin/IRubyObject;
4 5 4 value Lorg/jruby/runtime/builtin/IRubyObject;
6 8 4 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
largs
blk
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=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokevirtual org.jruby.RubyEnumerable$PutKeyValueCallback.callImpl:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)V
1: aload 1
getfield org.jruby.runtime.ThreadContext.nil: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 2 0 this Lorg/jruby/RubyEnumerable$PutKeyValueCallback;
0 2 1 context Lorg/jruby/runtime/ThreadContext;
0 2 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
0 2 3 block Lorg/jruby/runtime/Block;
MethodParameters:
Name Flags
context
arg
block
private void callImpl(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
invokestatic org.jruby.util.TypeConverter.checkArrayType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 1: aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 2
aload 1
new java.lang.StringBuilder
dup
ldc "wrong element type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " (expected array)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 3
checkcast org.jruby.RubyArray
astore 4
start local 4 3: aload 4
invokevirtual org.jruby.RubyArray.size:()I
iconst_2
if_icmpeq 5
4: aload 1
new java.lang.StringBuilder
dup
ldc "element has wrong array length (expected 2, was "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual org.jruby.RubyArray.size:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals: org.jruby.RubyArray
StackMap stack:
aload 0
getfield org.jruby.RubyEnumerable$PutKeyValueCallback.result:Lorg/jruby/RubyHash;
aload 1
aload 4
lconst_0
invokevirtual org.jruby.RubyArray.eltOk:(J)Lorg/jruby/runtime/builtin/IRubyObject;
aload 4
lconst_1
invokevirtual org.jruby.RubyArray.eltOk:(J)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyHash.fastASetCheckString:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)V
6: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/RubyEnumerable$PutKeyValueCallback;
0 7 1 runtime Lorg/jruby/Ruby;
0 7 2 value Lorg/jruby/runtime/builtin/IRubyObject;
1 7 3 ary Lorg/jruby/runtime/builtin/IRubyObject;
3 7 4 array Lorg/jruby/RubyArray;
MethodParameters:
Name Flags
runtime final
value
}
SourceFile: "RubyEnumerable.java"
NestHost: org.jruby.RubyEnumerable
InnerClasses:
public final PutKeyValueCallback = org.jruby.RubyEnumerable$PutKeyValueCallback of org.jruby.RubyEnumerable