public final class jdk.nashorn.tools.jjs.Main extends jdk.nashorn.tools.Shell
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.tools.jjs.Main
super_class: jdk.nashorn.tools.Shell
{
private static final java.lang.String DOC_PROPERTY_NAME;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "__doc__"
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final java.io.File HIST_FILE;
descriptor: Ljava/io/File;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static java.lang.String JAVADOC_BASE;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=0, args_size=0
0: ldc "nashorn.jjs.debug"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
putstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
1: new java.io.File
dup
new java.io.File
dup
ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
ldc ".jjs.history"
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
putstatic jdk.nashorn.tools.jjs.Main.HIST_FILE:Ljava/io/File;
2: ldc "https://docs.oracle.com/javase/%d/docs/api/"
putstatic jdk.nashorn.tools.jjs.Main.JAVADOC_BASE:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial jdk.nashorn.tools.Shell.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/jjs/Main;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: getstatic java.lang.System.in:Ljava/io/InputStream;
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 0
invokestatic jdk.nashorn.tools.jjs.Main.main:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;[Ljava/lang/String;)I
istore 1
start local 1 1: iload 1
ifeq 7
2: iload 1
invokestatic java.lang.System.exit:(I)V
end local 1 3: goto 7
StackMap locals:
StackMap stack: java.io.IOException
4: astore 1
start local 1 5: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 1
invokevirtual java.io.PrintStream.println:(Ljava/lang/Object;)V
6: bipush 103
invokestatic java.lang.System.exit:(I)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 args [Ljava/lang/String;
1 3 1 exitCode I
5 7 1 e Ljava/io/IOException;
Exception table:
from to target type
0 3 4 Class java.io.IOException
MethodParameters:
Name Flags
args final
public static int main(java.io.InputStream, java.io.OutputStream, java.io.OutputStream, java.lang.String[]);
descriptor: (Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;[Ljava/lang/String;)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new jdk.nashorn.tools.jjs.Main
dup
invokespecial jdk.nashorn.tools.jjs.Main.<init>:()V
aload 0
aload 1
aload 2
aload 3
invokevirtual jdk.nashorn.tools.jjs.Main.run:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;[Ljava/lang/String;)I
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 in Ljava/io/InputStream;
0 1 1 out Ljava/io/OutputStream;
0 1 2 err Ljava/io/OutputStream;
0 1 3 args [Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in final
out final
err final
args final
protected int readEvalPrint(jdk.nashorn.internal.runtime.Context, jdk.nashorn.internal.objects.Global);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=11, locals=24, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
astore 3
start local 3 1: getstatic jdk.nashorn.tools.jjs.Main.bundle:Ljava/util/ResourceBundle;
ldc "shell.prompt"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 2: getstatic jdk.nashorn.tools.jjs.Main.bundle:Ljava/util/ResourceBundle;
ldc "shell.prompt2"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 3: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
astore 6
start local 6 4: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 7
start local 7 5: aload 7
aload 2
if_acmpeq 6
iconst_1
goto 7
StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 8
start local 8 8: new jdk.nashorn.tools.jjs.PropertiesHelper
dup
aload 1
invokespecial jdk.nashorn.tools.jjs.PropertiesHelper.<init>:(Ljdk/nashorn/internal/runtime/Context;)V
astore 9
start local 9 9: iload 8
ifeq 11
10: aload 2
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
11: StackMap locals: int jdk.nashorn.tools.jjs.PropertiesHelper
StackMap stack:
aload 1
aload 2
invokestatic jdk.nashorn.tools.jjs.Main.readJJSScript:()Ljava/lang/String;
aload 2
ldc "<jjs.js>"
invokevirtual jdk.nashorn.internal.runtime.Context.eval:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 10
start local 10 12: aload 10
ldc "isHeadless"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.ScriptFunction
aconst_null
iconst_0
anewarray java.lang.Object
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
istore 11
start local 11 13: iload 11
ifeq 14
aconst_null
goto 15
StackMap locals: jdk.nashorn.internal.runtime.ScriptObject int
StackMap stack:
14: aload 10
ldc "chooseFile"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.ScriptFunction
StackMap locals:
StackMap stack: jdk.nashorn.internal.runtime.ScriptFunction
15: astore 12
start local 12 16: new jdk.nashorn.tools.jjs.NashornCompleter
dup
aload 1
aload 2
aload 0
aload 9
aload 12
invokespecial jdk.nashorn.tools.jjs.NashornCompleter.<init>:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/tools/PartialParser;Ljdk/nashorn/tools/jjs/PropertiesHelper;Ljdk/nashorn/internal/runtime/ScriptFunction;)V
astore 13
start local 13 17: iload 11
ifeq 18
aconst_null
goto 19
StackMap locals: jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter
StackMap stack:
18: aload 10
ldc "browse"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.ScriptFunction
StackMap locals:
StackMap stack: jdk.nashorn.internal.runtime.ScriptFunction
19: astore 14
start local 14 20: aload 10
ldc "javadoc"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.internal.runtime.ScriptFunction
astore 15
start local 15 21: aconst_null
astore 16
aconst_null
astore 17
22: new jdk.nashorn.tools.jjs.Console
dup
getstatic java.lang.System.in:Ljava/io/InputStream;
getstatic java.lang.System.out:Ljava/io/PrintStream;
getstatic jdk.nashorn.tools.jjs.Main.HIST_FILE:Ljava/io/File;
aload 13
23: aload 1
aload 2
iload 11
aload 14
aload 15
invokedynamic apply(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;ZLjdk/nashorn/internal/runtime/ScriptFunction;Ljdk/nashorn/internal/runtime/ScriptFunction;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/nashorn/tools/jjs/Main.lambda$0(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;ZLjdk/nashorn/internal/runtime/ScriptFunction;Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
24: invokespecial jdk.nashorn.tools.jjs.Console.<init>:(Ljava/io/InputStream;Ljava/io/PrintStream;Ljava/io/File;Ljdk/nashorn/tools/jjs/NashornCompleter;Ljava/util/function/Function;)V
astore 18
start local 18 25: aload 2
invokevirtual jdk.nashorn.internal.objects.Global.addShellBuiltins:()V
26: aload 18
invokedynamic apply(Ljdk/nashorn/tools/jjs/Console;)Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/nashorn/tools/jjs/Main.lambda$1(Ljdk/nashorn/tools/jjs/Console;Ljava/lang/String;)Ljava/lang/String; (6)
(Ljava/lang/String;)Ljava/lang/String;
invokestatic jdk.nashorn.internal.runtime.ScriptingFunctions.setReadLineHelper:(Ljava/util/function/Function;)V
27: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnonnull 31
28: aload 0
aload 2
aload 1
aload 6
aload 3
invokedynamic accept(Ljdk/nashorn/tools/jjs/Main;Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;Ljava/io/PrintWriter;Ljdk/nashorn/internal/runtime/ScriptEnvironment;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
jdk/nashorn/tools/jjs/Main.lambda$2(Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;Ljava/io/PrintWriter;Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljava/lang/String;)V (7)
(Ljava/lang/String;)V
astore 19
start local 19 29: aload 2
ldc "history"
iconst_2
new jdk.nashorn.tools.jjs.HistoryObject
dup
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.getHistory:()Ljdk/internal/org/jline/reader/History;
aload 6
aload 19
invokespecial jdk.nashorn.tools.jjs.HistoryObject.<init>:(Ljdk/internal/org/jline/reader/History;Ljava/io/PrintWriter;Ljava/util/function/Consumer;)V
invokevirtual jdk.nashorn.internal.objects.Global.addOwnProperty:(Ljava/lang/Object;ILjava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
pop
30: aload 2
ldc "edit"
iconst_2
new jdk.nashorn.tools.jjs.EditObject
dup
aload 18
aload 6
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic accept(Ljava/io/PrintWriter;)Ljava/util/function/Consumer;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
java/io/PrintWriter.println(Ljava/lang/String;)V (5)
(Ljava/lang/String;)V
aload 19
invokespecial jdk.nashorn.tools.jjs.EditObject.<init>:(Ljdk/nashorn/tools/jjs/Console;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V
invokevirtual jdk.nashorn.internal.objects.Global.addOwnProperty:(Ljava/lang/Object;ILjava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
pop
end local 19 31: StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.ScriptObject int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction java.lang.Throwable java.lang.Throwable jdk.nashorn.tools.jjs.Console
StackMap stack:
aload 18
aload 4
aload 5
invokevirtual jdk.nashorn.tools.jjs.Console.readLine:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 19
start local 19 32: goto 48
end local 19 StackMap locals:
StackMap stack: java.io.IOException
33: astore 20
start local 20 34: aload 6
aload 20
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
35: aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 37
36: aload 20
aload 6
invokevirtual java.io.IOException.printStackTrace:(Ljava/io/PrintWriter;)V
37: StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.ScriptObject int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction java.lang.Throwable java.lang.Throwable jdk.nashorn.tools.jjs.Console top java.io.IOException
StackMap stack:
aload 18
ifnull 38
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.close:()V
38: StackMap locals:
StackMap stack:
iload 8
ifeq 40
39: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
40: StackMap locals:
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
41: goto 45
StackMap locals:
StackMap stack: java.lang.Exception
42: astore 23
start local 23 43: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 45
44: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 45: StackMap locals:
StackMap stack:
bipush 103
ireturn
end local 20 46: StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.ScriptObject int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction java.lang.Throwable java.lang.Throwable jdk.nashorn.tools.jjs.Console
StackMap stack: jdk.internal.org.jline.reader.UserInterruptException
pop
47: goto 66
start local 19 48: StackMap locals: java.lang.String
StackMap stack:
aload 19
ifnonnull 50
49: goto 66
50: StackMap locals:
StackMap stack:
aload 19
invokevirtual java.lang.String.isEmpty:()Z
ifeq 52
51: goto 31
52: StackMap locals:
StackMap stack:
aload 1
aload 2
aload 19
aload 2
ldc "<shell>"
invokevirtual jdk.nashorn.internal.runtime.Context.eval:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 20
start local 20 53: aload 20
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 31
54: aload 6
aload 20
aload 2
invokestatic jdk.nashorn.tools.jjs.Main.toString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 20 55: goto 31
StackMap locals:
StackMap stack: java.lang.Exception
56: astore 20
start local 20 57: aload 13
aload 20
iconst_1
aload 19
invokevirtual java.lang.String.length:()I
invokevirtual jdk.nashorn.tools.jjs.NashornCompleter.isSyntaxErrorAt:(Ljava/lang/Throwable;II)Z
ifeq 62
58: aload 13
aload 19
aload 20
aload 18
aload 5
aload 6
invokevirtual jdk.nashorn.tools.jjs.NashornCompleter.readMoreLines:(Ljava/lang/String;Ljava/lang/Exception;Ljdk/nashorn/tools/jjs/Console;Ljava/lang/String;Ljava/io/PrintWriter;)Ljava/lang/String;
astore 21
start local 21 59: aload 21
ifnull 31
aload 21
invokevirtual java.lang.String.isEmpty:()Z
ifne 31
60: aload 0
aload 1
aload 2
aload 21
aload 6
aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
invokevirtual jdk.nashorn.tools.jjs.Main.evalImpl:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/lang/String;Ljava/io/PrintWriter;Z)V
end local 21 61: goto 31
62: StackMap locals: java.lang.Exception
StackMap stack:
aload 6
aload 20
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
63: aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 31
64: aload 20
aload 6
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
end local 20 end local 19 65: goto 31
66: StackMap locals:
StackMap stack:
aload 18
ifnull 93
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.close:()V
goto 93
StackMap locals:
StackMap stack: java.lang.Throwable
67: astore 16
aload 18
ifnull 68
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.close:()V
end local 18 StackMap locals:
StackMap stack:
68: aload 16
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
69: astore 17
aload 16
ifnonnull 70
aload 17
astore 16
goto 71
StackMap locals:
StackMap stack:
70: aload 16
aload 17
if_acmpeq 71
aload 16
aload 17
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
71: aload 16
athrow
StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.ScriptObject int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction
StackMap stack: java.lang.Exception
72: astore 16
start local 16 73: aload 6
aload 16
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
74: aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 76
75: aload 16
aload 6
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
end local 16 76: StackMap locals:
StackMap stack:
iload 8
ifeq 78
77: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
78: StackMap locals:
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
79: goto 100
StackMap locals:
StackMap stack: java.lang.Exception
80: astore 23
start local 23 81: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 100
82: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 83: goto 100
84: StackMap locals:
StackMap stack: java.lang.Throwable
astore 22
85: iload 8
ifeq 87
86: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
87: StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.ScriptObject int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction top top top top top top java.lang.Throwable
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
88: goto 92
StackMap locals:
StackMap stack: java.lang.Exception
89: astore 23
start local 23 90: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 92
91: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 92: StackMap locals:
StackMap stack:
aload 22
athrow
93: StackMap locals: jdk.nashorn.tools.jjs.Main jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String java.lang.String java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.tools.jjs.PropertiesHelper jdk.nashorn.internal.runtime.ScriptObject int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.tools.jjs.NashornCompleter jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction
StackMap stack:
iload 8
ifeq 95
94: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
95: StackMap locals:
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
96: goto 100
StackMap locals:
StackMap stack: java.lang.Exception
97: astore 23
start local 23 98: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 100
99: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 100: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 15 end local 14 end local 13 end local 12 end local 11 end local 10 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 101 0 this Ljdk/nashorn/tools/jjs/Main;
0 101 1 context Ljdk/nashorn/internal/runtime/Context;
0 101 2 global Ljdk/nashorn/internal/objects/Global;
1 101 3 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
2 101 4 prompt Ljava/lang/String;
3 101 5 prompt2 Ljava/lang/String;
4 101 6 err Ljava/io/PrintWriter;
5 101 7 oldGlobal Ljdk/nashorn/internal/objects/Global;
8 101 8 globalChanged Z
9 101 9 propsHelper Ljdk/nashorn/tools/jjs/PropertiesHelper;
12 101 10 jjsObj Ljdk/nashorn/internal/runtime/ScriptObject;
13 101 11 isHeadless Z
16 101 12 fileChooserFunc Ljdk/nashorn/internal/runtime/ScriptFunction;
17 101 13 completer Ljdk/nashorn/tools/jjs/NashornCompleter;
20 101 14 browseFunc Ljdk/nashorn/internal/runtime/ScriptFunction;
21 101 15 javadoc Ljdk/nashorn/internal/runtime/ScriptFunction;
25 68 18 in Ljdk/nashorn/tools/jjs/Console;
29 31 19 evaluator Ljava/util/function/Consumer<Ljava/lang/String;>;
32 33 19 source Ljava/lang/String;
48 65 19 source Ljava/lang/String;
34 46 20 ioe Ljava/io/IOException;
53 55 20 res Ljava/lang/Object;
57 65 20 exp Ljava/lang/Exception;
59 61 21 fullSrc Ljava/lang/String;
73 76 16 e Ljava/lang/Exception;
43 45 23 exp Ljava/lang/Exception;
81 83 23 exp Ljava/lang/Exception;
90 92 23 exp Ljava/lang/Exception;
98 100 23 exp Ljava/lang/Exception;
Exception table:
from to target type
31 32 33 Class java.io.IOException
40 41 42 Class java.lang.Exception
31 32 46 Class jdk.internal.org.jline.reader.UserInterruptException
52 55 56 Class java.lang.Exception
25 37 67 any
46 66 67 any
22 38 69 any
46 69 69 any
21 38 72 Class java.lang.Exception
46 72 72 Class java.lang.Exception
78 79 80 Class java.lang.Exception
21 38 84 any
46 76 84 any
87 88 89 Class java.lang.Exception
95 96 97 Class java.lang.Exception
MethodParameters:
Name Flags
context final
global final
static java.lang.String getMessage(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic jdk.nashorn.tools.jjs.Main.bundle:Ljava/util/ResourceBundle;
aload 0
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 id Ljava/lang/String;
MethodParameters:
Name Flags
id final
private void evalImpl(jdk.nashorn.internal.runtime.Context, jdk.nashorn.internal.objects.Global, java.lang.String, java.io.PrintWriter, boolean);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/lang/String;Ljava/io/PrintWriter;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 1
aload 2
aload 3
aload 2
ldc "<shell>"
invokevirtual jdk.nashorn.internal.runtime.Context.eval:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 1: aload 6
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 8
2: aload 4
aload 6
aload 2
invokestatic jdk.nashorn.tools.jjs.Main.toString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 6 3: goto 8
StackMap locals:
StackMap stack: java.lang.Exception
4: astore 6
start local 6 5: aload 4
aload 6
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
6: iload 5
ifeq 8
7: aload 6
aload 4
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
end local 6 8: StackMap locals:
StackMap stack:
return
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 9 0 this Ljdk/nashorn/tools/jjs/Main;
0 9 1 context Ljdk/nashorn/internal/runtime/Context;
0 9 2 global Ljdk/nashorn/internal/objects/Global;
0 9 3 source Ljava/lang/String;
0 9 4 err Ljava/io/PrintWriter;
0 9 5 doe Z
1 3 6 res Ljava/lang/Object;
5 8 6 e Ljava/lang/Exception;
Exception table:
from to target type
0 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
context final
global final
source final
err final
doe final
private static void openBrowserForJavadoc(jdk.nashorn.internal.runtime.ScriptFunction, java.lang.String);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=3, args_size=2
start local 0 start local 1 0: new java.net.URI
dup
new java.lang.StringBuilder
dup
getstatic jdk.nashorn.tools.jjs.Main.JAVADOC_BASE:Ljava/lang/String;
iconst_1
anewarray java.lang.Object
dup
iconst_0
invokestatic java.lang.Runtime.version:()Ljava/lang/Runtime$Version;
invokevirtual java.lang.Runtime$Version.feature:()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;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 0
aconst_null
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 2: goto 4
StackMap locals:
StackMap stack: java.lang.Exception
3: pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 browse Ljdk/nashorn/internal/runtime/ScriptFunction;
0 5 1 relativeUrl Ljava/lang/String;
1 2 2 uri Ljava/net/URI;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
MethodParameters:
Name Flags
browse
relativeUrl
private static java.lang.String readJJSScript();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.nashorn.tools.jjs.Main$1
dup
invokespecial jdk.nashorn.tools.jjs.Main$1.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$0(jdk.nashorn.internal.runtime.Context, jdk.nashorn.internal.objects.Global, boolean, jdk.nashorn.internal.runtime.ScriptFunction, jdk.nashorn.internal.runtime.ScriptFunction, java.lang.String);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;ZLjdk/nashorn/internal/runtime/ScriptFunction;Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=9, args_size=6
start local 5 0: aload 0
aload 1
aload 5
aload 1
ldc "<shell>"
invokevirtual jdk.nashorn.internal.runtime.Context.eval:(Ljdk/nashorn/internal/runtime/ScriptObject;Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
astore 6
start local 6 1: aload 6
ifnull 26
aload 6
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 26
2: iload 2
ifne 7
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
aload 6
invokestatic jdk.nashorn.internal.objects.NativeJava.isType:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 7
3: getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
aload 6
invokestatic jdk.nashorn.internal.objects.NativeJava.typeName:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
astore 7
start local 7 4: new java.lang.StringBuilder
dup
aload 7
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
bipush 36
bipush 46
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".html"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 5: aload 3
aload 8
invokestatic jdk.nashorn.tools.jjs.Main.openBrowserForJavadoc:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/String;)V
end local 8 end local 7 6: goto 23
StackMap locals: java.lang.Object
StackMap stack:
7: iload 2
ifne 12
aload 6
instanceof jdk.nashorn.internal.runtime.NativeJavaPackage
ifeq 12
8: aload 6
checkcast jdk.nashorn.internal.runtime.NativeJavaPackage
invokevirtual jdk.nashorn.internal.runtime.NativeJavaPackage.getName:()Ljava/lang/String;
astore 7
start local 7 9: new java.lang.StringBuilder
dup
aload 7
bipush 46
bipush 47
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/package-summary.html"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 8
start local 8 10: aload 3
aload 8
invokestatic jdk.nashorn.tools.jjs.Main.openBrowserForJavadoc:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/String;)V
end local 8 end local 7 11: goto 23
StackMap locals:
StackMap stack:
12: getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
aload 6
invokestatic jdk.nashorn.internal.objects.NativeJava.isJavaMethod:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 15
13: aload 4
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 6
aastore
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
pop
14: ldc ""
areturn
15: StackMap locals:
StackMap stack:
aload 6
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 23
16: aload 6
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 7
start local 7 17: aload 7
ldc "__doc__"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.has:(Ljava/lang/Object;)Z
ifeq 20
18: aload 7
ldc "__doc__"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
aload 1
invokestatic jdk.nashorn.tools.jjs.Main.toString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
19: areturn
20: StackMap locals: jdk.nashorn.internal.runtime.ScriptObject
StackMap stack:
aload 7
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifeq 23
21: aload 7
checkcast jdk.nashorn.internal.runtime.ScriptFunction
invokevirtual jdk.nashorn.internal.runtime.ScriptFunction.getDocumentation:()Ljava/lang/String;
22: areturn
end local 7 23: StackMap locals:
StackMap stack:
aload 6
aload 1
invokestatic jdk.nashorn.tools.jjs.Main.toString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
24: areturn
end local 6 25: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptFunction jdk.nashorn.internal.runtime.ScriptFunction java.lang.String
StackMap stack: java.lang.Exception
pop
26: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 5 LocalVariableTable:
Start End Slot Name Signature
0 27 5 str Ljava/lang/String;
1 25 6 res Ljava/lang/Object;
4 6 7 typeName Ljava/lang/String;
5 6 8 url Ljava/lang/String;
9 11 7 pkgName Ljava/lang/String;
10 11 8 url Ljava/lang/String;
17 23 7 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
Exception table:
from to target type
0 14 25 Class java.lang.Exception
15 19 25 Class java.lang.Exception
20 22 25 Class java.lang.Exception
23 24 25 Class java.lang.Exception
private static java.lang.String lambda$1(jdk.nashorn.tools.jjs.Console, java.lang.String);
descriptor: (Ljdk/nashorn/tools/jjs/Console;Ljava/lang/String;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=3, args_size=2
start local 1 0: aload 0
aload 1
invokevirtual jdk.nashorn.tools.jjs.Console.readUserLine:(Ljava/lang/String;)Ljava/lang/String;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: new java.io.UncheckedIOException
dup
aload 2
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 2 end local 1 LocalVariableTable:
Start End Slot Name Signature
0 4 1 str Ljava/lang/String;
3 4 2 ioExp Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
private void lambda$2(jdk.nashorn.internal.objects.Global, jdk.nashorn.internal.runtime.Context, java.io.PrintWriter, jdk.nashorn.internal.runtime.ScriptEnvironment, java.lang.String);
descriptor: (Ljdk/nashorn/internal/objects/Global;Ljdk/nashorn/internal/runtime/Context;Ljava/io/PrintWriter;Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljava/lang/String;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=6, locals=9, args_size=6
start local 0 start local 5 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 6
start local 6 1: aload 6
aload 1
if_acmpeq 2
iconst_1
goto 3
StackMap locals: jdk.nashorn.internal.objects.Global
StackMap stack:
2: iconst_0
StackMap locals:
StackMap stack: int
3: istore 7
start local 7 4: iload 7
ifeq 6
5: aload 1
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
6: StackMap locals: int
StackMap stack:
aload 0
aload 2
aload 1
aload 5
aload 3
aload 4
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
invokevirtual jdk.nashorn.tools.jjs.Main.evalImpl:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/lang/String;Ljava/io/PrintWriter;Z)V
7: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 8
9: iload 7
ifeq 11
10: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
11: StackMap locals: java.lang.Throwable
StackMap stack:
aload 8
athrow
12: StackMap locals:
StackMap stack:
iload 7
ifeq 14
13: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
end local 7 end local 6 14: StackMap locals:
StackMap stack:
return
end local 5 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/nashorn/tools/jjs/Main;
0 15 5 str Ljava/lang/String;
1 14 6 _oldGlobal Ljdk/nashorn/internal/objects/Global;
4 14 7 _globalChanged Z
Exception table:
from to target type
6 8 8 any
}
SourceFile: "Main.java"
NestMembers:
jdk.nashorn.tools.jjs.Main$1
InnerClasses:
public final Version = java.lang.Runtime$Version of java.lang.Runtime
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
jdk.nashorn.tools.jjs.Main$1
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "11", forRemoval = true)