public class org.jruby.util.OSEnvironment
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.OSEnvironment
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/OSEnvironment;
public static java.util.Map<org.jruby.RubyString, org.jruby.RubyString> environmentVariableMap(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.Ruby.getInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
invokevirtual org.jruby.RubyInstanceConfig.getEnvironment:()Ljava/util/Map;
astore 1
start local 1 1: aload 1
ifnull 2
aload 0
aload 1
invokestatic org.jruby.util.OSEnvironment.asMapOfRubyStrings:(Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
areturn
2: StackMap locals: java.util.Map
StackMap stack:
invokestatic org.jruby.Ruby.isSecurityRestricted:()Z
ifeq 3
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
3: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.System.getenv:()Ljava/util/Map;
invokestatic org.jruby.util.OSEnvironment.asMapOfRubyStrings:(Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 runtime Lorg/jruby/Ruby;
1 4 1 env Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
MethodParameters:
Name Flags
runtime
public java.util.Map<org.jruby.RubyString, org.jruby.RubyString> getEnvironmentVariableMap(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.util.OSEnvironment.environmentVariableMap:(Lorg/jruby/Ruby;)Ljava/util/Map;
astore 2
start local 2 1: aload 2
getstatic java.util.Collections.EMPTY_MAP:Ljava/util/Map;
if_acmpne 2
new java.util.HashMap
dup
iconst_4
invokespecial java.util.HashMap.<init>:(I)V
goto 3
StackMap locals: java.util.Map
StackMap stack:
2: aload 2
StackMap locals:
StackMap stack: java.util.Map
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/OSEnvironment;
0 4 1 runtime Lorg/jruby/Ruby;
1 4 2 envMap Ljava/util/Map;
Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
MethodParameters:
Name Flags
runtime
public static java.util.Map<java.lang.String, java.lang.String> propertiesToStringMap(java.util.Properties);
descriptor: (Ljava/util/Properties;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual java.util.Properties.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: java.util.Properties java.util.Map top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 5
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 5
4: aload 1
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.lang.String
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 properties Ljava/util/Properties;
1 7 1 map Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
3 5 2 entry Ljava/util/Map$Entry<Ljava/lang/Object;Ljava/lang/Object;>;
Signature: (Ljava/util/Properties;)Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
properties
public static java.util.Map<org.jruby.RubyString, org.jruby.RubyString> systemPropertiesMap(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.jruby.Ruby.isSecurityRestricted:()Z
ifeq 1
invokestatic java.util.Collections.emptyMap:()Ljava/util/Map;
areturn
1: StackMap locals:
StackMap stack:
aload 0
invokestatic java.lang.System.getProperties:()Ljava/util/Properties;
invokevirtual java.util.Properties.clone:()Ljava/lang/Object;
checkcast java.util.Properties
invokestatic org.jruby.util.OSEnvironment.asMapOfRubyStrings:(Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 runtime Lorg/jruby/Ruby;
Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
MethodParameters:
Name Flags
runtime
public java.util.Map<org.jruby.RubyString, org.jruby.RubyString> getSystemPropertiesMap(org.jruby.Ruby);
descriptor: (Lorg/jruby/Ruby;)Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.jruby.util.OSEnvironment.systemPropertiesMap:(Lorg/jruby/Ruby;)Ljava/util/Map;
astore 2
start local 2 1: aload 2
getstatic java.util.Collections.EMPTY_MAP:Ljava/util/Map;
if_acmpne 2
new java.util.HashMap
dup
iconst_4
invokespecial java.util.HashMap.<init>:(I)V
goto 3
StackMap locals: java.util.Map
StackMap stack:
2: aload 2
StackMap locals:
StackMap stack: java.util.Map
3: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/OSEnvironment;
0 4 1 runtime Lorg/jruby/Ruby;
1 4 2 sysMap Ljava/util/Map;
Signature: (Lorg/jruby/Ruby;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
MethodParameters:
Name Flags
runtime
private static java.util.Map<org.jruby.RubyString, org.jruby.RubyString> asMapOfRubyStrings(org.jruby.Ruby, java.util.Map<?, ?>);
descriptor: (Lorg/jruby/Ruby;Ljava/util/Map;)Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=9, args_size=2
start local 0 start local 1 0: new java.util.HashMap
dup
aload 1
invokeinterface java.util.Map.size:()I
iconst_2
iadd
invokespecial java.util.HashMap.<init>:(I)V
astore 2
start local 2 1: aload 0
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
invokevirtual org.jruby.runtime.encoding.EncodingService.getLocaleEncoding:()Lorg/jcodings/Encoding;
astore 3
start local 3 2: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 11
3: ldc "user.home"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 4: ldc "user.name"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 5: aload 0
aload 2
ldc "HOME"
aload 3
aload 4
ifnonnull 6
ldc "/"
goto 7
StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding
6: aload 4
StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding java.lang.String
7: aload 3
invokestatic org.jruby.util.OSEnvironment.putRubyKeyValuePair:(Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
8: aload 0
aload 2
ldc "USER"
aload 3
aload 5
ifnonnull 9
ldc ""
goto 10
StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding
9: aload 5
StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.lang.String java.lang.String
StackMap stack: org.jruby.Ruby java.util.Map java.lang.String org.jcodings.Encoding java.lang.String
10: aload 3
invokestatic org.jruby.util.OSEnvironment.putRubyKeyValuePair:(Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
end local 5 end local 4 11: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 25
StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding top java.util.Iterator
StackMap stack:
12: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 13: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
astore 6
start local 6 14: aload 6
instanceof java.lang.String
ifne 15
goto 25
15: StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding java.util.Map$Entry java.util.Iterator java.lang.Object
StackMap stack:
aload 6
checkcast java.lang.String
astore 7
start local 7 16: getstatic jnr.posix.util.Platform.IS_WINDOWS:Z
ifeq 17
aload 7
bipush 61
invokestatic org.jruby.util.StringSupport.startsWith:(Ljava/lang/CharSequence;C)Z
ifeq 17
goto 25
17: StackMap locals: java.lang.String
StackMap stack:
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
astore 6
18: aload 6
instanceof java.lang.String
ifne 19
goto 25
19: StackMap locals:
StackMap stack:
aload 3
astore 8
start local 8 20: getstatic org.jruby.platform.Platform.IS_WINDOWS:Z
ifeq 22
21: aload 7
ldc "PATH"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 24
goto 23
22: StackMap locals: org.jcodings.Encoding
StackMap stack:
aload 7
ldc "PATH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
23: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.jruby.Ruby.getEncodingService:()Lorg/jruby/runtime/encoding/EncodingService;
invokevirtual org.jruby.runtime.encoding.EncodingService.getFileSystemEncoding:()Lorg/jcodings/Encoding;
astore 8
24: StackMap locals:
StackMap stack:
aload 0
aload 2
aload 7
aload 3
aload 6
checkcast java.lang.String
aload 8
invokestatic org.jruby.util.OSEnvironment.putRubyKeyValuePair:(Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
end local 8 end local 7 end local 6 end local 4 25: StackMap locals: org.jruby.Ruby java.util.Map java.util.Map org.jcodings.Encoding top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 12
26: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 runtime Lorg/jruby/Ruby;
0 27 1 map Ljava/util/Map<**>;
1 27 2 rubyMap Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
2 27 3 keyEncoding Lorg/jcodings/Encoding;
4 11 4 home Ljava/lang/String;
5 11 5 user Ljava/lang/String;
13 25 4 entry Ljava/util/Map$Entry<**>;
14 25 6 val Ljava/lang/Object;
16 25 7 key Ljava/lang/String;
20 25 8 valueEncoding Lorg/jcodings/Encoding;
Signature: (Lorg/jruby/Ruby;Ljava/util/Map<**>;)Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
MethodParameters:
Name Flags
runtime final
map final
private static void putRubyKeyValuePair(org.jruby.Ruby, java.util.Map<org.jruby.RubyString, org.jruby.RubyString>, java.lang.String, org.jcodings.Encoding, java.lang.String, org.jcodings.Encoding);
descriptor: (Lorg/jruby/Ruby;Ljava/util/Map;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=10, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 2
aload 3
invokestatic org.jruby.RubyString.encodeBytelist:(Ljava/lang/CharSequence;Lorg/jcodings/Encoding;)Lorg/jruby/util/ByteList;
astore 6
start local 6 1: aload 4
aload 5
invokestatic org.jruby.RubyString.encodeBytelist:(Ljava/lang/CharSequence;Lorg/jcodings/Encoding;)Lorg/jruby/util/ByteList;
astore 7
start local 7 2: aload 0
aload 6
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 8
start local 8 3: aload 0
aload 7
invokevirtual org.jruby.Ruby.newString:(Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
astore 9
start local 9 4: aload 8
iconst_1
invokevirtual org.jruby.RubyString.setFrozen:(Z)V
5: aload 8
iconst_1
invokevirtual org.jruby.RubyString.setTaint:(Z)V
6: aload 9
iconst_1
invokevirtual org.jruby.RubyString.setFrozen:(Z)V
7: aload 9
iconst_1
invokevirtual org.jruby.RubyString.setTaint:(Z)V
8: aload 1
aload 8
aload 9
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: return
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 runtime Lorg/jruby/Ruby;
0 10 1 map Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;
0 10 2 key Ljava/lang/String;
0 10 3 keyEncoding Lorg/jcodings/Encoding;
0 10 4 value Ljava/lang/String;
0 10 5 valueEncoding Lorg/jcodings/Encoding;
1 10 6 keyBytes Lorg/jruby/util/ByteList;
2 10 7 valueBytes Lorg/jruby/util/ByteList;
3 10 8 keyString Lorg/jruby/RubyString;
4 10 9 valueString Lorg/jruby/RubyString;
Signature: (Lorg/jruby/Ruby;Ljava/util/Map<Lorg/jruby/RubyString;Lorg/jruby/RubyString;>;Ljava/lang/String;Lorg/jcodings/Encoding;Ljava/lang/String;Lorg/jcodings/Encoding;)V
MethodParameters:
Name Flags
runtime
map final
key
keyEncoding
value
valueEncoding
}
SourceFile: "OSEnvironment.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map