public final class org.jruby.ext.ffi.Enums extends org.jruby.RubyObject
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.ext.ffi.Enums
super_class: org.jruby.RubyObject
{
private final org.jruby.RubyArray allEnums;
descriptor: Lorg/jruby/RubyArray;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.RubyHash symbolMap;
descriptor: Lorg/jruby/RubyHash;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.RubyHash taggedEnums;
descriptor: Lorg/jruby/RubyHash;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public static org.jruby.RubyClass createEnumsClass(org.jruby.Ruby, org.jruby.RubyModule);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyModule;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ldc "Enums"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
1: getstatic org.jruby.ext.ffi.Enums$Allocator.INSTANCE:Lorg/jruby/runtime/ObjectAllocator;
2: invokevirtual org.jruby.RubyModule.defineClassUnder:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 2
start local 2 3: aload 2
ldc Lorg/jruby/ext/ffi/Enums;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
4: aload 2
ldc Lorg/jruby/ext/ffi/Enums;
invokevirtual org.jruby.RubyClass.defineAnnotatedConstants:(Ljava/lang/Class;)V
5: aload 2
aload 1
ldc "DataConverter"
invokevirtual org.jruby.RubyModule.getConstant:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyClass.includeModule:(Lorg/jruby/runtime/builtin/IRubyObject;)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
0 7 1 ffiModule Lorg/jruby/RubyModule;
3 7 2 enumsClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
ffiModule
private void <init>(org.jruby.Ruby, org.jruby.RubyClass);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;)V
flags: (0x0002) ACC_PRIVATE
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: aload 0
aload 1
invokestatic org.jruby.RubyArray.newArray:(Lorg/jruby/Ruby;)Lorg/jruby/RubyArray;
putfield org.jruby.ext.ffi.Enums.allEnums:Lorg/jruby/RubyArray;
2: aload 0
aload 1
invokestatic org.jruby.RubyHash.newHash:(Lorg/jruby/Ruby;)Lorg/jruby/RubyHash;
putfield org.jruby.ext.ffi.Enums.taggedEnums:Lorg/jruby/RubyHash;
3: aload 0
aload 1
invokestatic org.jruby.RubyHash.newHash:(Lorg/jruby/Ruby;)Lorg/jruby/RubyHash;
putfield org.jruby.ext.ffi.Enums.symbolMap:Lorg/jruby/RubyHash;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/ext/ffi/Enums;
0 5 1 runtime Lorg/jruby/Ruby;
0 5 2 klass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
klass
public final org.jruby.runtime.builtin.IRubyObject initialize(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Enums;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"initialize"}, visibility = org.jruby.runtime.Visibility.PRIVATE:Lorg/jruby/runtime/Visibility;)
MethodParameters:
Name Flags
context
public org.jruby.runtime.builtin.IRubyObject append(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=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
instanceof org.jruby.ext.ffi.Enum
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.getFFI:()Lorg/jruby/ext/ffi/FFI;
getfield org.jruby.ext.ffi.FFI.ffiModule:Lorg/jruby/RubyModule;
ldc "Enum"
invokevirtual org.jruby.RubyModule.getClass:(Ljava/lang/String;)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
getfield org.jruby.ext.ffi.Enums.allEnums:Lorg/jruby/RubyArray;
aload 2
invokevirtual org.jruby.RubyArray.append:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyArray;
pop
3: aload 2
ifnull 7
aload 2
aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpeq 7
4: aload 2
checkcast org.jruby.ext.ffi.Enum
aload 1
invokevirtual org.jruby.ext.ffi.Enum.tag:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 3
start local 3 5: aload 3
ifnull 7
aload 3
invokeinterface org.jruby.runtime.builtin.IRubyObject.isNil:()Z
ifne 7
6: aload 0
getfield org.jruby.ext.ffi.Enums.taggedEnums:Lorg/jruby/RubyHash;
aload 3
aload 2
invokevirtual org.jruby.RubyHash.fastASet:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)V
end local 3 7: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.ext.ffi.Enums.symbolMap:Lorg/jruby/RubyHash;
aload 1
aload 2
checkcast org.jruby.ext.ffi.Enum
aload 1
invokevirtual org.jruby.ext.ffi.Enum.symbol_map:(Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
getstatic org.jruby.runtime.Block.NULL_BLOCK:Lorg/jruby/runtime/Block;
invokevirtual org.jruby.RubyHash.merge_bang:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/Block;)Lorg/jruby/RubyHash;
pop
8: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/ext/ffi/Enums;
0 9 1 context Lorg/jruby/runtime/ThreadContext;
0 9 2 item Lorg/jruby/runtime/builtin/IRubyObject;
5 7 3 tag Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"<<"})
MethodParameters:
Name Flags
context final
item
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.ext.ffi.Enums.allEnums:Lorg/jruby/RubyArray;
invokevirtual org.jruby.RubyArray.isEmpty:()Z
ifeq 1
aload 0
getfield org.jruby.ext.ffi.Enums.symbolMap:Lorg/jruby/RubyHash;
invokevirtual org.jruby.RubyHash.isEmpty:()Z
ifeq 1
aload 0
getfield org.jruby.ext.ffi.Enums.taggedEnums:Lorg/jruby/RubyHash;
invokevirtual org.jruby.RubyHash.isEmpty:()Z
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/ext/ffi/Enums;
public org.jruby.RubyBoolean empty_p();
descriptor: ()Lorg/jruby/RubyBoolean;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.ext.ffi.Enums.isEmpty:()Z
ifeq 1
aload 0
invokevirtual org.jruby.ext.ffi.Enums.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual org.jruby.ext.ffi.Enums.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/ext/ffi/Enums;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"empty?"})
public org.jruby.runtime.builtin.IRubyObject find(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=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.jruby.ext.ffi.Enums.taggedEnums:Lorg/jruby/RubyHash;
aload 1
aload 2
invokevirtual org.jruby.RubyHash.has_key_p:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyBoolean.isTrue:()Z
ifeq 2
1: aload 0
getfield org.jruby.ext.ffi.Enums.taggedEnums:Lorg/jruby/RubyHash;
aload 2
invokevirtual org.jruby.RubyHash.fastARef:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.jruby.ext.ffi.Enums.allEnums:Lorg/jruby/RubyArray;
iload 3
invokevirtual org.jruby.RubyArray.entry:(I)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 5: aload 4
aload 1
ldc "symbols"
invokeinterface org.jruby.runtime.builtin.IRubyObject.callMethod:(Lorg/jruby/runtime/ThreadContext;Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
checkcast org.jruby.RubyArray
aload 1
aload 2
invokevirtual org.jruby.RubyArray.include_p:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyBoolean.isTrue:()Z
ifeq 7
6: aload 4
areturn
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 0
getfield org.jruby.ext.ffi.Enums.allEnums:Lorg/jruby/RubyArray;
invokevirtual org.jruby.RubyArray.getLength:()I
if_icmplt 4
end local 3 9: aload 1
getfield org.jruby.runtime.ThreadContext.nil:Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/ext/ffi/Enums;
0 10 1 context Lorg/jruby/runtime/ThreadContext;
0 10 2 query Lorg/jruby/runtime/builtin/IRubyObject;
3 9 3 i I
5 7 4 item Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"find"})
MethodParameters:
Name Flags
context final
query
public org.jruby.runtime.builtin.IRubyObject mapSymbol(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 0
getfield org.jruby.ext.ffi.Enums.symbolMap:Lorg/jruby/RubyHash;
aload 1
aload 2
invokevirtual org.jruby.RubyHash.op_aref:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/ext/ffi/Enums;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
0 1 2 symbol Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"__map_symbol"})
MethodParameters:
Name Flags
context final
symbol
}
SourceFile: "Enums.java"
NestMembers:
org.jruby.ext.ffi.Enums$Allocator
InnerClasses:
private final Allocator = org.jruby.ext.ffi.Enums$Allocator of org.jruby.ext.ffi.Enums
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"FFI::Enums"}, parent = "Object")