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/jline/extra/EditingHistory;
aload 6
aload 19
invokespecial jdk.nashorn.tools.jjs.HistoryObject.<init>:(Ljdk/internal/jline/console/history/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:
ldc ""
astore 19
start local 19 32: aload 18
aload 4
invokevirtual jdk.nashorn.tools.jjs.Console.readLine:(Ljava/lang/String;)Ljava/lang/String;
astore 19
33: goto 49
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 java.lang.String
StackMap stack: java.io.IOException
34: astore 20
start local 20 35: aload 6
aload 20
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
36: aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 38
37: aload 20
aload 6
invokevirtual java.io.IOException.printStackTrace:(Ljava/io/PrintWriter;)V
38: StackMap locals: java.io.IOException
StackMap stack:
aload 18
ifnull 39
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.close:()V
39: StackMap locals:
StackMap stack:
iload 8
ifeq 41
40: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
41: StackMap locals:
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
42: goto 46
StackMap locals:
StackMap stack: java.lang.Exception
43: astore 23
start local 23 44: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 46
45: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 46: StackMap locals:
StackMap stack:
bipush 103
ireturn
end local 20 47: 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 java.lang.String
StackMap stack: jdk.internal.jline.console.UserInterruptException
pop
48: goto 67
49: StackMap locals:
StackMap stack:
aload 19
ifnonnull 51
50: goto 67
51: StackMap locals:
StackMap stack:
aload 19
invokevirtual java.lang.String.isEmpty:()Z
ifeq 53
52: goto 31
53: 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 54: aload 20
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 31
55: 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 56: goto 31
StackMap locals:
StackMap stack: java.lang.Exception
57: astore 20
start local 20 58: 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 63
59: 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 60: aload 21
ifnull 31
aload 21
invokevirtual java.lang.String.isEmpty:()Z
ifne 31
61: 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 62: goto 31
63: StackMap locals: java.lang.Exception
StackMap stack:
aload 6
aload 20
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
64: aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 31
65: aload 20
aload 6
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
end local 20 end local 19 66: goto 31
67: StackMap locals:
StackMap stack:
aload 18
ifnull 94
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.close:()V
goto 94
StackMap locals:
StackMap stack: java.lang.Throwable
68: astore 16
aload 18
ifnull 69
aload 18
invokevirtual jdk.nashorn.tools.jjs.Console.close:()V
end local 18 StackMap locals:
StackMap stack:
69: aload 16
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
70: astore 17
aload 16
ifnonnull 71
aload 17
astore 16
goto 72
StackMap locals:
StackMap stack:
71: aload 16
aload 17
if_acmpeq 72
aload 16
aload 17
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
72: 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
73: astore 16
start local 16 74: aload 6
aload 16
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
75: aload 3
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 77
76: aload 16
aload 6
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
end local 16 77: StackMap locals:
StackMap stack:
iload 8
ifeq 79
78: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
79: StackMap locals:
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
80: goto 101
StackMap locals:
StackMap stack: java.lang.Exception
81: astore 23
start local 23 82: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 101
83: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 84: goto 101
85: StackMap locals:
StackMap stack: java.lang.Throwable
astore 22
86: iload 8
ifeq 88
87: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
88: 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
89: goto 93
StackMap locals:
StackMap stack: java.lang.Exception
90: astore 23
start local 23 91: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 93
92: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 93: StackMap locals:
StackMap stack:
aload 22
athrow
94: 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 96
95: aload 7
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
96: StackMap locals:
StackMap stack:
aload 9
invokevirtual jdk.nashorn.tools.jjs.PropertiesHelper.close:()V
97: goto 101
StackMap locals:
StackMap stack: java.lang.Exception
98: astore 23
start local 23 99: getstatic jdk.nashorn.tools.jjs.Main.DEBUG:Z
ifeq 101
100: aload 23
invokevirtual java.lang.Exception.printStackTrace:()V
end local 23 101: 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 102 0 this Ljdk/nashorn/tools/jjs/Main;
0 102 1 context Ljdk/nashorn/internal/runtime/Context;
0 102 2 global Ljdk/nashorn/internal/objects/Global;
1 102 3 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
2 102 4 prompt Ljava/lang/String;
3 102 5 prompt2 Ljava/lang/String;
4 102 6 err Ljava/io/PrintWriter;
5 102 7 oldGlobal Ljdk/nashorn/internal/objects/Global;
8 102 8 globalChanged Z
9 102 9 propsHelper Ljdk/nashorn/tools/jjs/PropertiesHelper;
12 102 10 jjsObj Ljdk/nashorn/internal/runtime/ScriptObject;
13 102 11 isHeadless Z
16 102 12 fileChooserFunc Ljdk/nashorn/internal/runtime/ScriptFunction;
17 102 13 completer Ljdk/nashorn/tools/jjs/NashornCompleter;
20 102 14 browseFunc Ljdk/nashorn/internal/runtime/ScriptFunction;
21 102 15 javadoc Ljdk/nashorn/internal/runtime/ScriptFunction;
25 69 18 in Ljdk/nashorn/tools/jjs/Console;
29 31 19 evaluator Ljava/util/function/Consumer<Ljava/lang/String;>;
32 66 19 source Ljava/lang/String;
35 47 20 ioe Ljava/io/IOException;
54 56 20 res Ljava/lang/Object;
58 66 20 exp Ljava/lang/Exception;
60 62 21 fullSrc Ljava/lang/String;
74 77 16 e Ljava/lang/Exception;
44 46 23 exp Ljava/lang/Exception;
82 84 23 exp Ljava/lang/Exception;
91 93 23 exp Ljava/lang/Exception;
99 101 23 exp Ljava/lang/Exception;
Exception table:
from to target type
32 33 34 Class java.io.IOException
41 42 43 Class java.lang.Exception
32 33 47 Class jdk.internal.jline.console.UserInterruptException
53 56 57 Class java.lang.Exception
25 38 68 any
47 67 68 any
22 39 70 any
47 70 70 any
21 39 73 Class java.lang.Exception
47 73 73 Class java.lang.Exception
79 80 81 Class java.lang.Exception
21 39 85 any
47 77 85 any
88 89 90 Class java.lang.Exception
96 97 98 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.readLine:(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