public class org.jruby.java.proxies.ConcreteJavaProxy extends org.jruby.java.proxies.JavaProxy
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.java.proxies.ConcreteJavaProxy
super_class: org.jruby.java.proxies.JavaProxy
{
private static final org.jruby.runtime.ObjectAllocator ALLOCATOR;
descriptor: Lorg/jruby/runtime/ObjectAllocator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.jruby.java.proxies.ConcreteJavaProxy$1
dup
invokespecial org.jruby.java.proxies.ConcreteJavaProxy$1.<init>:()V
putstatic org.jruby.java.proxies.ConcreteJavaProxy.ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial org.jruby.java.proxies.JavaProxy.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/java/proxies/ConcreteJavaProxy;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klazz Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klazz
public void <init>(org.jruby.Ruby, org.jruby.RubyClass, java.lang.Object);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
aload 3
invokespecial org.jruby.java.proxies.JavaProxy.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Ljava/lang/Object;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/java/proxies/ConcreteJavaProxy;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klazz Lorg/jruby/RubyClass;
0 2 3 object Ljava/lang/Object;
MethodParameters:
Name Flags
runtime
klazz
object
public static org.jruby.RubyClass createConcreteJavaProxy(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 1
start local 1 1: aload 1
invokevirtual org.jruby.Ruby.getJavaSupport:()Lorg/jruby/javasupport/JavaSupport;
invokevirtual org.jruby.javasupport.JavaSupport.getJavaProxyClass:()Lorg/jruby/RubyClass;
astore 2
start local 2 2: aload 1
ldc "ConcreteJavaProxy"
aload 2
getstatic org.jruby.java.proxies.ConcreteJavaProxy.ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 3
start local 3 3: aload 3
invokestatic org.jruby.java.proxies.ConcreteJavaProxy.initialize:(Lorg/jruby/RubyClass;)V
4: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 context Lorg/jruby/runtime/ThreadContext;
1 5 1 runtime Lorg/jruby/Ruby;
2 5 2 JavaProxy Lorg/jruby/RubyClass;
3 5 3 ConcreteJavaProxy Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
context final
protected static void initialize(org.jruby.RubyClass);
descriptor: (Lorg/jruby/RubyClass;)V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
ldc "initialize"
new org.jruby.java.proxies.ConcreteJavaProxy$InitializeMethod
dup
aload 0
invokespecial org.jruby.java.proxies.ConcreteJavaProxy$InitializeMethod.<init>:(Lorg/jruby/RubyClass;)V
invokevirtual org.jruby.RubyClass.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
1: aload 0
invokevirtual org.jruby.RubyClass.getSingletonClass:()Lorg/jruby/RubyClass;
astore 1
start local 1 2: aload 1
ldc "new"
new org.jruby.java.proxies.ConcreteJavaProxy$NewMethod
dup
aload 1
invokespecial org.jruby.java.proxies.ConcreteJavaProxy$NewMethod.<init>:(Lorg/jruby/RubyClass;)V
invokevirtual org.jruby.RubyClass.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 ConcreteJavaProxy Lorg/jruby/RubyClass;
2 4 1 singleton Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
ConcreteJavaProxy final
public org.jruby.runtime.builtin.IRubyObject id();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.java.proxies.ConcreteJavaProxy.getRuntime:()Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.java.proxies.ConcreteJavaProxy.getObject:()Ljava/lang/Object;
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)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/java/proxies/ConcreteJavaProxy;
public <T> T toJava(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.java.proxies.ConcreteJavaProxy.getObject:()Ljava/lang/Object;
astore 2
start local 2 1: aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
astore 3
start local 3 2: aload 1
invokevirtual java.lang.Class.isPrimitive:()Z
ifeq 8
3: aload 1
getstatic java.lang.Void.TYPE:Ljava/lang/Class;
if_acmpne 4
aconst_null
areturn
4: StackMap locals: java.lang.Object java.lang.Class
StackMap stack:
aload 2
instanceof java.lang.Number
ifeq 5
aload 1
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 7
5: StackMap locals:
StackMap stack:
aload 2
instanceof java.lang.Character
ifeq 6
aload 1
getstatic java.lang.Character.TYPE:Ljava/lang/Class;
if_acmpeq 7
6: StackMap locals:
StackMap stack:
aload 2
instanceof java.lang.Boolean
ifeq 13
aload 1
getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
if_acmpne 13
7: StackMap locals:
StackMap stack:
aload 2
areturn
8: StackMap locals:
StackMap stack:
aload 1
aload 3
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 12
9: getstatic org.jruby.javasupport.Java.OBJECT_PROXY_CACHE:Z
ifne 10
aload 0
getfield org.jruby.java.proxies.ConcreteJavaProxy.metaClass:Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getCacheProxy:()Z
ifeq 11
10: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.java.proxies.ConcreteJavaProxy.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getJavaSupport:()Lorg/jruby/javasupport/JavaSupport;
invokevirtual org.jruby.javasupport.JavaSupport.getObjectProxyCache:()Lorg/jruby/javasupport/util/ObjectProxyCache;
aload 2
aload 0
invokevirtual org.jruby.javasupport.util.ObjectProxyCache.put:(Ljava/lang/Object;Ljava/lang/Object;)V
11: StackMap locals:
StackMap stack:
aload 1
aload 2
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
12: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 13
aload 1
aload 0
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.java.proxies.ConcreteJavaProxy.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "failed to coerce "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.Class.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.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/jruby/java/proxies/ConcreteJavaProxy;
0 14 1 type Ljava/lang/Class<TT;>;
1 14 2 object Ljava/lang/Object;
2 14 3 clazz Ljava/lang/Class;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
type
}
SourceFile: "ConcreteJavaProxy.java"
NestMembers:
org.jruby.java.proxies.ConcreteJavaProxy$1 org.jruby.java.proxies.ConcreteJavaProxy$InitializeMethod org.jruby.java.proxies.ConcreteJavaProxy$NewMethod
InnerClasses:
org.jruby.java.proxies.ConcreteJavaProxy$1
private final InitializeMethod = org.jruby.java.proxies.ConcreteJavaProxy$InitializeMethod of org.jruby.java.proxies.ConcreteJavaProxy
private final NewMethod = org.jruby.java.proxies.ConcreteJavaProxy$NewMethod of org.jruby.java.proxies.ConcreteJavaProxy