public class org.jruby.javasupport.JavaArray extends org.jruby.javasupport.JavaObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.javasupport.JavaArray
super_class: org.jruby.javasupport.JavaObject
{
private final org.jruby.javasupport.JavaUtil$JavaConverter javaConverter;
descriptor: Lorg/jruby/javasupport/JavaUtil$JavaConverter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/javasupport/JavaArray;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.jruby.javasupport.JavaArray.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.Ruby, java.lang.Object);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 1
invokevirtual org.jruby.Ruby.getJavaSupport:()Lorg/jruby/javasupport/JavaSupport;
invokevirtual org.jruby.javasupport.JavaSupport.getJavaArrayClass:()Lorg/jruby/RubyClass;
aload 2
invokespecial org.jruby.javasupport.JavaObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/Object;)V
1: getstatic org.jruby.javasupport.JavaArray.$assertionsDisabled:Z
ifne 2
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isArray:()Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: org.jruby.javasupport.JavaArray org.jruby.Ruby java.lang.Object
StackMap stack:
aload 0
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
invokestatic org.jruby.javasupport.JavaUtil.getJavaConverter:(Ljava/lang/Class;)Lorg/jruby/javasupport/JavaUtil$JavaConverter;
putfield org.jruby.javasupport.JavaArray.javaConverter:Lorg/jruby/javasupport/JavaUtil$JavaConverter;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/javasupport/JavaArray;
0 4 1 runtime Lorg/jruby/Ruby;
0 4 2 array Ljava/lang/Object;
MethodParameters:
Name Flags
runtime
array
public static org.jruby.RubyClass createJavaArrayClass(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 1
ldc "JavaObject"
invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)Lorg/jruby/RubyClass;
invokestatic org.jruby.javasupport.JavaArray.createJavaArrayClass:(Lorg/jruby/Ruby;Lorg/jruby/RubyModule;Lorg/jruby/RubyClass;)Lorg/jruby/RubyClass;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 Java Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime final
Java final
static org.jruby.RubyClass createJavaArrayClass(org.jruby.Ruby, org.jruby.RubyModule, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;Lorg/jruby/RubyClass;)Lorg/jruby/RubyClass;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "JavaArray"
aload 2
getstatic org.jruby.runtime.ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 Java Lorg/jruby/RubyModule;
0 1 2 JavaObject Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime final
Java
JavaObject
public java.lang.Class getComponentType();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getComponentType:()Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/JavaArray;
public org.jruby.RubyFixnum length();
descriptor: ()Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getLength:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/JavaArray;
public int getLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
invokestatic java.lang.reflect.Array.getLength:(Ljava/lang/Object;)I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/JavaArray;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.jruby.javasupport.JavaArray
ifeq 1
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
aload 1
checkcast org.jruby.javasupport.JavaArray
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/javasupport/JavaArray;
0 2 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: bipush 17
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
invokevirtual java.lang.Object.hashCode:()I
imul
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/JavaArray;
public org.jruby.runtime.builtin.IRubyObject arefDirect(org.jruby.Ruby, int);
descriptor: (Lorg/jruby/Ruby;I)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
aload 0
getfield org.jruby.javasupport.JavaArray.javaConverter:Lorg/jruby/javasupport/JavaUtil$JavaConverter;
iload 2
invokestatic org.jruby.java.util.ArrayUtils.arefDirect:(Lorg/jruby/Ruby;Ljava/lang/Object;Lorg/jruby/javasupport/JavaUtil$JavaConverter;I)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/JavaArray;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 intIndex I
MethodParameters:
Name Flags
runtime
intIndex
public org.jruby.runtime.builtin.IRubyObject aset(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 1
instanceof org.jruby.RubyInteger
ifne 2
1: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
aload 1
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getInteger:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyInteger
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
istore 3
start local 3 3: aload 2
instanceof org.jruby.javasupport.JavaObject
ifne 5
4: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "not a java object:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals: int
StackMap stack:
aload 2
checkcast org.jruby.javasupport.JavaObject
invokevirtual org.jruby.javasupport.JavaObject.getValue:()Ljava/lang/Object;
astore 4
start local 4 6: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
aload 4
iload 3
aload 4
invokestatic org.jruby.java.util.ArrayUtils.setWithExceptionHandlingDirect:(Lorg/jruby/Ruby;Ljava/lang/Object;ILjava/lang/Object;)V
7: aload 2
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/javasupport/JavaArray;
0 8 1 index Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 value Lorg/jruby/runtime/builtin/IRubyObject;
3 8 3 intIndex I
6 8 4 javaObject Ljava/lang/Object;
MethodParameters:
Name Flags
index
value
public org.jruby.runtime.builtin.IRubyObject asetDirect(org.jruby.Ruby, int, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/Ruby;ILorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
aload 0
getfield org.jruby.javasupport.JavaArray.javaConverter:Lorg/jruby/javasupport/JavaUtil$JavaConverter;
iload 2
aload 3
invokestatic org.jruby.java.util.ArrayUtils.asetDirect:(Lorg/jruby/Ruby;Ljava/lang/Object;Lorg/jruby/javasupport/JavaUtil$JavaConverter;ILorg/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/javasupport/JavaArray;
0 1 1 runtime Lorg/jruby/Ruby;
0 1 2 intIndex I
0 1 3 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime
intIndex
value
public void setWithExceptionHandling(int, java.lang.Object);
descriptor: (ILjava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
iload 1
aload 2
invokestatic org.jruby.java.util.ArrayUtils.setWithExceptionHandlingDirect:(Lorg/jruby/Ruby;Ljava/lang/Object;ILjava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/javasupport/JavaArray;
0 2 1 intIndex I
0 2 2 javaObject Ljava/lang/Object;
MethodParameters:
Name Flags
intIndex
javaObject
public org.jruby.runtime.builtin.IRubyObject afill(org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof org.jruby.RubyInteger
ifne 2
1: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
aload 1
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getInteger:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.jruby.RubyInteger
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
istore 4
start local 4 3: aload 2
instanceof org.jruby.RubyInteger
ifne 5
4: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
aload 2
aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getInteger:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
5: StackMap locals: int
StackMap stack:
aload 2
checkcast org.jruby.RubyInteger
invokevirtual org.jruby.RubyInteger.getLongValue:()J
l2i
istore 5
start local 5 6: aload 3
instanceof org.jruby.javasupport.JavaObject
ifne 8
7: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "not a java object:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
8: StackMap locals: int
StackMap stack:
aload 3
checkcast org.jruby.javasupport.JavaObject
invokevirtual org.jruby.javasupport.JavaObject.getValue:()Ljava/lang/Object;
astore 6
start local 6 9: aload 0
iload 4
iload 5
aload 6
invokevirtual org.jruby.javasupport.JavaArray.fillWithExceptionHandling:(IILjava/lang/Object;)V
10: aload 3
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/javasupport/JavaArray;
0 11 1 beginIndex Lorg/jruby/runtime/builtin/IRubyObject;
0 11 2 endIndex Lorg/jruby/runtime/builtin/IRubyObject;
0 11 3 value Lorg/jruby/runtime/builtin/IRubyObject;
3 11 4 intIndex I
6 11 5 intEndIndex I
9 11 6 javaValue Ljava/lang/Object;
MethodParameters:
Name Flags
beginIndex
endIndex
value
public final void fillWithExceptionHandling(int, int, java.lang.Object);
descriptor: (IILjava/lang/Object;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getRuntime:()Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 0
invokevirtual org.jruby.javasupport.JavaArray.getValue:()Ljava/lang/Object;
astore 5
start local 5 2: iload 1
istore 6
start local 6 3: goto 6
4: StackMap locals: org.jruby.Ruby java.lang.Object int
StackMap stack:
aload 4
aload 5
iload 6
aload 3
invokestatic org.jruby.java.util.ArrayUtils.setWithExceptionHandlingDirect:(Lorg/jruby/Ruby;Ljava/lang/Object;ILjava/lang/Object;)V
5: iinc 6 1
StackMap locals:
StackMap stack:
6: iload 6
iload 2
if_icmplt 4
end local 6 7: return
end local 5 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/javasupport/JavaArray;
0 8 1 start I
0 8 2 end I
0 8 3 javaValue Ljava/lang/Object;
1 8 4 runtime Lorg/jruby/Ruby;
2 8 5 array Ljava/lang/Object;
3 7 6 i I
MethodParameters:
Name Flags
start
end
javaValue
}
SourceFile: "JavaArray.java"
InnerClasses:
public abstract JavaConverter = org.jruby.javasupport.JavaUtil$JavaConverter of org.jruby.javasupport.JavaUtil
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"Java::JavaArray"}, parent = "Java::JavaObject")