public class org.jruby.javasupport.ext.JavaLang$Comparable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.javasupport.ext.JavaLang$Comparable
super_class: java.lang.Object
{
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/javasupport/ext/JavaLang$Comparable;
static org.jruby.RubyModule define(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyModule;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.Ruby.getComparable:()Lorg/jruby/RubyModule;
invokevirtual org.jruby.RubyModule.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
1: aload 1
ldc Lorg/jruby/javasupport/ext/JavaLang$Comparable;
invokevirtual org.jruby.RubyModule.defineAnnotatedMethods:(Ljava/lang/Class;)V
2: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 proxy Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
runtime final
proxy final
public static org.jruby.runtime.builtin.IRubyObject cmp(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.jruby.javasupport.JavaUtil.unwrapIfJavaObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
checkcast java.lang.Comparable
astore 3
start local 3 1: aload 2
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifeq 2
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: java.lang.Comparable
StackMap stack:
aload 2
invokestatic org.jruby.javasupport.JavaUtil.unwrapIfJavaObject:(Lorg/jruby/runtime/builtin/IRubyObject;)Ljava/lang/Object;
astore 4
start local 4 3: aload 3
aload 4
invokeinterface java.lang.Comparable.compareTo:(Ljava/lang/Object;)I
istore 5
start local 5 4: goto 7
end local 5 5: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.runtime.builtin.IRubyObject org.jruby.runtime.builtin.IRubyObject java.lang.Comparable java.lang.Object
StackMap stack: java.lang.ClassCastException
astore 6
start local 6 6: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 6
invokevirtual java.lang.ClassCastException.getMessage:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 6 start local 5 7: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
iload 5
i2l
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
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 context Lorg/jruby/runtime/ThreadContext;
0 8 1 self Lorg/jruby/runtime/builtin/IRubyObject;
0 8 2 other Lorg/jruby/runtime/builtin/IRubyObject;
1 8 3 comparable Ljava/lang/Comparable;
3 8 4 otherComp Ljava/lang/Object;
4 5 5 cmp I
7 8 5 cmp I
6 7 6 ex Ljava/lang/ClassCastException;
Exception table:
from to target type
3 4 5 Class java.lang.ClassCastException
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"<=>"})
MethodParameters:
Name Flags
context final
self final
other final
}
SourceFile: "JavaLang.java"
NestHost: org.jruby.javasupport.ext.JavaLang
InnerClasses:
public Comparable = org.jruby.javasupport.ext.JavaLang$Comparable of org.jruby.javasupport.ext.JavaLang
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"Java::JavaLang::Comparable"}, include = {"Comparable"})