public class org.jruby.util.cli.OutputStrings
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.cli.OutputStrings
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/cli/OutputStrings;
public static java.lang.String getBasicUsageHelp();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 0
start local 0 1: aload 0
2: ldc "Usage: jruby [switches] [--] [programfile] [arguments]\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc " -0[octal] specify record separator (\\0, if no argument)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc " -a autosplit mode with -n or -p (splits $_ into $F)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc " -c check syntax only\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc " -Cdirectory cd to directory, before executing your script\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " -d set debugging flags (set $DEBUG to true)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc " -e 'command' one line of script. Several -e's allowed. Omit [programfile]\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc " -Eex[:in] specify the default external and internal character encodings\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc " -Fpattern split() pattern for autosplit (-a)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc " -G load a Bundler Gemspec before executing any user code\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
12: ldc " -i[extension] edit ARGV files in place (make backup if extension supplied)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
13: ldc " -Idirectory specify $LOAD_PATH directory (may be used more than once)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
14: ldc " -J[java option] pass an option on to the JVM (e.g. -J-Xmx512m)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: ldc " use --properties to list JRuby properties\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: ldc " run 'java -help' for a list of other Java options\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: ldc " -l enable line ending processing\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc " -n assume 'while gets(); ... end' loop around your script\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: ldc " -p assume loop like -n but print line also like sed\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: ldc " -rlibrary require the library, before executing your script\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
21: ldc " -s enable some switch parsing for switches after script name\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
22: ldc " -S look for the script in bin or using PATH environment variable\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
23: ldc " -T[level] turn on tainting checks\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
24: ldc " -U use UTF-8 as default internal encoding\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
25: ldc " -v print version number, then turn on verbose mode\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
26: ldc " -w turn warnings on for your script\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
27: ldc " -W[level] set warning level; 0=silence, 1=medium, 2=verbose (default)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
28: ldc " -x[directory] strip off text before #!ruby line and perhaps cd to directory\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
29: ldc " -X[option] enable extended option (omit option to list)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
30: ldc " -y enable parsing debug output\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
31: ldc " --copyright print the copyright\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
32: ldc " --debug sets the execution mode most suitable for debugger\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
33: ldc " functionality\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
34: ldc " --jdb runs JRuby process under JDB\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
35: ldc " --properties List all configuration Java properties\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
36: ldc " (prepend \"jruby.\" when passing directly to Java)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
37: ldc " --environment Log environment and command line flags but do not run JRuby\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
38: ldc " --sample run with profiling using the JVM's sampling profiler\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
39: ldc " --profile run with instrumented (timed) profiling, flat format\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
40: ldc " --profile.api activate Ruby profiler API\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
41: ldc " --profile.flat synonym for --profile\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
42: ldc " --profile.graph run with instrumented (timed) profiling, graph format\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
43: ldc " --profile.html run with instrumented (timed) profiling, graph format in HTML\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
44: ldc " --profile.json run with instrumented (timed) profiling, graph format in JSON\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
45: ldc " --profile.out [file]\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
46: ldc " --profile.service <ProfilingService implementation classname>\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
47: ldc " output profile data to [file]\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
48: ldc " --client use the non-optimizing \"client\" JVM\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
49: ldc " (improves startup; default)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
50: ldc " --server use the optimizing \"server\" JVM (improves perf)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
51: ldc " --headless do not launch a GUI window, no matter what\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
52: ldc " --dev prioritize startup time over long term performance\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
53: ldc " --manage enable remote JMX management and monitoring of JVM and JRuby\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
54: ldc " --bytecode show the JVM bytecode produced by compiling specified code\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
55: ldc " --version print the version\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
56: ldc " --disable-gems do not load RubyGems on startup\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
57: ldc " --enable=feature[,...], --disable=feature[,...]\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
58: ldc " enable or disable features\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
59: aload 0
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 60 0 sb Ljava/lang/StringBuilder;
public static java.lang.String getFeaturesHelp();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc "Features:\n gems rubygems (default: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: getstatic org.jruby.util.cli.Options.CLI_RUBYGEMS_ENABLE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.defaultValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 2
ldc "enabled"
goto 3
StackMap locals:
StackMap stack: java.lang.StringBuilder
2: ldc "disabled"
StackMap locals:
StackMap stack: java.lang.StringBuilder java.lang.String
3: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc " did_you_mean did_you_mean (default: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.jruby.util.cli.Options.CLI_DID_YOU_MEAN_ENABLE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.defaultValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 5
ldc "enabled"
goto 6
StackMap locals:
StackMap stack: java.lang.StringBuilder
5: ldc "disabled"
StackMap locals:
StackMap stack: java.lang.StringBuilder java.lang.String
6: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " rubyopt RUBYOPT environment variable (default: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.jruby.util.cli.Options.CLI_RUBYOPT_ENABLE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.defaultValue:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 8
ldc "enabled"
goto 9
StackMap locals:
StackMap stack: java.lang.StringBuilder
8: ldc "disabled"
StackMap locals:
StackMap stack: java.lang.StringBuilder java.lang.String
9: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ")\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: ldc " frozen-string-literal freeze all string literals (default: disabled)\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getExtendedHelp();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc "Extended options:\n -X-O run with ObjectSpace disabled (default; improves performance)\n -X+O run with ObjectSpace enabled (reduces performance)\n -X-C disable all compilation\n -X-CIR disable all compilation and use IR runtime\n -X+C force compilation of all scripts before they are run (except eval)\n -X+CIR force compilation and use IR runtime\n -X+JIR JIT compilation and use IR runtime\n -Xsubstring? list options that contain substring in their name\n -Xprefix... list options that are prefixed with prefix\n"
1: areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getPropertyHelp();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 0
start local 0 1: aload 0
2: ldc "# These properties can be used to alter runtime behavior for perf or compatibility.\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "# Specify them by passing -X<property>=<value>\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "# or if passing directly to Java, -Djruby.<property>=<value>\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc "# or put <property>=<value> in .jrubyrc\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: ldc "#\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc "# This dump is a valid .jrubyrc file of current settings. Uncomment and modify\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "# settings to customize.\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 0
getstatic org.jruby.util.cli.Options.PROPERTIES:Ljava/util/Collection;
invokestatic com.headius.options.Option.formatOptions:(Ljava/util/Collection;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 0
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 11 0 sb Ljava/lang/StringBuilder;
public static java.lang.String getVersionString();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=0, args_size=0
0: ldc "jruby %s (%s) %s %s %s %s on %s%s%s [%s-%s]"
bipush 11
anewarray java.lang.Object
dup
iconst_0
1: ldc "9.2.14.0"
aastore
dup
iconst_1
2: ldc "2.5.7"
aastore
dup
iconst_2
3: ldc "2020-12-08"
aastore
dup
iconst_3
4: getstatic org.jruby.runtime.Constants.REVISION:Ljava/lang/String;
aastore
dup
iconst_4
5: ldc "java.vm.name"
ldc "Unknown JVM"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
dup
iconst_5
6: ldc "java.vm.version"
ldc "Unknown JVM version"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
dup
bipush 6
7: ldc "java.runtime.version"
ldc "java.version"
ldc "Unknown version"
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic org.jruby.util.SafePropertyAccessor.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
dup
bipush 7
8: getstatic org.jruby.util.cli.Options.COMPILE_INVOKEDYNAMIC:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 9
ldc " +indy"
goto 10
StackMap locals:
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
9: ldc ""
StackMap locals:
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
10: aastore
dup
bipush 8
11: getstatic org.jruby.util.cli.Options.COMPILE_MODE:Lcom/headius/options/Option;
invokevirtual com.headius.options.Option.load:()Ljava/lang/Object;
checkcast org.jruby.RubyInstanceConfig$CompileMode
invokevirtual org.jruby.RubyInstanceConfig$CompileMode.shouldJIT:()Z
ifeq 12
ldc " +jit"
goto 13
StackMap locals:
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int
12: ldc ""
StackMap locals:
StackMap stack: java.lang.String java.lang.Object[] java.lang.Object[] int java.lang.String
13: aastore
dup
bipush 9
14: invokestatic org.jruby.ext.rbconfig.RbConfigLibrary.getOSName:()Ljava/lang/String;
aastore
dup
bipush 10
15: invokestatic org.jruby.ext.rbconfig.RbConfigLibrary.getArchitecture:()Ljava/lang/String;
aastore
16: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.lang.String getCopyrightString();
descriptor: ()Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc "JRuby - Copyright (C) 2001-%s The JRuby Community (and contribs)"
iconst_1
anewarray java.lang.Object
dup
iconst_0
invokestatic java.time.LocalDate.now:()Ljava/time/LocalDate;
invokevirtual java.time.LocalDate.getYear:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "OutputStrings.java"
InnerClasses:
public final CompileMode = org.jruby.RubyInstanceConfig$CompileMode of org.jruby.RubyInstanceConfig