public abstract class org.jruby.runtime.ivars.VariableAccessor
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.jruby.runtime.ivars.VariableAccessor
super_class: java.lang.Object
{
protected final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final int index;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final int classId;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final org.jruby.RubyClass realClass;
descriptor: Lorg/jruby/RubyClass;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public static final org.jruby.runtime.ivars.VariableAccessor DUMMY_ACCESSOR;
descriptor: Lorg/jruby/runtime/ivars/VariableAccessor;
flags: (0x0019) ACC_PUBLIC, 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.runtime.ivars.VariableAccessor$1
dup
aconst_null
aconst_null
iconst_m1
iconst_m1
invokespecial org.jruby.runtime.ivars.VariableAccessor$1.<init>:(Lorg/jruby/RubyClass;Ljava/lang/String;II)V
putstatic org.jruby.runtime.ivars.VariableAccessor.DUMMY_ACCESSOR:Lorg/jruby/runtime/ivars/VariableAccessor;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.jruby.RubyClass, java.lang.String, int, int);
descriptor: (Lorg/jruby/RubyClass;Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 3
putfield org.jruby.runtime.ivars.VariableAccessor.index:I
2: aload 0
iload 4
putfield org.jruby.runtime.ivars.VariableAccessor.classId:I
3: aload 0
aload 2
putfield org.jruby.runtime.ivars.VariableAccessor.name:Ljava/lang/String;
4: aload 0
aload 1
putfield org.jruby.runtime.ivars.VariableAccessor.realClass:Lorg/jruby/RubyClass;
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
0 6 1 realClass Lorg/jruby/RubyClass;
0 6 2 name Ljava/lang/String;
0 6 3 index I
0 6 4 classId I
MethodParameters:
Name Flags
realClass
name
index
classId
public int getClassId();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.classId:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
public int getIndex();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.index:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
public java.lang.Object get(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.jruby.RubyBasicObject
aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.index:I
invokestatic org.jruby.runtime.ivars.VariableAccessor.getVariable:(Lorg/jruby/RubyBasicObject;I)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
0 1 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public static java.lang.Object getVariable(org.jruby.RubyBasicObject, int);
descriptor: (Lorg/jruby/RubyBasicObject;I)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iload 1
iflt 2
aload 0
getfield org.jruby.RubyBasicObject.varTable:[Ljava/lang/Object;
dup
astore 2
start local 2 1: ifnonnull 3
end local 2 StackMap locals:
StackMap stack:
2: aconst_null
areturn
start local 2 3: StackMap locals: java.lang.Object[]
StackMap stack:
aload 2
arraylength
iload 1
if_icmple 4
aload 2
iload 1
aaload
areturn
4: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 object Lorg/jruby/RubyBasicObject;
0 5 1 index I
1 2 2 ivarTable [Ljava/lang/Object;
3 5 2 ivarTable [Ljava/lang/Object;
MethodParameters:
Name Flags
object
index
public void set(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
checkcast org.jruby.RubyBasicObject
invokevirtual org.jruby.RubyBasicObject.checkFrozen:()V
1: aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.realClass:Lorg/jruby/RubyClass;
aload 1
checkcast org.jruby.RubyBasicObject
aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.index:I
aload 2
invokestatic org.jruby.runtime.ivars.VariableTableManager.setVariableInternal:(Lorg/jruby/RubyClass;Lorg/jruby/RubyBasicObject;ILjava/lang/Object;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
0 3 1 object Ljava/lang/Object;
0 3 2 value Ljava/lang/Object;
MethodParameters:
Name Flags
object
value
public boolean verify(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
checkcast org.jruby.RubyBasicObject
invokevirtual org.jruby.RubyBasicObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getRealClass:()Lorg/jruby/RubyClass;
aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.realClass:Lorg/jruby/RubyClass;
if_acmpne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
0 2 1 object Ljava/lang/Object;
MethodParameters:
Name Flags
object
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "ivar:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.jruby.runtime.ivars.VariableAccessor.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.jruby.runtime.ivars.VariableAccessor.index:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/ivars/VariableAccessor;
}
SourceFile: "VariableAccessor.java"
NestMembers:
org.jruby.runtime.ivars.VariableAccessor$1
InnerClasses:
org.jruby.runtime.ivars.VariableAccessor$1