public class org.jruby.PrependedModule extends org.jruby.IncludedModule
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.PrependedModule
super_class: org.jruby.IncludedModule
{
public void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyModule;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, 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.IncludedModule.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyModule;)V
1: aload 0
aload 3
getfield org.jruby.RubyModule.methods:Ljava/util/Map;
putfield org.jruby.PrependedModule.methods:Ljava/util/Map;
2: aload 3
getstatic java.util.Collections.EMPTY_MAP:Ljava/util/Map;
putfield org.jruby.RubyModule.methods:Ljava/util/Map;
3: aload 3
aload 0
putfield org.jruby.RubyModule.methodLocation:Lorg/jruby/RubyModule;
4: aload 0
getfield org.jruby.PrependedModule.methods:Ljava/util/Map;
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 9
StackMap locals: org.jruby.PrependedModule org.jruby.Ruby org.jruby.RubyClass org.jruby.RubyModule top java.util.Iterator
StackMap stack:
5: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 6: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast org.jruby.internal.runtime.methods.DynamicMethod
astore 6
start local 6 7: aload 0
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 6
aload 3
invokevirtual org.jruby.PrependedModule.moveRefinedMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;Lorg/jruby/RubyModule;)Z
ifeq 9
8: aload 0
getfield org.jruby.PrependedModule.methods:Ljava/util/Map;
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 6 end local 4 9: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/jruby/PrependedModule;
0 11 1 runtime Lorg/jruby/Ruby;
0 11 2 superClass Lorg/jruby/RubyClass;
0 11 3 klass Lorg/jruby/RubyModule;
6 9 4 entry Ljava/util/Map$Entry<Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;>;
7 9 6 method Lorg/jruby/internal/runtime/methods/DynamicMethod;
MethodParameters:
Name Flags
runtime
superClass
klass
private boolean moveRefinedMethod(java.lang.String, org.jruby.internal.runtime.methods.DynamicMethod, org.jruby.RubyModule);
descriptor: (Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;Lorg/jruby/RubyModule;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.isRefined:()Z
ifeq 6
1: aload 2
instanceof org.jruby.internal.runtime.methods.RefinedMarker
ifeq 4
2: aload 3
invokevirtual org.jruby.RubyModule.getMethodsForWrite:()Ljava/util/Map;
aload 1
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 3
invokevirtual org.jruby.RubyModule.getMethodsForWrite:()Ljava/util/Map;
aload 1
new org.jruby.internal.runtime.methods.RefinedMarker
dup
aload 3
aload 2
invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getVisibility:()Lorg/jruby/runtime/Visibility;
aload 2
invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.getName:()Ljava/lang/String;
invokespecial org.jruby.internal.runtime.methods.RefinedMarker.<init>:(Lorg/jruby/RubyModule;Lorg/jruby/runtime/Visibility;Ljava/lang/String;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/PrependedModule;
0 7 1 key Ljava/lang/String;
0 7 2 method Lorg/jruby/internal/runtime/methods/DynamicMethod;
0 7 3 klass Lorg/jruby/RubyModule;
MethodParameters:
Name Flags
key
method
klass
public void addMethod(java.lang.String, org.jruby.internal.runtime.methods.DynamicMethod);
descriptor: (Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)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.IncludedModule.addMethod:(Ljava/lang/String;Lorg/jruby/internal/runtime/methods/DynamicMethod;)V
1: aload 2
aload 0
getfield org.jruby.PrependedModule.origin:Lorg/jruby/RubyModule;
invokevirtual org.jruby.internal.runtime.methods.DynamicMethod.setDefinedClass:(Lorg/jruby/RubyModule;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/PrependedModule;
0 3 1 id Ljava/lang/String;
0 3 2 method Lorg/jruby/internal/runtime/methods/DynamicMethod;
MethodParameters:
Name Flags
id
method
public boolean isPrepended();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/PrependedModule;
}
SourceFile: "PrependedModule.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map