public class org.jruby.RubyBoolean extends org.jruby.RubyObject implements org.jruby.compiler.Constantizable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.RubyBoolean
super_class: org.jruby.RubyObject
{
private final int hashCode;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final transient java.lang.Object constant;
descriptor: Ljava/lang/Object;
flags: (0x0092) ACC_PRIVATE, ACC_FINAL, ACC_TRANSIENT
static final org.jruby.util.ByteList FALSE_BYTES;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final org.jruby.util.ByteList TRUE_BYTES;
descriptor: Lorg/jruby/util/ByteList;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=0, args_size=0
0: new org.jruby.util.ByteList
dup
iconst_5
newarray 8
dup
iconst_0
bipush 102
bastore
dup
iconst_1
bipush 97
bastore
dup
iconst_2
bipush 108
bastore
dup
iconst_3
bipush 115
bastore
dup
iconst_4
bipush 101
bastore
getstatic org.jcodings.specific.USASCIIEncoding.INSTANCE:Lorg/jcodings/specific/USASCIIEncoding;
invokespecial org.jruby.util.ByteList.<init>:([BLorg/jcodings/Encoding;)V
putstatic org.jruby.RubyBoolean.FALSE_BYTES:Lorg/jruby/util/ByteList;
1: new org.jruby.util.ByteList
dup
iconst_4
newarray 8
dup
iconst_0
bipush 116
bastore
dup
iconst_1
bipush 114
bastore
dup
iconst_2
bipush 117
bastore
dup
iconst_3
bipush 101
bastore
getstatic org.jcodings.specific.USASCIIEncoding.INSTANCE:Lorg/jcodings/specific/USASCIIEncoding;
invokespecial org.jruby.util.ByteList.<init>:([BLorg/jcodings/Encoding;)V
putstatic org.jruby.RubyBoolean.TRUE_BYTES:Lorg/jruby/util/ByteList;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(org.jruby.Ruby, boolean);
descriptor: (Lorg/jruby/Ruby;Z)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
1: iload 2
ifeq 2
aload 1
invokevirtual org.jruby.Ruby.getTrueClass:()Lorg/jruby/RubyClass;
goto 3
StackMap locals: uninitialized-this org.jruby.Ruby int
StackMap stack: uninitialized-this org.jruby.Ruby
2: aload 1
invokevirtual org.jruby.Ruby.getFalseClass:()Lorg/jruby/RubyClass;
3: StackMap locals: uninitialized-this org.jruby.Ruby int
StackMap stack: uninitialized-this org.jruby.Ruby org.jruby.RubyClass
iconst_0
invokespecial org.jruby.RubyObject.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Z)V
4: iload 2
ifne 5
aload 0
getstatic org.jruby.RubyBoolean.FALSE_F:I
putfield org.jruby.RubyBoolean.flags:I
5: StackMap locals: org.jruby.RubyBoolean org.jruby.Ruby int
StackMap stack:
getstatic org.jruby.RubyInstanceConfig.CONSISTENT_HASHING_ENABLED:Z
ifeq 10
6: aload 0
iload 2
ifeq 7
sipush 155
goto 8
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
7: bipush -48
StackMap locals: org.jruby.RubyBoolean org.jruby.Ruby int
StackMap stack: org.jruby.RubyBoolean int
8: putfield org.jruby.RubyBoolean.hashCode:I
9: goto 11
10: StackMap locals:
StackMap stack:
aload 0
aload 0
invokestatic java.lang.System.identityHashCode:(Ljava/lang/Object;)I
putfield org.jruby.RubyBoolean.hashCode:I
11: StackMap locals:
StackMap stack:
aload 0
ldc Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
invokestatic org.jruby.runtime.opto.OptoFactory.newConstantWrapper:(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object;
putfield org.jruby.RubyBoolean.constant:Ljava/lang/Object;
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/RubyBoolean;
0 13 1 runtime Lorg/jruby/Ruby;
0 13 2 value Z
MethodParameters:
Name Flags
runtime
value
public org.jruby.runtime.ClassIndex getNativeClassIndex();
descriptor: ()Lorg/jruby/runtime/ClassIndex;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyBoolean.flags:I
getstatic org.jruby.RubyBoolean.FALSE_F:I
iand
ifne 1
getstatic org.jruby.runtime.ClassIndex.TRUE:Lorg/jruby/runtime/ClassIndex;
goto 2
StackMap locals:
StackMap stack:
1: getstatic org.jruby.runtime.ClassIndex.FALSE:Lorg/jruby/runtime/ClassIndex;
StackMap locals:
StackMap stack: org.jruby.runtime.ClassIndex
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyBoolean;
public boolean isImmediate();
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/RubyBoolean;
public org.jruby.RubyClass getSingletonClass();
descriptor: ()Lorg/jruby/RubyClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyBoolean.metaClass:Lorg/jruby/RubyClass;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyBoolean;
public java.lang.Class<?> getJavaClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic java.lang.Boolean.TYPE:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyBoolean;
Signature: ()Ljava/lang/Class<*>;
public java.lang.Object constant();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyBoolean.constant:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyBoolean;
public static org.jruby.RubyClass createFalseClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "FalseClass"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
getstatic org.jruby.runtime.ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
getstatic org.jruby.runtime.ClassIndex.FALSE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.RubyClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
2: aload 1
ldc Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
3: aload 1
ldc Lorg/jruby/RubyBoolean$False;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
4: aload 1
ldc Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
5: aload 1
invokevirtual org.jruby.RubyClass.getMetaClass:()Lorg/jruby/RubyClass;
ldc "new"
invokevirtual org.jruby.RubyClass.undefineMethod:(Ljava/lang/String;)V
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
1 7 1 falseClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
public static org.jruby.RubyClass createTrueClass(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Lorg/jruby/RubyClass;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
ldc "TrueClass"
aload 0
invokevirtual org.jruby.Ruby.getObject:()Lorg/jruby/RubyClass;
getstatic org.jruby.runtime.ObjectAllocator.NOT_ALLOCATABLE_ALLOCATOR:Lorg/jruby/runtime/ObjectAllocator;
invokevirtual org.jruby.Ruby.defineClass:(Ljava/lang/String;Lorg/jruby/RubyClass;Lorg/jruby/runtime/ObjectAllocator;)Lorg/jruby/RubyClass;
astore 1
start local 1 1: aload 1
getstatic org.jruby.runtime.ClassIndex.TRUE:Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.RubyClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
2: aload 1
ldc Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyClass.setReifiedClass:(Ljava/lang/Class;)V
3: aload 1
ldc Lorg/jruby/RubyBoolean$True;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
4: aload 1
ldc Lorg/jruby/RubyBoolean;
invokevirtual org.jruby.RubyClass.defineAnnotatedMethods:(Ljava/lang/Class;)V
5: aload 1
invokevirtual org.jruby.RubyClass.getMetaClass:()Lorg/jruby/RubyClass;
ldc "new"
invokevirtual org.jruby.RubyClass.undefineMethod:(Ljava/lang/String;)V
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 runtime Lorg/jruby/Ruby;
1 7 1 trueClass Lorg/jruby/RubyClass;
MethodParameters:
Name Flags
runtime
public static org.jruby.RubyBoolean newBoolean(org.jruby.Ruby, boolean);
descriptor: (Lorg/jruby/Ruby;Z)Lorg/jruby/RubyBoolean;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
invokevirtual org.jruby.Ruby.getTrue:()Lorg/jruby/RubyBoolean;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
invokevirtual org.jruby.Ruby.getFalse:()Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 runtime Lorg/jruby/Ruby;
0 3 1 value Z
MethodParameters:
Name Flags
runtime
value
public static org.jruby.RubyBoolean newBoolean(org.jruby.runtime.ThreadContext, boolean);
descriptor: (Lorg/jruby/runtime/ThreadContext;Z)Lorg/jruby/RubyBoolean;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 1
aload 0
getfield org.jruby.runtime.ThreadContext.tru:Lorg/jruby/RubyBoolean;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.jruby.runtime.ThreadContext.fals:Lorg/jruby/RubyBoolean;
StackMap locals:
StackMap stack: org.jruby.RubyBoolean
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 context Lorg/jruby/runtime/ThreadContext;
0 3 1 value Z
MethodParameters:
Name Flags
context
value
public org.jruby.RubyFixnum hash(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
getfield org.jruby.runtime.ThreadContext.runtime:Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.RubyBoolean.hashCode:()I
invokevirtual org.jruby.Ruby.newFixnum:(I)Lorg/jruby/RubyFixnum;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyBoolean;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyMethod(name = {"hash"})
MethodParameters:
Name Flags
context
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyBoolean.hashCode:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/RubyBoolean;
public org.jruby.RubyFixnum id();
descriptor: ()Lorg/jruby/RubyFixnum;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.RubyBoolean.flags:I
getstatic org.jruby.RubyBoolean.FALSE_F:I
iand
ifne 2
1: aload 0
getfield org.jruby.RubyBoolean.metaClass:Lorg/jruby/RubyClass;
getfield org.jruby.RubyClass.runtime:Lorg/jruby/Ruby;
ldc 20
invokestatic org.jruby.RubyFixnum.newFixnum:(Lorg/jruby/Ruby;J)Lorg/jruby/RubyFixnum;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.RubyBoolean.metaClass:Lorg/jruby/RubyClass;
getfield org.jruby.RubyClass.runtime:Lorg/jruby/Ruby;
invokestatic org.jruby.RubyFixnum.zero:(Lorg/jruby/Ruby;)Lorg/jruby/RubyFixnum;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/RubyBoolean;
public org.jruby.runtime.builtin.IRubyObject taint(org.jruby.runtime.ThreadContext);
descriptor: (Lorg/jruby/runtime/ThreadContext;)Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0001) ACC_PUBLIC
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/RubyBoolean;
0 1 1 context Lorg/jruby/runtime/ThreadContext;
MethodParameters:
Name Flags
context
public void marshalTo(org.jruby.runtime.marshal.MarshalStream);
descriptor: (Lorg/jruby/runtime/marshal/MarshalStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.jruby.RubyBoolean.isTrue:()Z
ifeq 1
bipush 84
goto 2
StackMap locals:
StackMap stack: org.jruby.runtime.marshal.MarshalStream
1: bipush 70
StackMap locals: org.jruby.RubyBoolean org.jruby.runtime.marshal.MarshalStream
StackMap stack: org.jruby.runtime.marshal.MarshalStream int
2: invokevirtual org.jruby.runtime.marshal.MarshalStream.write:(I)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/RubyBoolean;
0 4 1 output Lorg/jruby/runtime/marshal/MarshalStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
output
public org.jruby.runtime.builtin.IRubyObject id();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.jruby.RubyBoolean.id:()Lorg/jruby/RubyFixnum;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "RubyBoolean.java"
NestMembers:
org.jruby.RubyBoolean$False org.jruby.RubyBoolean$True
InnerClasses:
public False = org.jruby.RubyBoolean$False of org.jruby.RubyBoolean
public True = org.jruby.RubyBoolean$True of org.jruby.RubyBoolean
RuntimeVisibleAnnotations:
org.jruby.anno.JRubyClass(name = {"TrueClass", "FalseClass"})