public class org.jruby.embed.variable.ClassVariable extends org.jruby.embed.variable.AbstractVariable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.variable.ClassVariable
super_class: org.jruby.embed.variable.AbstractVariable
{
private static final java.lang.String VALID_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "@@([a-zA-Z]|_)([a-zA-Z]|_|\\d)*"
public static org.jruby.embed.variable.BiVariable getInstance(org.jruby.RubyObject, java.lang.String, java.lang.Object[]);
descriptor: (Lorg/jruby/RubyObject;Ljava/lang/String;[Ljava/lang/Object;)Lorg/jruby/embed/variable/BiVariable;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
ldc "@@([a-zA-Z]|_)([a-zA-Z]|_|\\d)*"
invokevirtual java.lang.String.matches:(Ljava/lang/String;)Z
ifeq 2
1: new org.jruby.embed.variable.ClassVariable
dup
aload 0
aload 1
aload 2
invokespecial org.jruby.embed.variable.ClassVariable.<init>:(Lorg/jruby/RubyObject;Ljava/lang/String;[Ljava/lang/Object;)V
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 receiver Lorg/jruby/RubyObject;
0 3 1 name Ljava/lang/String;
0 3 2 javaObject [Ljava/lang/Object;
MethodParameters:
Name Flags
receiver
name
javaObject
private void <init>(org.jruby.RubyObject, java.lang.String, java.lang.Object[]);
descriptor: (Lorg/jruby/RubyObject;Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
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.embed.variable.AbstractVariable.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;Z)V
1: aload 0
aload 1
invokevirtual org.jruby.RubyObject.getRuntime:()Lorg/jruby/Ruby;
aload 3
invokevirtual org.jruby.embed.variable.ClassVariable.updateByJavaObject:(Lorg/jruby/Ruby;[Ljava/lang/Object;)V
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/variable/ClassVariable;
0 3 1 receiver Lorg/jruby/RubyObject;
0 3 2 name Ljava/lang/String;
0 3 3 javaObjects [Ljava/lang/Object;
MethodParameters:
Name Flags
receiver
name
javaObjects
void <init>(org.jruby.RubyObject, java.lang.String, org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/RubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0000)
Code:
stack=5, 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_1
aload 3
invokespecial org.jruby.embed.variable.AbstractVariable.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/String;ZLorg/jruby/runtime/builtin/IRubyObject;)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/embed/variable/ClassVariable;
0 2 1 receiver Lorg/jruby/RubyObject;
0 2 2 name Ljava/lang/String;
0 2 3 irubyObject Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
receiver
name
irubyObject
public static void retrieve(org.jruby.RubyObject, org.jruby.embed.internal.BiVariableMap);
descriptor: (Lorg/jruby/RubyObject;Lorg/jruby/embed/internal/BiVariableMap;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jruby.embed.internal.BiVariableMap.isLazy:()Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic org.jruby.embed.variable.ClassVariable.updateClassVar:(Lorg/jruby/RubyObject;Lorg/jruby/embed/internal/BiVariableMap;)V
2: aload 0
invokestatic org.jruby.embed.variable.ClassVariable.getTopSelf:(Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/RubyObject;
aload 1
invokestatic org.jruby.embed.variable.ClassVariable.updateClassVar:(Lorg/jruby/RubyObject;Lorg/jruby/embed/internal/BiVariableMap;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 receiver Lorg/jruby/RubyObject;
0 4 1 vars Lorg/jruby/embed/internal/BiVariableMap;
MethodParameters:
Name Flags
receiver final
vars final
private static void updateClassVar(org.jruby.RubyObject, org.jruby.embed.internal.BiVariableMap);
descriptor: (Lorg/jruby/RubyObject;Lorg/jruby/embed/internal/BiVariableMap;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.jruby.RubyObject.getMetaClass:()Lorg/jruby/RubyClass;
invokevirtual org.jruby.RubyClass.getClassVariableNameList:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.jruby.RubyObject org.jruby.embed.internal.BiVariableMap top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 2: aload 0
invokevirtual org.jruby.RubyObject.getMetaClass:()Lorg/jruby/RubyClass;
aload 2
invokevirtual org.jruby.RubyClass.getClassVar:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
start local 4 3: aload 1
aload 0
aload 2
aload 4
ldc Lorg/jruby/embed/variable/ClassVariable;
invokevirtual org.jruby.embed.internal.BiVariableMap.updateVariable:(Lorg/jruby/RubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)V
end local 4 end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 receiver Lorg/jruby/RubyObject;
0 6 1 vars Lorg/jruby/embed/internal/BiVariableMap;
2 4 2 name Ljava/lang/String;
3 4 4 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
receiver final
vars final
public static void retrieveByKey(org.jruby.RubyObject, org.jruby.embed.internal.BiVariableMap, java.lang.String);
descriptor: (Lorg/jruby/RubyObject;Lorg/jruby/embed/internal/BiVariableMap;Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.RubyObject.getMetaClass:()Lorg/jruby/RubyClass;
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: aload 0
aload 0
invokevirtual org.jruby.RubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getTopSelf:()Lorg/jruby/runtime/builtin/IRubyObject;
if_acmpne 6
3: aload 3
invokevirtual org.jruby.RubyClass.getClassVariableNameList:()Ljava/util/List;
aload 2
invokeinterface java.util.List.contains:(Ljava/lang/Object;)Z
ifeq 6
4: aload 3
aload 2
invokevirtual org.jruby.RubyClass.getClassVar:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
5: goto 8
6: StackMap locals: org.jruby.RubyClass org.jruby.runtime.builtin.IRubyObject
StackMap stack:
aload 3
aload 2
invokevirtual org.jruby.RubyClass.hasClassVariable:(Ljava/lang/String;)Z
ifeq 8
7: aload 3
aload 2
invokevirtual org.jruby.RubyClass.getClassVar:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
astore 4
8: StackMap locals:
StackMap stack:
aload 4
ifnonnull 9
return
9: StackMap locals:
StackMap stack:
aload 1
aload 0
aload 2
aload 4
ldc Lorg/jruby/embed/variable/ClassVariable;
invokevirtual org.jruby.embed.internal.BiVariableMap.updateVariable:(Lorg/jruby/RubyObject;Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;Ljava/lang/Class;)V
10: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 receiver Lorg/jruby/RubyObject;
0 11 1 vars Lorg/jruby/embed/internal/BiVariableMap;
0 11 2 name Ljava/lang/String;
1 11 3 klazz Lorg/jruby/RubyClass;
2 11 4 value Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
receiver final
vars final
name final
public org.jruby.embed.variable.BiVariable$Type getType();
descriptor: ()Lorg/jruby/embed/variable/BiVariable$Type;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic org.jruby.embed.variable.BiVariable$Type.ClassVariable:Lorg/jruby/embed/variable/BiVariable$Type;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/variable/ClassVariable;
public static boolean isValidName(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "@@([a-zA-Z]|_)([a-zA-Z]|_|\\d)*"
aload 0
invokestatic org.jruby.embed.variable.ClassVariable.isValidName:(Ljava/lang/String;Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/Object;
MethodParameters:
Name Flags
name
public void inject();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.variable.ClassVariable.receiver:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokestatic org.jruby.embed.variable.ClassVariable.getRubyClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyModule;
astore 1
start local 1 1: aload 1
aload 0
getfield org.jruby.embed.variable.ClassVariable.name:Ljava/lang/String;
aload 0
getfield org.jruby.embed.variable.ClassVariable.rubyObject:Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.RubyModule.setClassVar:(Ljava/lang/String;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/variable/ClassVariable;
1 3 1 rubyClass Lorg/jruby/RubyModule;
public void remove();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.variable.ClassVariable.receiver:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokestatic org.jruby.embed.variable.ClassVariable.getRubyClass:(Lorg/jruby/Ruby;)Lorg/jruby/RubyModule;
astore 1
start local 1 1: aload 1
aload 0
getfield org.jruby.embed.variable.ClassVariable.name:Ljava/lang/String;
invokevirtual org.jruby.RubyModule.removeClassVariable:(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/jruby/embed/variable/ClassVariable;
1 3 1 rubyClass Lorg/jruby/RubyModule;
public void setJavaObject(org.jruby.Ruby, java.lang.Object);
descriptor: (Lorg/jruby/Ruby;Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=3
0: aload 0
aload 1
aload 2
invokespecial org.jruby.embed.variable.AbstractVariable.setJavaObject:(Lorg/jruby/Ruby;Ljava/lang/Object;)V
return
LocalVariableTable:
Start End Slot Name Signature
public void setRubyObject(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial org.jruby.embed.variable.AbstractVariable.setRubyObject:(Lorg/jruby/runtime/builtin/IRubyObject;)V
return
LocalVariableTable:
Start End Slot Name Signature
public java.lang.Object getJavaObject();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial org.jruby.embed.variable.AbstractVariable.getJavaObject:()Ljava/lang/Object;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.jruby.runtime.builtin.IRubyObject getRubyObject();
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
invokespecial org.jruby.embed.variable.AbstractVariable.getRubyObject:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
LocalVariableTable:
Start End Slot Name Signature
public boolean isReceiverIdentical(org.jruby.RubyObject);
descriptor: (Lorg/jruby/RubyObject;)Z
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
invokespecial org.jruby.embed.variable.AbstractVariable.isReceiverIdentical:(Lorg/jruby/RubyObject;)Z
ireturn
LocalVariableTable:
Start End Slot Name Signature
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokespecial org.jruby.embed.variable.AbstractVariable.getName:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public org.jruby.runtime.builtin.IRubyObject getReceiver();
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
invokespecial org.jruby.embed.variable.AbstractVariable.getReceiver:()Lorg/jruby/runtime/builtin/IRubyObject;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ClassVariable.java"
InnerClasses:
public final Type = org.jruby.embed.variable.BiVariable$Type of org.jruby.embed.variable.BiVariable