public abstract class org.jruby.java.addons.ClassJavaAddons
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.java.addons.ClassJavaAddons
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/java/addons/ClassJavaAddons;
public static org.jruby.runtime.builtin.IRubyObject java_class(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.jruby.RubyClass
invokestatic org.jruby.RubyClass.nearestReifiedClass:(Lorg/jruby/RubyClass;)Ljava/lang/Class;
astore 2
start local 2 1: aload 2
ifnonnull 2
aload 0
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals: java.lang.Class
StackMap stack:
aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
invokestatic org.jruby.java.addons.ClassJavaAddons.asJavaClass:(Lorg/jruby/Ruby;Ljava/lang/Class;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
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 self Lorg/jruby/runtime/builtin/IRubyObject;
1 3 2 reifiedClass Ljava/lang/Class;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod()
MethodParameters:
Name Flags
context
self final
private static org.jruby.runtime.builtin.IRubyObject asJavaClass(org.jruby.Ruby, java.lang.Class<?>);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/Class;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.jruby.javasupport.Java.getInstance:(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 runtime Lorg/jruby/Ruby;
0 1 1 reifiedClass Ljava/lang/Class<*>;
Signature: (Lorg/jruby/Ruby;Ljava/lang/Class<*>;)Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
runtime final
reifiedClass final
public static org.jruby.runtime.builtin.IRubyObject become_java(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
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
checkcast org.jruby.RubyClass
aconst_null
iconst_1
invokestatic org.jruby.java.addons.ClassJavaAddons.becomeJava:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;Ljava/lang/String;Z)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 context Lorg/jruby/runtime/ThreadContext;
0 1 1 self Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"become_java!"}, required = 0)
MethodParameters:
Name Flags
context
self final
public static org.jruby.runtime.builtin.IRubyObject become_java(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=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast org.jruby.RubyClass
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: iconst_1
istore 5
start local 5 3: aload 2
iconst_0
aaload
instanceof org.jruby.RubyString
ifeq 7
4: aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.asJavaString:()Ljava/lang/String;
astore 4
5: aload 2
arraylength
iconst_1
if_icmple 10
aload 2
iconst_1
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
istore 5
6: goto 10
7: StackMap locals: org.jruby.RubyClass java.lang.String int
StackMap stack:
aload 2
iconst_0
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.isTrue:()Z
istore 5
8: aload 2
arraylength
iconst_1
if_icmple 10
aload 2
iconst_1
aaload
instanceof org.jruby.RubyString
ifeq 10
9: aload 2
iconst_1
aaload
invokeinterface org.jruby.runtime.builtin.IRubyObject.asJavaString:()Ljava/lang/String;
astore 4
10: StackMap locals:
StackMap stack:
aload 0
aload 3
aload 4
iload 5
invokestatic org.jruby.java.addons.ClassJavaAddons.becomeJava:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;Ljava/lang/String;Z)Lorg/jruby/runtime/builtin/IRubyObject;
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 11 0 context Lorg/jruby/runtime/ThreadContext;
0 11 1 self Lorg/jruby/runtime/builtin/IRubyObject;
0 11 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
1 11 3 klass Lorg/jruby/RubyClass;
2 11 4 dumpDir Ljava/lang/String;
3 11 5 useChildLoader Z
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"become_java!"}, required = 1, optional = 1)
MethodParameters:
Name Flags
context
self final
args final
private static org.jruby.runtime.builtin.IRubyObject becomeJava(org.jruby.runtime.ThreadContext, org.jruby.RubyClass, java.lang.String, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;Ljava/lang/String;Z)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
iload 3
invokevirtual org.jruby.RubyClass.reifyWithAncestors:(Ljava/lang/String;Z)V
1: aload 1
invokevirtual org.jruby.RubyClass.getReifiedClass:()Ljava/lang/Class;
astore 4
start local 4 2: aload 0
aload 1
aload 4
invokestatic org.jruby.java.addons.ClassJavaAddons.generateFieldAccessors:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;Ljava/lang/Class;)V
3: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 4
invokestatic org.jruby.java.addons.ClassJavaAddons.asJavaClass:(Lorg/jruby/Ruby;Ljava/lang/Class;)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 4 0 context Lorg/jruby/runtime/ThreadContext;
0 4 1 klass Lorg/jruby/RubyClass;
0 4 2 dumpDir Ljava/lang/String;
0 4 3 useChildLoader Z
2 4 4 reifiedClass Ljava/lang/Class<*>;
MethodParameters:
Name Flags
context final
klass final
dumpDir final
useChildLoader final
private static void generateFieldAccessors(org.jruby.runtime.ThreadContext, org.jruby.RubyClass, java.lang.Class<?>);
descriptor: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;Ljava/lang/Class;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic org.jruby.java.addons.ClassJavaAddons.getJavaFieldNames:(Lorg/jruby/RubyClass;)Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 7
StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyClass java.lang.Class top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.lang.Class.getDeclaredField:(Ljava/lang/String;)Ljava/lang/reflect/Field;
astore 5
start local 5 3: goto 6
end local 5 4: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyClass java.lang.Class java.lang.String java.util.Iterator
StackMap stack: java.lang.NoSuchFieldException
pop
5: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "no field: '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' in reified class for "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual org.jruby.RubyClass.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.jruby.Ruby.newRuntimeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
start local 5 6: StackMap locals: java.lang.reflect.Field
StackMap stack:
aload 0
aload 3
aload 5
aload 1
invokestatic org.jruby.java.proxies.JavaProxy.installField:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;Ljava/lang/reflect/Field;Lorg/jruby/RubyModule;)V
end local 5 end local 3 7: StackMap locals: org.jruby.runtime.ThreadContext org.jruby.RubyClass java.lang.Class top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 context Lorg/jruby/runtime/ThreadContext;
0 9 1 klass Lorg/jruby/RubyClass;
0 9 2 javaClass Ljava/lang/Class<*>;
2 7 3 name Ljava/lang/String;
3 4 5 field Ljava/lang/reflect/Field;
6 7 5 field Ljava/lang/reflect/Field;
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldException
Signature: (Lorg/jruby/runtime/ThreadContext;Lorg/jruby/RubyClass;Ljava/lang/Class<*>;)V
MethodParameters:
Name Flags
context
klass final
javaClass final
private static java.util.Set<java.lang.String> getJavaFieldNames(org.jruby.RubyClass);
descriptor: (Lorg/jruby/RubyClass;)Ljava/util/Set;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.RubyClass.getFieldSignatures:()Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 klass Lorg/jruby/RubyClass;
Signature: (Lorg/jruby/RubyClass;)Ljava/util/Set<Ljava/lang/String;>;
MethodParameters:
Name Flags
klass final
}
SourceFile: "ClassJavaAddons.java"