public class org.jruby.embed.internal.EmbedRubyInterfaceAdapterImpl implements org.jruby.embed.EmbedRubyInterfaceAdapter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.internal.EmbedRubyInterfaceAdapterImpl
super_class: java.lang.Object
{
private final org.jruby.embed.ScriptingContainer container;
descriptor: Lorg/jruby/embed/ScriptingContainer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.embed.ScriptingContainer);
descriptor: (Lorg/jruby/embed/ScriptingContainer;)V
flags: (0x0001) ACC_PUBLIC
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.embed.internal.EmbedRubyInterfaceAdapterImpl.container:Lorg/jruby/embed/ScriptingContainer;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/internal/EmbedRubyInterfaceAdapterImpl;
0 3 1 container Lorg/jruby/embed/ScriptingContainer;
MethodParameters:
Name Flags
container
public <T> T getInstance(, java.lang.Class<T>);
descriptor: (Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 1
aload 2
invokevirtual java.lang.Class.isInterface:()Z
ifne 2
1: StackMap locals:
StackMap stack:
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.internal.EmbedRubyInterfaceAdapterImpl.container:Lorg/jruby/embed/ScriptingContainer;
invokevirtual org.jruby.embed.ScriptingContainer.getProvider:()Lorg/jruby/embed/internal/LocalContextProvider;
invokeinterface org.jruby.embed.internal.LocalContextProvider.getRuntime:()Lorg/jruby/Ruby;
astore 3
start local 3 3: aload 1
ifnull 4
aload 1
instanceof org.jruby.RubyNil
ifeq 6
4: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 3
aload 3
invokevirtual org.jruby.Ruby.getTopSelf:()Lorg/jruby/runtime/builtin/IRubyObject;
aload 2
invokestatic org.jruby.javasupport.JavaEmbedUtils.rubyToJava:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)Ljava/lang/Object;
astore 4
start local 4 5: goto 11
end local 4 StackMap locals:
StackMap stack:
6: aload 1
instanceof org.jruby.runtime.builtin.IRubyObject
ifeq 9
7: aload 3
aload 1
checkcast org.jruby.runtime.builtin.IRubyObject
aload 2
invokestatic org.jruby.javasupport.JavaEmbedUtils.rubyToJava:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)Ljava/lang/Object;
astore 4
start local 4 8: goto 11
end local 4 9: StackMap locals:
StackMap stack:
aload 3
aload 1
invokestatic org.jruby.javasupport.JavaUtil.convertJavaToRuby:(Lorg/jruby/Ruby;Ljava/lang/Object;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 5
start local 5 10: aload 3
aload 5
aload 2
invokestatic org.jruby.javasupport.JavaEmbedUtils.rubyToJava:(Lorg/jruby/Ruby;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)Ljava/lang/Object;
astore 4
end local 5 start local 4 11: StackMap locals: java.lang.Object
StackMap stack:
aload 2
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
astore 5
start local 5 12: aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 6
start local 6 13: aload 5
iconst_1
aload 6
invokestatic java.lang.Class.forName:(Ljava/lang/String;ZLjava/lang/ClassLoader;)Ljava/lang/Class;
astore 7
start local 7 14: aload 7
aload 4
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
15: areturn
end local 7 16: StackMap locals: org.jruby.embed.internal.EmbedRubyInterfaceAdapterImpl java.lang.Object java.lang.Class org.jruby.Ruby java.lang.Object java.lang.String java.lang.ClassLoader
StackMap stack: java.lang.ClassNotFoundException
astore 7
start local 7 17: new org.jruby.embed.InvokeFailedException
dup
aload 7
invokespecial org.jruby.embed.InvokeFailedException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 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 18 0 this Lorg/jruby/embed/internal/EmbedRubyInterfaceAdapterImpl;
0 18 1 receiver Ljava/lang/Object;
0 18 2 clazz Ljava/lang/Class<TT;>;
3 18 3 runtime Lorg/jruby/Ruby;
5 6 4 obj Ljava/lang/Object;
8 9 4 obj Ljava/lang/Object;
11 18 4 obj Ljava/lang/Object;
10 11 5 rubyReceiver Lorg/jruby/runtime/builtin/IRubyObject;
12 18 5 name Ljava/lang/String;
13 18 6 loader Ljava/lang/ClassLoader;
14 16 7 klass Ljava/lang/Class<TT;>;
17 18 7 e Ljava/lang/ClassNotFoundException;
Exception table:
from to target type
13 15 16 Class java.lang.ClassNotFoundException
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Object;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
receiver
clazz
}
SourceFile: "EmbedRubyInterfaceAdapterImpl.java"