public final class org.jruby.MetaClass extends org.jruby.RubyClass
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.jruby.MetaClass
super_class: org.jruby.RubyClass
{
private org.jruby.RubyBasicObject attached;
descriptor: Lorg/jruby/RubyBasicObject;
flags: (0x0002) ACC_PRIVATE
private static final org.jruby.util.log.Logger LOG;
descriptor: Lorg/jruby/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean LOG_SINGLETONS;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean LOG_SINGLETONS_VERBOSE;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/jruby/MetaClass;
invokestatic org.jruby.util.log.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/jruby/util/log/Logger;
putstatic org.jruby.MetaClass.LOG:Lorg/jruby/util/log/Logger;
1: getstatic org.jruby.util.cli.Options.LOG_SINGLETONS:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putstatic org.jruby.MetaClass.LOG_SINGLETONS:Z
2: getstatic org.jruby.util.cli.Options.LOG_SINGLETONS_VERBOSE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
putstatic org.jruby.MetaClass.LOG_SINGLETONS_VERBOSE:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/runtime/builtin/IRubyObject;)V
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
aload 1
aload 2
aload 3
checkcast org.jruby.RubyBasicObject
invokespecial org.jruby.MetaClass.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyBasicObject;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/MetaClass;
0 2 1 runtime Lorg/jruby/Ruby;
0 2 2 superClass Lorg/jruby/RubyClass;
0 2 3 attached Lorg/jruby/runtime/builtin/IRubyObject;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
runtime
superClass
attached
void <init>(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.RubyBasicObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyBasicObject;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
iconst_0
invokespecial org.jruby.RubyClass.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Z)V
1: aload 0
aload 3
putfield org.jruby.MetaClass.attached:Lorg/jruby/RubyBasicObject;
2: aload 0
aload 2
invokevirtual org.jruby.RubyClass.getClassIndex:()Lorg/jruby/runtime/ClassIndex;
invokevirtual org.jruby.MetaClass.setClassIndex:(Lorg/jruby/runtime/ClassIndex;)V
3: aload 2
aload 0
invokevirtual org.jruby.RubyClass.addSubclass:(Lorg/jruby/RubyClass;)V
4: getstatic org.jruby.MetaClass.LOG_SINGLETONS:Z
ifne 5
getstatic org.jruby.MetaClass.LOG_SINGLETONS_VERBOSE:Z
ifeq 6
5: StackMap locals: org.jruby.MetaClass org.jruby.Ruby org.jruby.RubyClass org.jruby.RubyBasicObject
StackMap stack:
aload 1
aload 2
aload 3
invokestatic org.jruby.MetaClass.logSingleton:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyBasicObject;)V
6: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/jruby/MetaClass;
0 7 1 runtime Lorg/jruby/Ruby;
0 7 2 superClass Lorg/jruby/RubyClass;
0 7 3 attached Lorg/jruby/RubyBasicObject;
MethodParameters:
Name Flags
runtime
superClass
attached
private static void logSingleton(org.jruby.Ruby, org.jruby.RubyClass, org.jruby.RubyBasicObject);
descriptor: (Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyBasicObject;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.Ruby.isBooting:()Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 2
ifnonnull 2
ldc "null object"
goto 3
StackMap locals:
StackMap stack:
2: new java.lang.StringBuilder
dup
ldc "object of type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual org.jruby.RubyBasicObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
3: astore 3
start local 3 4: getstatic org.jruby.MetaClass.LOG:Lorg/jruby/util/log/Logger;
new java.lang.StringBuilder
dup
ldc "singleton class created for type "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " attached to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokeinterface org.jruby.util.log.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
5: getstatic org.jruby.MetaClass.LOG_SINGLETONS_VERBOSE:Z
ifeq 7
6: getstatic org.jruby.MetaClass.LOG:Lorg/jruby/util/log/Logger;
new java.lang.Exception
dup
ldc "singleton creation stack trace"
invokespecial java.lang.Exception.<init>:(Ljava/lang/String;)V
invokeinterface org.jruby.util.log.Logger.info:(Ljava/lang/Throwable;)V
7: StackMap locals: java.lang.String
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 runtime Lorg/jruby/Ruby;
0 8 1 superClass Lorg/jruby/RubyClass;
0 8 2 attached Lorg/jruby/RubyBasicObject;
4 8 3 attachedString Ljava/lang/String;
MethodParameters:
Name Flags
runtime
superClass
attached
public final org.jruby.runtime.builtin.IRubyObject allocate();
descriptor: ()Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.MetaClass.runtime:Lorg/jruby/Ruby;
ldc "can't create instance of virtual class"
invokevirtual org.jruby.Ruby.newTypeError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/MetaClass;
public boolean isSingleton();
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/MetaClass;
public org.jruby.RubyClass makeMetaClass(org.jruby.RubyClass);
descriptor: (Lorg/jruby/RubyClass;)Lorg/jruby/RubyClass;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: new org.jruby.MetaClass
dup
aload 0
getfield org.jruby.MetaClass.runtime:Lorg/jruby/Ruby;
aload 0
invokevirtual org.jruby.MetaClass.getSuperSingletonMetaClass:()Lorg/jruby/RubyClass;
aload 0
invokespecial org.jruby.MetaClass.<init>:(Lorg/jruby/Ruby;Lorg/jruby/RubyClass;Lorg/jruby/RubyBasicObject;)V
astore 2
start local 2 1: aload 0
aload 2
invokevirtual org.jruby.MetaClass.setMetaClass:(Lorg/jruby/RubyClass;)V
2: aload 2
aload 2
invokevirtual org.jruby.MetaClass.setMetaClass:(Lorg/jruby/RubyClass;)V
3: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/MetaClass;
0 4 1 superClass Lorg/jruby/RubyClass;
1 4 2 klass Lorg/jruby/MetaClass;
MethodParameters:
Name Flags
superClass
private org.jruby.RubyClass getSuperSingletonMetaClass();
descriptor: ()Lorg/jruby/RubyClass;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.MetaClass.attached:Lorg/jruby/RubyBasicObject;
instanceof org.jruby.RubyClass
ifeq 5
1: aload 0
getfield org.jruby.MetaClass.attached:Lorg/jruby/RubyBasicObject;
checkcast org.jruby.RubyClass
invokevirtual org.jruby.RubyClass.getSuperClass:()Lorg/jruby/RubyClass;
astore 1
start local 1 2: aload 1
ifnull 3
aload 1
invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
astore 1
3: StackMap locals: org.jruby.RubyClass
StackMap stack:
aload 1
ifnonnull 4
aload 0
getfield org.jruby.MetaClass.runtime:Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getClassClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getSingletonClass:()Lorg/jruby/RubyClass;
areturn
4: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.jruby.RubyClass.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getSingletonClass:()Lorg/jruby/RubyClass;
areturn
end local 1 5: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.MetaClass.getSuperClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getMetaClass:()Lorg/jruby/RubyClass;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/MetaClass;
2 5 1 superClass Lorg/jruby/RubyClass;
org.jruby.RubyClass toSingletonClass(org.jruby.RubyBasicObject);
descriptor: (Lorg/jruby/RubyBasicObject;)Lorg/jruby/RubyClass;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.MetaClass.attached:Lorg/jruby/RubyBasicObject;
aload 1
if_acmpne 1
aload 0
goto 2
StackMap locals:
StackMap stack:
1: aload 0
aload 1
invokespecial org.jruby.RubyClass.toSingletonClass:(Lorg/jruby/RubyBasicObject;)Lorg/jruby/RubyClass;
StackMap locals:
StackMap stack: org.jruby.RubyClass
2: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/MetaClass;
0 3 1 target Lorg/jruby/RubyBasicObject;
MethodParameters:
Name Flags
target
public org.jruby.RubyBasicObject getAttached();
descriptor: ()Lorg/jruby/RubyBasicObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.MetaClass.attached:Lorg/jruby/RubyBasicObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/MetaClass;
public void setAttached(org.jruby.RubyBasicObject);
descriptor: (Lorg/jruby/RubyBasicObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.jruby.MetaClass.attached:Lorg/jruby/RubyBasicObject;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/MetaClass;
0 2 1 attached Lorg/jruby/RubyBasicObject;
MethodParameters:
Name Flags
attached
}
SourceFile: "MetaClass.java"