public class org.jruby.javasupport.binding.SingletonMethodInvokerInstaller extends org.jruby.javasupport.binding.StaticMethodInvokerInstaller
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.javasupport.binding.SingletonMethodInvokerInstaller
super_class: org.jruby.javasupport.binding.StaticMethodInvokerInstaller
{
final java.lang.Object singleton;
descriptor: Ljava/lang/Object;
flags: (0x0010) ACC_FINAL
public void <init>(java.lang.String, java.lang.Object);
descriptor: (Ljava/lang/String;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 // org.jruby.javasupport.binding.SingletonMethodInvokerInstaller this
start local 1 // java.lang.String name
start local 2 // java.lang.Object singleton
0: .line 17
aload 0 /* this */
aload 1 /* name */
invokespecial org.jruby.javasupport.binding.StaticMethodInvokerInstaller.<init>:(Ljava/lang/String;)V
1: .line 18
aload 0 /* this */
aload 2 /* singleton */
putfield org.jruby.javasupport.binding.SingletonMethodInvokerInstaller.singleton:Ljava/lang/Object;
2: .line 19
return
end local 2 // java.lang.Object singleton
end local 1 // java.lang.String name
end local 0 // org.jruby.javasupport.binding.SingletonMethodInvokerInstaller this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/javasupport/binding/SingletonMethodInvokerInstaller;
0 3 1 name Ljava/lang/String;
0 3 2 singleton Ljava/lang/Object;
MethodParameters:
Name Flags
name
singleton
void install(org.jruby.RubyModule);
descriptor: (Lorg/jruby/RubyModule;)V
flags: (0x0000)
Code:
stack=8, locals=3, args_size=2
start local 0 // org.jruby.javasupport.binding.SingletonMethodInvokerInstaller this
start local 1 // org.jruby.RubyModule proxy
0: .line 24
aload 1 /* proxy */
invokevirtual org.jruby.RubyModule.getSingletonClass:()Lorg/jruby/RubyClass;
astore 2 /* singletonClass */
start local 2 // org.jruby.RubyClass singletonClass
1: .line 25
aload 0 /* this */
aload 2 /* singletonClass */
new org.jruby.java.invokers.SingletonMethodInvoker
dup
aload 0 /* this */
getfield org.jruby.javasupport.binding.SingletonMethodInvokerInstaller.singleton:Ljava/lang/Object;
aload 2 /* singletonClass */
aload 0 /* this */
invokedynamic get(Lorg/jruby/javasupport/binding/SingletonMethodInvokerInstaller;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
org/jruby/javasupport/binding/SingletonMethodInvokerInstaller.lambda$0()[Ljava/lang/reflect/Method; (7)
()[Ljava/lang/reflect/Method;
aload 0 /* this */
getfield org.jruby.javasupport.binding.SingletonMethodInvokerInstaller.name:Ljava/lang/String;
invokespecial org.jruby.java.invokers.SingletonMethodInvoker.<init>:(Ljava/lang/Object;Lorg/jruby/RubyClass;Ljava/util/function/Supplier;Ljava/lang/String;)V
iconst_0
invokevirtual org.jruby.javasupport.binding.SingletonMethodInvokerInstaller.defineMethods:(Lorg/jruby/RubyModule;Lorg/jruby/internal/runtime/methods/DynamicMethod;Z)V
2: .line 26
return
end local 2 // org.jruby.RubyClass singletonClass
end local 1 // org.jruby.RubyModule proxy
end local 0 // org.jruby.javasupport.binding.SingletonMethodInvokerInstaller this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/javasupport/binding/SingletonMethodInvokerInstaller;
0 3 1 proxy Lorg/jruby/RubyModule;
1 3 2 singletonClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
proxy final
private java.lang.reflect.Method[] lambda$0();
descriptor: ()[Ljava/lang/reflect/Method;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 // org.jruby.javasupport.binding.SingletonMethodInvokerInstaller this
0: .line 25
aload 0 /* this */
getfield org.jruby.javasupport.binding.SingletonMethodInvokerInstaller.methods:Ljava/util/ArrayList;
aload 0 /* this */
getfield org.jruby.javasupport.binding.SingletonMethodInvokerInstaller.methods:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.size:()I
anewarray java.lang.reflect.Method
invokevirtual java.util.ArrayList.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.reflect.Method[]
areturn
end local 0 // org.jruby.javasupport.binding.SingletonMethodInvokerInstaller this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/javasupport/binding/SingletonMethodInvokerInstaller;
}
SourceFile: "SingletonMethodInvokerInstaller.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles