public class org.jruby.RubyGenerator extends org.jruby.RubyObject
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyGenerator
super_class: org.jruby.RubyObject
{
private org.jruby.RubyProc proc;
descriptor: Lorg/jruby/RubyProc;
flags: (0x0002) ACC_PRIVATE
public static org.jruby.RubyClass createGeneratorClass(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
ldc "Generator"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
new org.jruby.RubyGenerator$1
dup
invokespecial org.jruby.RubyGenerator$1.<init>:()V
1: aload 1
2: invokevirtual org.jruby.Ruby.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
astore 2
start local 2 3: aload 2
aload 0
invokevirtual org.jruby.Ruby.getEnumerable:()Lorg/jruby/RubyModule;
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
4: aload 2
ldc Lorg/jruby/RubyGenerator;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 runtime Lorg/jruby/Ruby;
0 6 1 enumeratorModule Lorg/jruby/RubyClass;
3 6 2 genc Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
enumeratorModule
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.RubyObject.<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/RubyGenerator;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 klass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klass
public org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
astore 4
start local 4 1: aload 2
arraylength
ifne 4
2: aload 4
aload 3
getstatic org.jruby.runtime.Block$Type.PROC:Lorg/jruby/runtime/Block$Type;
invokestatic org.jruby.RubyProc.newProc:(Lorg/jruby/Ruby;Lorg/jruby/runtime/Block;Lorg/jruby/runtime/Block$Type;)Lorg/jruby/RubyProc;
astore 5
start local 5 3: goto 9
end local 5 4: StackMap locals: org.jruby.Ruby
StackMap stack:
aload 2
iconst_0
aaload
instanceof org.jruby.RubyProc
ifne 6
5: aload 4
aload 2
iconst_0
aaload
aload 4
invokevirtual org.jruby.Ruby.getProc:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
6: StackMap locals:
StackMap stack:
aload 2
iconst_0
aaload
checkcast org.jruby.RubyProc
astore 5
start local 5 7: aload 3
invokevirtual org.jruby.runtime.Block.isGiven:()Z
ifeq 9
8: aload 4
invokevirtual org.jruby.Ruby.getWarnings:()Lorg/jruby/common/RubyWarnings;
getstatic org.jruby.common.IRubyWarnings$ID.BLOCK_UNUSED:Lorg/jruby/common/IRubyWarnings$ID;
ldc "given block not used"
invokevirtual org.jruby.common.RubyWarnings.warn:(Lorg/jruby/common/IRubyWarnings$ID;Ljava/lang/String;)V
9: StackMap locals: org.jruby.RubyProc
StackMap stack:
aload 0
aload 5
putfield org.jruby.RubyGenerator.proc:Lorg/jruby/RubyProc;
10: aload 0
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 this Lorg/jruby/RubyGenerator;
0 11 1 context Lorg/jruby/runtime/ThreadContext;
0 11 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 11 3 block Lorg/jruby/runtime/Block;
1 11 4 runtime Lorg/jruby/Ruby;
3 4 5 proc Lorg/jruby/RubyProc;
7 11 5 proc Lorg/jruby/RubyProc;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;, optional = 1)
MethodParameters:
Name Flags
context
args
block
public org.jruby.runtime.builtin.IRubyObject initialize_copy(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: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.RubyGenerator
ifne 2
1: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getGenerator:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.Ruby.newTypeError:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/RubyClass;)Lorg/jruby/exceptions/RaiseException;
athrow
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.RubyGenerator.checkFrozen:()V
3: aload 0
aload 2
checkcast org.jruby.RubyGenerator
getfield org.jruby.RubyGenerator.proc:Lorg/jruby/RubyProc;
putfield org.jruby.RubyGenerator.proc:Lorg/jruby/RubyProc;
4: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/RubyGenerator;
0 5 1 context Lorg/jruby/runtime/ThreadContext;
0 5 2 other Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
other
public org.jruby.runtime.builtin.IRubyObject each(org.jruby.runtime.ThreadContext, org.jruby.runtime.builtin.IRubyObject[], org.jruby.runtime.Block);
descriptor: (Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/runtime/builtin/IRubyObject;
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
getfield org.jruby.RubyGenerator.proc:Lorg/jruby/RubyProc;
aload 1
aload 1
aload 3
invokestatic org.jruby.RubyYielder.newYielder:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyYielder;
aload 2
invokestatic org.jruby.util.ArraySupport.newCopy:(Lorg/jruby/runtime/builtin/IRubyObject;[Lorg/jruby/runtime/builtin/IRubyObject;)[Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyProc.call:(Lorg/jruby/runtime/ThreadContext;[Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyGenerator;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 args [Lorg/jruby/runtime/builtin/IRubyObject;
0 1 3 block Lorg/jruby/runtime/Block;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(rest = true)
MethodParameters:
Name Flags
context
args
block
public org.jruby.RubyProc getProc();
descriptor: ()Lorg/jruby/RubyProc;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyGenerator.proc:Lorg/jruby/RubyProc;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyGenerator;
}
SourceFile: "RubyGenerator.java"
NestMembers:
org.jruby.RubyGenerator$1
InnerClasses:
org.jruby.RubyGenerator$1
public final ID = org.jruby.common.IRubyWarnings$ID of org.jruby.common.IRubyWarnings
public final Type = org.jruby.runtime.Block$Type of org.jruby.runtime.Block
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"Enumerator::Generator"})