public class org.jruby.embed.internal.LocalContext
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.internal.LocalContext
super_class: java.lang.Object
{
private final org.jruby.RubyInstanceConfig config;
descriptor: Lorg/jruby/RubyInstanceConfig;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.embed.LocalVariableBehavior behavior;
descriptor: Lorg/jruby/embed/LocalVariableBehavior;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean lazy;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private org.jruby.Ruby runtime;
descriptor: Lorg/jruby/Ruby;
flags: (0x0002) ACC_PRIVATE
private org.jruby.embed.internal.BiVariableMap varMap;
descriptor: Lorg/jruby/embed/internal/BiVariableMap;
flags: (0x0002) ACC_PRIVATE
private java.util.Map<org.jruby.embed.AttributeName, java.lang.Object> attributes;
descriptor: Ljava/util/Map;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Map<Lorg/jruby/embed/AttributeName;Ljava/lang/Object;>;
public void <init>(org.jruby.RubyInstanceConfig, org.jruby.embed.LocalVariableBehavior);
descriptor: (Lorg/jruby/RubyInstanceConfig;Lorg/jruby/embed/LocalVariableBehavior;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_0
invokespecial org.jruby.embed.internal.LocalContext.<init>:(Lorg/jruby/RubyInstanceConfig;Lorg/jruby/embed/LocalVariableBehavior;Z)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/embed/internal/LocalContext;
0 2 1 config Lorg/jruby/RubyInstanceConfig;
0 2 2 behavior Lorg/jruby/embed/LocalVariableBehavior;
MethodParameters:
Name Flags
config
behavior
public void <init>(org.jruby.RubyInstanceConfig, org.jruby.embed.LocalVariableBehavior, boolean);
descriptor: (Lorg/jruby/RubyInstanceConfig;Lorg/jruby/embed/LocalVariableBehavior;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.jruby.embed.internal.LocalContext.runtime:Lorg/jruby/Ruby;
2: aload 0
aload 1
putfield org.jruby.embed.internal.LocalContext.config:Lorg/jruby/RubyInstanceConfig;
3: aload 0
aload 2
putfield org.jruby.embed.internal.LocalContext.behavior:Lorg/jruby/embed/LocalVariableBehavior;
4: aload 0
iload 3
putfield org.jruby.embed.internal.LocalContext.lazy:Z
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/embed/internal/LocalContext;
0 6 1 config Lorg/jruby/RubyInstanceConfig;
0 6 2 behavior Lorg/jruby/embed/LocalVariableBehavior;
0 6 3 lazy Z
MethodParameters:
Name Flags
config
behavior
lazy
public org.jruby.Ruby getThreadSafeRuntime();
descriptor: ()Lorg/jruby/Ruby;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.embed.internal.LocalContext.getRuntime:()Lorg/jruby/Ruby;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/LocalContext;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public org.jruby.embed.internal.BiVariableMap getVarMap(org.jruby.embed.internal.LocalContextProvider);
descriptor: (Lorg/jruby/embed/internal/LocalContextProvider;)Lorg/jruby/embed/internal/BiVariableMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.embed.internal.LocalContext.varMap:Lorg/jruby/embed/internal/BiVariableMap;
ifnonnull 8
1: aload 0
dup
astore 2
monitorenter
2: aload 0
getfield org.jruby.embed.internal.LocalContext.varMap:Lorg/jruby/embed/internal/BiVariableMap;
ifnonnull 4
3: aload 0
new org.jruby.embed.internal.BiVariableMap
dup
aload 1
aload 0
getfield org.jruby.embed.internal.LocalContext.lazy:Z
invokespecial org.jruby.embed.internal.BiVariableMap.<init>:(Lorg/jruby/embed/internal/LocalContextProvider;Z)V
putfield org.jruby.embed.internal.LocalContext.varMap:Lorg/jruby/embed/internal/BiVariableMap;
4: StackMap locals: org.jruby.embed.internal.LocalContext
StackMap stack:
aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.internal.LocalContext.varMap:Lorg/jruby/embed/internal/BiVariableMap;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/embed/internal/LocalContext;
0 9 1 provider Lorg/jruby/embed/internal/LocalContextProvider;
Exception table:
from to target type
2 5 6 any
6 7 6 any
MethodParameters:
Name Flags
provider
public org.jruby.embed.LocalVariableBehavior getLocalVariableBehavior();
descriptor: ()Lorg/jruby/embed/LocalVariableBehavior;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.LocalContext.behavior:Lorg/jruby/embed/LocalVariableBehavior;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/embed/internal/LocalContext;
public java.util.Map<?, java.lang.Object> getAttributeMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
ifnonnull 11
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
ifnonnull 7
3: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
4: aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
getstatic org.jruby.embed.AttributeName.READER:Lorg/jruby/embed/AttributeName;
new java.io.InputStreamReader
dup
getstatic java.lang.System.in:Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
5: aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
getstatic org.jruby.embed.AttributeName.WRITER:Lorg/jruby/embed/AttributeName;
new java.io.PrintWriter
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
6: aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
getstatic org.jruby.embed.AttributeName.ERROR_WRITER:Lorg/jruby/embed/AttributeName;
new java.io.PrintWriter
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals: org.jruby.embed.internal.LocalContext
StackMap stack:
aload 1
monitorexit
8: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
9: aload 1
monitorexit
10: athrow
11: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/embed/internal/LocalContext;
Exception table:
from to target type
2 8 9 any
9 10 9 any
Signature: ()Ljava/util/Map<*Ljava/lang/Object;>;
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.internal.LocalContext.attributes:Ljava/util/Map;
ifnull 6
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield org.jruby.embed.internal.LocalContext.attributes:Ljava/util/Map;
invokeinterface java.util.Map.clear:()V
aload 1
monitorexit
3: goto 6
StackMap locals: org.jruby.embed.internal.LocalContext org.jruby.embed.internal.LocalContext
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.internal.LocalContext.varMap:Lorg/jruby/embed/internal/BiVariableMap;
ifnull 12
7: aload 0
dup
astore 1
monitorenter
8: aload 0
getfield org.jruby.embed.internal.LocalContext.varMap:Lorg/jruby/embed/internal/BiVariableMap;
invokevirtual org.jruby.embed.internal.BiVariableMap.clear:()V
aload 1
monitorexit
9: goto 12
StackMap locals: org.jruby.embed.internal.LocalContext org.jruby.embed.internal.LocalContext
StackMap stack: java.lang.Throwable
10: aload 1
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/jruby/embed/internal/LocalContext;
Exception table:
from to target type
2 3 4 any
4 5 4 any
8 9 10 any
10 11 10 any
org.jruby.Ruby getRuntime();
descriptor: ()Lorg/jruby/Ruby;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.LocalContext.runtime:Lorg/jruby/Ruby;
ifnonnull 8
1: aload 0
dup
astore 1
monitorenter
2: aload 0
getfield org.jruby.embed.internal.LocalContext.runtime:Lorg/jruby/Ruby;
ifnonnull 4
3: aload 0
aload 0
getfield org.jruby.embed.internal.LocalContext.config:Lorg/jruby/RubyInstanceConfig;
invokestatic org.jruby.Ruby.newInstance:(Lorg/jruby/RubyInstanceConfig;)Lorg/jruby/Ruby;
putfield org.jruby.embed.internal.LocalContext.runtime:Lorg/jruby/Ruby;
4: StackMap locals: org.jruby.embed.internal.LocalContext
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.embed.internal.LocalContext.runtime:Lorg/jruby/Ruby;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/embed/internal/LocalContext;
Exception table:
from to target type
2 5 6 any
6 7 6 any
boolean isInitialized();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.embed.internal.LocalContext.runtime:Lorg/jruby/Ruby;
ifnull 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/embed/internal/LocalContext;
}
SourceFile: "LocalContext.java"