public final class org.jruby.ast.util.ArgsUtil
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.ast.util.ArgsUtil
super_class: java.lang.Object
{
private static final org.jruby.runtime.builtin.IRubyObject[] NULL_1;
descriptor: [Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.jruby.runtime.builtin.IRubyObject[] NULL_2;
descriptor: [Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: iconst_1
anewarray org.jruby.runtime.builtin.IRubyObject
putstatic org.jruby.ast.util.ArgsUtil.NULL_1:[Lorg/jruby/runtime/builtin/IRubyObject;
1: iconst_2
anewarray org.jruby.runtime.builtin.IRubyObject
putstatic org.jruby.ast.util.ArgsUtil.NULL_2:[Lorg/jruby/runtime/builtin/IRubyObject;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ast/util/ArgsUtil;
public static org.jruby.RubyArray convertToRubyArray(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject, boolean);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Z)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ifnonnull 2
1: aload 0
invokestatic org.jruby.RubyArray.newEmptyArray:(Lorg/jruby/Ruby;)Lorg/jruby/RubyArray;
areturn
2: StackMap locals:
StackMap stack:
iload 2
ifeq 3
aload 0
aload 1
invokestatic org.jruby.ast.util.ArgsUtil.convertToRubyArrayWithCoerce:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
3: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.RubyArray.newArrayLight:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
0 4 1 value Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 coerce Z
MethodParameters:
Name Flags
runtime
value
coerce
public static org.jruby.RubyArray convertToRubyArrayWithCoerce(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.RubyArray
ifeq 1
aload 1
checkcast org.jruby.RubyArray
areturn
1: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual org.jruby.Ruby.getArray:()Lorg/jruby/RubyClass;
ldc "to_ary"
iconst_0
invokestatic org.jruby.util.TypeConverter.convertToType:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;Ljava/lang/String;Z)Lorg/jruby/runtime/builtin/IRubyObject;
astore 2
start local 2 2: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 4
3: aload 0
aload 1
invokestatic org.jruby.RubyArray.newArrayLight:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
areturn
4: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 2
instanceof org.jruby.RubyArray
ifne 6
5: aload 0
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "#to_ary should return 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
6: StackMap locals:
StackMap stack:
aload 2
checkcast org.jruby.RubyArray
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
0 7 1 value Lorg/jruby/runtime/builtin/IRubyObject;
2 7 2 newValue Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
value
public static int arrayLength(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.jruby.RubyArray
ifeq 1
aload 0
checkcast org.jruby.RubyArray
invokevirtual org.jruby.RubyArray.getLength:()I
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 node Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
node
public static org.jruby.runtime.builtin.IRubyObject getOptionsArg(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
arraylength
iconst_1
if_icmplt 2
1: aload 0
aload 1
aload 1
arraylength
iconst_1
isub
aaload
invokestatic org.jruby.util.TypeConverter.checkHashType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
args
public static org.jruby.runtime.builtin.IRubyObject getOptionsArg(org.jruby.Ruby, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 1
aload 0
invokevirtual org.jruby.Ruby.getNil:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.util.TypeConverter.checkHashType:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 runtime Lorg/jruby/Ruby;
0 2 1 arg Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
arg
public static org.jruby.runtime.builtin.IRubyObject[] (org.jruby.runtime.ThreadContext, org.jruby.RubyHash, java.lang.String[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;[Ljava/lang/String;)[Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.jruby.RubyHash.isEmpty:()Z
ifeq 5
1: aload 2
arraylength
tableswitch { // 1 - 2
1: 2
2: 3
default: 4
}
2: StackMap locals:
StackMap stack:
getstatic org.jruby.ast.util.ArgsUtil.NULL_1:[Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals:
StackMap stack:
getstatic org.jruby.ast.util.ArgsUtil.NULL_2:[Lorg/jruby/runtime/builtin/IRubyObject;
areturn
4: StackMap locals:
StackMap stack:
aload 2
arraylength
anewarray org.jruby.runtime.builtin.IRubyObject
areturn
5: StackMap locals:
StackMap stack:
aload 2
arraylength
anewarray org.jruby.runtime.builtin.IRubyObject
astore 3
start local 3 6: new java.util.HashMap
dup
aload 3
arraylength
invokespecial java.util.HashMap.<init>:(I)V
astore 4
start local 4 7: iconst_0
istore 5
start local 5 8: goto 15
9: StackMap locals: org.jruby.runtime.builtin.IRubyObject[] java.util.HashMap int
StackMap stack:
aload 2
iload 5
aaload
astore 6
start local 6 10: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 6
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
astore 7
start local 7 11: aload 1
aload 7
invokevirtual org.jruby.RubyHash.fastARef:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 8
start local 8 12: aload 3
iload 5
aload 8
aastore
13: aload 4
aload 7
aconst_null
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 8 end local 7 end local 6 14: iinc 5 1
StackMap locals:
StackMap stack:
15: iload 5
aload 2
arraylength
if_icmplt 9
end local 5 16: aload 1
aload 0
new org.jruby.ast.util.ArgsUtil$1
dup
aload 4
aload 0
invokespecial org.jruby.ast.util.ArgsUtil$1.<init>:(Ljava/util/HashMap;Lorg/jruby/runtime/ThreadContext;)V
17: aconst_null
18: invokevirtual org.jruby.RubyHash.visitAll:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash$VisitorWithState;Ljava/lang/Object;)V
19: aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 context Lorg/jruby/runtime/ThreadContext;
0 20 1 options Lorg/jruby/RubyHash;
0 20 2 validKeys [Ljava/lang/String;
6 20 3 ret [Lorg/jruby/runtime/builtin/IRubyObject;
7 20 4 validKeySet Ljava/util/HashMap<Lorg/jruby/RubySymbol;*>;
8 16 5 i I
10 14 6 key Ljava/lang/String;
11 14 7 keySym Lorg/jruby/RubySymbol;
12 14 8 val Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
options final
validKeys
public static org.jruby.runtime.builtin.IRubyObject[] (org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], java.lang.String[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;[Ljava/lang/String;)[Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
invokestatic org.jruby.ast.util.ArgsUtil.getOptionsArg:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 1: aload 3
instanceof org.jruby.RubyHash
ifeq 3
2: aload 0
aload 3
checkcast org.jruby.RubyHash
aload 2
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArgs:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;[Ljava/lang/String;)[Lorg/jruby/runtime/builtin/IRubyObject;
areturn
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 4 2 validKeys [Ljava/lang/String;
1 4 3 options Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
args
validKeys
public static org.jruby.runtime.builtin.IRubyObject (org.jruby.runtime.ThreadContext, org.jruby.RubyHash, java.lang.String);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual org.jruby.RubyHash.isEmpty:()Z
ifeq 1
aconst_null
areturn
1: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
invokevirtual org.jruby.RubyHash.fastARef:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 2: aload 3
ifnull 3
aload 1
invokevirtual org.jruby.RubyHash.size:()I
iconst_1
if_icmple 6
3: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 1
aload 0
new org.jruby.ast.util.ArgsUtil$2
dup
aload 0
invokespecial org.jruby.ast.util.ArgsUtil$2.<init>:(Lorg/jruby/runtime/ThreadContext;)V
4: aconst_null
5: invokevirtual org.jruby.RubyHash.visitAll:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyHash$VisitorWithState;Ljava/lang/Object;)V
6: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 context Lorg/jruby/runtime/ThreadContext;
0 7 1 options Lorg/jruby/RubyHash;
0 7 2 validKey Ljava/lang/String;
2 7 3 ret Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
options final
validKey
public static org.jruby.runtime.builtin.IRubyObject (org.jruby.runtime.ThreadContext, java.lang.String, org.jruby.RubyHash);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/RubyHash;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 1
invokevirtual org.jruby.Ruby.newSymbol:(Ljava/lang/String;)Lorg/jruby/RubySymbol;
invokevirtual org.jruby.RubyHash.op_aref:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 keyword Ljava/lang/String;
0 1 2 opts Lorg/jruby/RubyHash;
MethodParameters:
Name Flags
context
keyword
opts final
public static org.jruby.runtime.builtin.IRubyObject (org.jruby.runtime.ThreadContext, java.lang.String, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.ast.util.ArgsUtil.getOptionsArg:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 1: aload 3
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 2
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
aload 1
aload 3
checkcast org.jruby.RubyHash
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArg:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/RubyHash;)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 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 keyword Ljava/lang/String;
0 3 2 arg Lorg/jruby/runtime/builtin/IRubyObject;
1 3 3 opts Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
keyword
arg
public static org.jruby.runtime.builtin.IRubyObject (org.jruby.runtime.ThreadContext, java.lang.String, org.jruby.runtime.builtin.IRubyObject[]);
descriptor: (Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.ast.util.ArgsUtil.getOptionsArg:(Lorg/jruby/Ruby;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 1: aload 3
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 2
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 0
aload 1
aload 3
checkcast org.jruby.RubyHash
invokestatic org.jruby.ast.util.ArgsUtil.extractKeywordArg:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Lorg/jruby/RubyHash;)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 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 keyword Ljava/lang/String;
0 3 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 3 3 opts Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
context
keyword
args
}
SourceFile: "ArgsUtil.java"
NestMembers:
org.jruby.ast.util.ArgsUtil$1 org.jruby.ast.util.ArgsUtil$2
InnerClasses:
public abstract VisitorWithState = org.jruby.RubyHash$VisitorWithState of org.jruby.RubyHash
org.jruby.ast.util.ArgsUtil$1
org.jruby.ast.util.ArgsUtil$2