public class org.jruby.embed.util.SystemPropertyCatcher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.embed.util.SystemPropertyCatcher
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/embed/util/SystemPropertyCatcher;
public static org.jruby.embed.LocalContextScope getScope(org.jruby.embed.LocalContextScope);
descriptor: (Lorg/jruby/embed/LocalContextScope;)Lorg/jruby/embed/LocalContextScope;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: getstatic org.jruby.embed.PropertyName.LOCALCONTEXT_SCOPE:Lorg/jruby/embed/PropertyName;
invokevirtual org.jruby.embed.PropertyName.toString:()Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 3
aload 1
areturn
3: StackMap locals: org.jruby.embed.LocalContextScope java.lang.String
StackMap stack:
ldc "singlethread"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
getstatic org.jruby.embed.LocalContextScope.SINGLETHREAD:Lorg/jruby/embed/LocalContextScope;
areturn
4: StackMap locals:
StackMap stack:
ldc "singleton"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
getstatic org.jruby.embed.LocalContextScope.SINGLETON:Lorg/jruby/embed/LocalContextScope;
areturn
5: StackMap locals:
StackMap stack:
ldc "threadsafe"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
getstatic org.jruby.embed.LocalContextScope.THREADSAFE:Lorg/jruby/embed/LocalContextScope;
areturn
6: StackMap locals:
StackMap stack:
ldc "concurrent"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
getstatic org.jruby.embed.LocalContextScope.CONCURRENT:Lorg/jruby/embed/LocalContextScope;
areturn
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 defaultScope Lorg/jruby/embed/LocalContextScope;
1 8 1 scope Lorg/jruby/embed/LocalContextScope;
2 8 2 s Ljava/lang/String;
MethodParameters:
Name Flags
defaultScope
public static org.jruby.embed.LocalVariableBehavior getBehavior(org.jruby.embed.LocalVariableBehavior);
descriptor: (Lorg/jruby/embed/LocalVariableBehavior;)Lorg/jruby/embed/LocalVariableBehavior;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: getstatic org.jruby.embed.PropertyName.LOCALVARIABLE_BEHAVIOR:Lorg/jruby/embed/PropertyName;
invokevirtual org.jruby.embed.PropertyName.toString:()Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 3
aload 1
areturn
3: StackMap locals: org.jruby.embed.LocalVariableBehavior java.lang.String
StackMap stack:
ldc "global"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
getstatic org.jruby.embed.LocalVariableBehavior.GLOBAL:Lorg/jruby/embed/LocalVariableBehavior;
areturn
4: StackMap locals:
StackMap stack:
ldc "persistent"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 5
getstatic org.jruby.embed.LocalVariableBehavior.PERSISTENT:Lorg/jruby/embed/LocalVariableBehavior;
areturn
5: StackMap locals:
StackMap stack:
ldc "transient"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
getstatic org.jruby.embed.LocalVariableBehavior.TRANSIENT:Lorg/jruby/embed/LocalVariableBehavior;
areturn
6: StackMap locals:
StackMap stack:
ldc "bsf"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
getstatic org.jruby.embed.LocalVariableBehavior.BSF:Lorg/jruby/embed/LocalVariableBehavior;
areturn
7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 defaultBehavior Lorg/jruby/embed/LocalVariableBehavior;
1 8 1 behavior Lorg/jruby/embed/LocalVariableBehavior;
2 8 2 s Ljava/lang/String;
MethodParameters:
Name Flags
defaultBehavior
public static boolean isLazy(boolean);
descriptor: (Z)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: iload 0
istore 1
start local 1 1: getstatic org.jruby.embed.PropertyName.LAZINESS:Lorg/jruby/embed/PropertyName;
invokevirtual org.jruby.embed.PropertyName.toString:()Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 3
iload 1
ireturn
3: StackMap locals: int java.lang.String
StackMap stack:
aload 2
invokestatic java.lang.Boolean.parseBoolean:(Ljava/lang/String;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 defaultLaziness Z
1 4 1 lazy Z
2 4 2 s Ljava/lang/String;
MethodParameters:
Name Flags
defaultLaziness
public static void setClassLoader(org.jruby.embed.ScriptingContainer);
descriptor: (Lorg/jruby/embed/ScriptingContainer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic org.jruby.embed.PropertyName.CLASSLOADER:Lorg/jruby/embed/PropertyName;
invokevirtual org.jruby.embed.PropertyName.toString:()Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 2
ldc "container"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 2
ldc "current"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
2: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
invokevirtual org.jruby.embed.ScriptingContainer.setClassLoader:(Ljava/lang/ClassLoader;)V
3: return
4: StackMap locals:
StackMap stack:
ldc "context"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
invokevirtual org.jruby.embed.ScriptingContainer.setClassLoader:(Ljava/lang/ClassLoader;)V
6: return
7: StackMap locals:
StackMap stack:
ldc "none"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 9
8: return
9: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 container Lorg/jruby/embed/ScriptingContainer;
1 10 1 loader Ljava/lang/String;
MethodParameters:
Name Flags
container
public static void setConfiguration(org.jruby.embed.ScriptingContainer);
descriptor: (Lorg/jruby/embed/ScriptingContainer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.embed.ScriptingContainer.getProvider:()Lorg/jruby/embed/internal/LocalContextProvider;
astore 1
start local 1 1: aload 1
invokeinterface org.jruby.embed.internal.LocalContextProvider.getRubyInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
astore 2
start local 2 2: getstatic org.jruby.embed.PropertyName.COMPILEMODE:Lorg/jruby/embed/PropertyName;
invokevirtual org.jruby.embed.PropertyName.toString:()Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 3: aload 3
ifnull 11
4: ldc "jit"
aload 3
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 7
5: aload 2
getstatic org.jruby.RubyInstanceConfig$CompileMode.JIT:Lorg/jruby/RubyInstanceConfig$CompileMode;
invokevirtual org.jruby.RubyInstanceConfig.setCompileMode:(Lorg/jruby/RubyInstanceConfig$CompileMode;)V
6: goto 11
7: StackMap locals: org.jruby.embed.internal.LocalContextProvider org.jruby.RubyInstanceConfig java.lang.String
StackMap stack:
ldc "force"
aload 3
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 10
8: aload 2
getstatic org.jruby.RubyInstanceConfig$CompileMode.FORCE:Lorg/jruby/RubyInstanceConfig$CompileMode;
invokevirtual org.jruby.RubyInstanceConfig.setCompileMode:(Lorg/jruby/RubyInstanceConfig$CompileMode;)V
9: goto 11
10: StackMap locals:
StackMap stack:
aload 2
getstatic org.jruby.RubyInstanceConfig$CompileMode.OFF:Lorg/jruby/RubyInstanceConfig$CompileMode;
invokevirtual org.jruby.RubyInstanceConfig.setCompileMode:(Lorg/jruby/RubyInstanceConfig$CompileMode;)V
11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 container Lorg/jruby/embed/ScriptingContainer;
1 12 1 provider Lorg/jruby/embed/internal/LocalContextProvider;
2 12 2 config Lorg/jruby/RubyInstanceConfig;
3 12 3 mode Ljava/lang/String;
MethodParameters:
Name Flags
container
public static void setJRubyHome(org.jruby.embed.ScriptingContainer);
descriptor: (Lorg/jruby/embed/ScriptingContainer;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.jruby.embed.util.SystemPropertyCatcher.findJRubyHome:(Ljava/lang/Object;)Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 0
invokevirtual org.jruby.embed.ScriptingContainer.getProvider:()Lorg/jruby/embed/internal/LocalContextProvider;
invokeinterface org.jruby.embed.internal.LocalContextProvider.getRubyInstanceConfig:()Lorg/jruby/RubyInstanceConfig;
aload 1
invokevirtual org.jruby.RubyInstanceConfig.setJRubyHome:(Ljava/lang/String;)V
3: StackMap locals: java.lang.String
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 container Lorg/jruby/embed/ScriptingContainer;
1 4 1 jrubyhome Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
container
public static java.lang.String findJRubyHome(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: ldc "JRUBY_HOME"
invokestatic org.jruby.util.SafePropertyAccessor.getenv:(Ljava/lang/String;)Ljava/lang/String;
dup
astore 1
start local 1 1: ifnull 3
2: aload 1
areturn
3: StackMap locals: java.lang.String
StackMap stack:
ldc "jruby.home"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
dup
astore 1
ifnull 5
4: aload 1
areturn
5: StackMap locals:
StackMap stack:
ldc "uri:classloader://META-INF/jruby.home"
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 instance Ljava/lang/Object;
1 6 1 jrubyhome Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
instance
public static java.lang.String findFromJar(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "/META-INF/jruby.home"
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 1
start local 1 1: aload 1
ifnonnull 4
2: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc "/META-INF/jruby.home/bin/jrubyc"
invokevirtual java.lang.Class.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 1
3: aload 1
ifnonnull 4
aconst_null
areturn
4: StackMap locals: java.net.URL
StackMap stack:
aload 1
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
ldc "jar"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
5: aload 1
invokestatic org.jruby.util.URLUtil.getPath:(Ljava/net/URL;)Ljava/lang/String;
astore 2
start local 2 6: aload 2
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 8
7: ldc "classpath:/META-INF/jruby.home"
astore 2
8: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "file:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 12
aload 2
ldc " "
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 12
9: aload 2
ldc " "
ldc "%20"
invokevirtual java.lang.String.replaceAll:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
10: goto 12
end local 2 11: StackMap locals:
StackMap stack:
ldc "classpath:/META-INF/jruby.home"
astore 2
start local 2 12: StackMap locals: java.lang.String
StackMap stack:
aload 2
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 14
13: aload 2
iconst_0
aload 2
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 2
14: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 instance Ljava/lang/Object;
1 15 1 resource Ljava/net/URL;
6 11 2 location Ljava/lang/String;
12 15 2 location Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
instance
public static java.util.List<java.lang.String> findLoadPaths();
descriptor: ()Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=7, args_size=0
0: getstatic org.jruby.embed.PropertyName.CLASSPATH:Lorg/jruby/embed/PropertyName;
invokevirtual org.jruby.embed.PropertyName.toString:()Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 2: aload 0
ifnonnull 4
3: ldc "java.class.path"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
4: StackMap locals: java.lang.String java.util.List
StackMap stack:
aload 0
ifnonnull 5
aload 1
areturn
5: StackMap locals:
StackMap stack:
aload 0
getstatic java.io.File.pathSeparator:Ljava/lang/String;
invokevirtual java.lang.String.split:(Ljava/lang/String;)[Ljava/lang/String;
astore 2
start local 2 6: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "file"
aastore
dup
iconst_1
ldc "url"
aastore
astore 3
start local 3 7: iconst_0
istore 4
start local 4 8: goto 20
9: StackMap locals: java.lang.String[] java.lang.String[] int
StackMap stack:
iload 4
istore 5
start local 5 10: iconst_0
istore 6
start local 6 11: goto 16
12: StackMap locals: int int
StackMap stack:
aload 3
iload 6
aaload
aload 2
iload 4
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
iload 4
aload 2
arraylength
iconst_1
isub
if_icmpge 15
13: aload 1
new java.lang.StringBuilder
dup
aload 2
iload 4
aaload
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
iinc 4 1
iload 4
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: goto 17
15: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
16: iload 6
aload 3
arraylength
if_icmplt 12
end local 6 17: StackMap locals:
StackMap stack:
iload 5
iload 4
if_icmpne 19
18: aload 1
aload 2
iload 4
aaload
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 5 19: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
20: iload 4
aload 2
arraylength
if_icmplt 9
end local 4 21: aload 1
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 22 0 paths Ljava/lang/String;
2 22 1 loadPaths Ljava/util/List<Ljava/lang/String;>;
6 22 2 possiblePaths [Ljava/lang/String;
7 22 3 prefixes [Ljava/lang/String;
8 21 4 i I
10 19 5 startIndex I
11 17 6 j I
Signature: ()Ljava/util/List<Ljava/lang/String;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public static boolean isRuby19(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc "j?ruby1[\\._]?9"
invokestatic org.jruby.embed.util.SystemPropertyCatcher.matches:(Ljava/lang/String;Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
name
private static boolean matches(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
aload 0
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 2
start local 2 1: aload 2
invokevirtual java.util.regex.Matcher.matches:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
0 2 1 pattern Ljava/lang/String;
1 2 2 matcher Ljava/util/regex/Matcher;
MethodParameters:
Name Flags
name final
pattern final
public static java.lang.String getBaseDir();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: ldc "PWD"
invokestatic org.jruby.util.SafePropertyAccessor.getenv:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnull 2
ldc "/"
aload 0
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
2: StackMap locals: java.lang.String
StackMap stack:
ldc "user.dir"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
3: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 baseDir Ljava/lang/String;
}
SourceFile: "SystemPropertyCatcher.java"
InnerClasses:
public final CompileMode = org.jruby.RubyInstanceConfig$CompileMode of org.jruby.RubyInstanceConfig