public class jdk.nashorn.tools.Shell implements jdk.nashorn.tools.PartialParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.nashorn.tools.Shell
super_class: java.lang.Object
{
private static final java.lang.String MESSAGE_RESOURCE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "jdk.nashorn.tools.resources.Shell"
protected static final java.util.ResourceBundle bundle;
descriptor: Ljava/util/ResourceBundle;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
public static final int SUCCESS;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0
public static final int COMMANDLINE_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 100
public static final int COMPILATION_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 101
public static final int RUNTIME_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 102
public static final int IO_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 103
public static final int INTERNAL_ERROR;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 104
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "jdk.nashorn.tools.resources.Shell"
invokestatic java.util.Locale.getDefault:()Ljava/util/Locale;
invokestatic java.util.ResourceBundle.getBundle:(Ljava/lang/String;Ljava/util/Locale;)Ljava/util/ResourceBundle;
putstatic jdk.nashorn.tools.Shell.bundle:Ljava/util/ResourceBundle;
1: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/tools/Shell;
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.Shell.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.Shell
dup
invokespecial jdk.nashorn.tools.Shell.<init>:()V
aload 0
aload 1
aload 2
aload 3
invokevirtual jdk.nashorn.tools.Shell.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 final int run(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: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=4, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
aload 2
aload 3
aload 4
invokestatic jdk.nashorn.tools.Shell.makeContext:(Ljava/io/InputStream;Ljava/io/OutputStream;Ljava/io/OutputStream;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Context;
astore 5
start local 5 1: aload 5
ifnonnull 3
2: bipush 100
ireturn
3: StackMap locals: jdk.nashorn.internal.runtime.Context
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.runtime.Context.createGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 6
start local 6 4: aload 5
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
astore 7
start local 7 5: aload 7
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getFiles:()Ljava/util/List;
astore 8
start local 8 6: aload 8
invokeinterface java.util.List.isEmpty:()Z
ifeq 8
7: aload 0
aload 5
aload 6
invokevirtual jdk.nashorn.tools.Shell.readEvalPrint:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;)I
ireturn
8: StackMap locals: jdk.nashorn.internal.objects.Global jdk.nashorn.internal.runtime.ScriptEnvironment java.util.List
StackMap stack:
aload 7
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._compile_only:Z
ifeq 10
9: aload 5
aload 6
aload 8
invokestatic jdk.nashorn.tools.Shell.compileScripts:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List;)I
ireturn
10: StackMap locals:
StackMap stack:
aload 7
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._fx:Z
ifeq 12
11: aload 5
aload 6
aload 8
invokestatic jdk.nashorn.tools.Shell.runFXScripts:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List;)I
ireturn
12: StackMap locals:
StackMap stack:
aload 0
aload 5
aload 6
aload 8
invokevirtual jdk.nashorn.tools.Shell.runScripts:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List;)I
ireturn
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 13 0 this Ljdk/nashorn/tools/Shell;
0 13 1 in Ljava/io/InputStream;
0 13 2 out Ljava/io/OutputStream;
0 13 3 err Ljava/io/OutputStream;
0 13 4 args [Ljava/lang/String;
1 13 5 context Ljdk/nashorn/internal/runtime/Context;
4 13 6 global Ljdk/nashorn/internal/objects/Global;
5 13 7 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
6 13 8 files Ljava/util/List<Ljava/lang/String;>;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
in final
out final
err final
args final
private static jdk.nashorn.internal.runtime.Context makeContext(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;)Ljdk/nashorn/internal/runtime/Context;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=17, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
instanceof java.io.PrintStream
ifeq 1
aload 1
checkcast java.io.PrintStream
goto 2
StackMap locals:
StackMap stack:
1: new java.io.PrintStream
dup
aload 1
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
StackMap locals:
StackMap stack: java.io.PrintStream
2: astore 4
start local 4 3: aload 2
instanceof java.io.PrintStream
ifeq 4
aload 2
checkcast java.io.PrintStream
goto 5
StackMap locals: java.io.PrintStream
StackMap stack:
4: new java.io.PrintStream
dup
aload 2
invokespecial java.io.PrintStream.<init>:(Ljava/io/OutputStream;)V
StackMap locals:
StackMap stack: java.io.PrintStream
5: astore 5
start local 5 6: new java.io.PrintWriter
dup
aload 4
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
astore 6
start local 6 7: new java.io.PrintWriter
dup
aload 5
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
astore 7
start local 7 8: new jdk.nashorn.internal.runtime.ErrorManager
dup
aload 7
invokespecial jdk.nashorn.internal.runtime.ErrorManager.<init>:(Ljava/io/PrintWriter;)V
astore 8
start local 8 9: new jdk.nashorn.internal.runtime.options.Options
dup
ldc "nashorn"
aload 7
invokespecial jdk.nashorn.internal.runtime.options.Options.<init>:(Ljava/lang/String;Ljava/io/PrintWriter;)V
astore 9
start local 9 10: aload 3
ifnull 18
11: aload 3
invokestatic jdk.nashorn.tools.Shell.preprocessArgs:([Ljava/lang/String;)[Ljava/lang/String;
astore 10
start local 10 12: aload 9
aload 10
invokevirtual jdk.nashorn.internal.runtime.options.Options.process:([Ljava/lang/String;)V
end local 10 13: goto 18
StackMap locals: java.io.InputStream java.io.OutputStream java.io.OutputStream java.lang.String[] java.io.PrintStream java.io.PrintStream java.io.PrintWriter java.io.PrintWriter jdk.nashorn.internal.runtime.ErrorManager jdk.nashorn.internal.runtime.options.Options
StackMap stack: java.lang.IllegalArgumentException
14: astore 10
start local 10 15: aload 7
getstatic jdk.nashorn.tools.Shell.bundle:Ljava/util/ResourceBundle;
ldc "shell.usage"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
16: aload 9
aload 10
invokevirtual jdk.nashorn.internal.runtime.options.Options.displayHelp:(Ljava/lang/IllegalArgumentException;)V
17: aconst_null
areturn
end local 10 18: StackMap locals:
StackMap stack:
aload 9
ldc "scripting"
invokevirtual jdk.nashorn.internal.runtime.options.Options.getBoolean:(Ljava/lang/String;)Z
ifne 38
19: aload 9
invokevirtual jdk.nashorn.internal.runtime.options.Options.getFiles:()Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 11
goto 37
StackMap locals: java.io.InputStream java.io.OutputStream java.io.OutputStream java.lang.String[] java.io.PrintStream java.io.PrintStream java.io.PrintWriter java.io.PrintWriter jdk.nashorn.internal.runtime.ErrorManager jdk.nashorn.internal.runtime.options.Options top java.util.Iterator
StackMap stack:
20: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 21: new java.io.File
dup
aload 10
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 12
start local 12 22: aload 12
invokevirtual java.io.File.isFile:()Z
ifeq 37
23: aconst_null
astore 13
aconst_null
astore 14
24: new java.io.FileReader
dup
aload 12
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
astore 15
start local 15 25: aload 15
invokevirtual java.io.FileReader.read:()I
istore 16
start local 16 26: iload 16
bipush 35
if_icmpne 30
27: aload 9
ldc "scripting"
iconst_1
invokevirtual jdk.nashorn.internal.runtime.options.Options.set:(Ljava/lang/String;Z)V
28: aload 15
ifnull 38
aload 15
invokevirtual java.io.FileReader.close:()V
29: goto 38
end local 16 30: StackMap locals: java.io.InputStream java.io.OutputStream java.io.OutputStream java.lang.String[] java.io.PrintStream java.io.PrintStream java.io.PrintWriter java.io.PrintWriter jdk.nashorn.internal.runtime.ErrorManager jdk.nashorn.internal.runtime.options.Options java.lang.String java.util.Iterator java.io.File java.lang.Throwable java.lang.Throwable java.io.FileReader
StackMap stack:
aload 15
ifnull 37
aload 15
invokevirtual java.io.FileReader.close:()V
goto 37
StackMap locals:
StackMap stack: java.lang.Throwable
31: astore 13
aload 15
ifnull 32
aload 15
invokevirtual java.io.FileReader.close:()V
end local 15 StackMap locals:
StackMap stack:
32: aload 13
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
33: astore 14
aload 13
ifnonnull 34
aload 14
astore 13
goto 35
StackMap locals:
StackMap stack:
34: aload 13
aload 14
if_acmpeq 35
aload 13
aload 14
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
35: aload 13
athrow
StackMap locals: java.io.InputStream java.io.OutputStream java.io.OutputStream java.lang.String[] java.io.PrintStream java.io.PrintStream java.io.PrintWriter java.io.PrintWriter jdk.nashorn.internal.runtime.ErrorManager jdk.nashorn.internal.runtime.options.Options java.lang.String java.util.Iterator java.io.File
StackMap stack: java.io.IOException
36: pop
end local 12 end local 10 37: StackMap locals: java.io.InputStream java.io.OutputStream java.io.OutputStream java.lang.String[] java.io.PrintStream java.io.PrintStream java.io.PrintWriter java.io.PrintWriter jdk.nashorn.internal.runtime.ErrorManager jdk.nashorn.internal.runtime.options.Options top java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
38: StackMap locals: java.io.InputStream java.io.OutputStream java.io.OutputStream java.lang.String[] java.io.PrintStream java.io.PrintStream java.io.PrintWriter java.io.PrintWriter jdk.nashorn.internal.runtime.ErrorManager jdk.nashorn.internal.runtime.options.Options
StackMap stack:
new jdk.nashorn.internal.runtime.Context
dup
aload 9
aload 8
aload 6
aload 7
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
invokespecial jdk.nashorn.internal.runtime.Context.<init>:(Ljdk/nashorn/internal/runtime/options/Options;Ljdk/nashorn/internal/runtime/ErrorManager;Ljava/io/PrintWriter;Ljava/io/PrintWriter;Ljava/lang/ClassLoader;)V
areturn
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 39 0 in Ljava/io/InputStream;
0 39 1 out Ljava/io/OutputStream;
0 39 2 err Ljava/io/OutputStream;
0 39 3 args [Ljava/lang/String;
3 39 4 pout Ljava/io/PrintStream;
6 39 5 perr Ljava/io/PrintStream;
7 39 6 wout Ljava/io/PrintWriter;
8 39 7 werr Ljava/io/PrintWriter;
9 39 8 errors Ljdk/nashorn/internal/runtime/ErrorManager;
10 39 9 options Ljdk/nashorn/internal/runtime/options/Options;
12 13 10 prepArgs [Ljava/lang/String;
15 18 10 e Ljava/lang/IllegalArgumentException;
21 37 10 fileName Ljava/lang/String;
22 37 12 firstFile Ljava/io/File;
25 32 15 fr Ljava/io/FileReader;
26 30 16 firstChar I
Exception table:
from to target type
11 13 14 Class java.lang.IllegalArgumentException
25 28 31 any
24 29 33 any
30 33 33 any
23 29 36 Class java.io.IOException
30 36 36 Class java.io.IOException
MethodParameters:
Name Flags
in final
out final
err final
args final
private static java.lang.String[] preprocessArgs(java.lang.String[]);
descriptor: ([Ljava/lang/String;)[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=10, args_size=1
start local 0 0: aload 0
arraylength
ifne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 3: aload 1
aload 0
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
4: aload 0
iconst_0
aaload
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 6
ldc "os.name"
ldc "generic"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
ldc "Mac OS X"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 6
5: aload 1
iconst_0
aload 1
iconst_0
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast java.lang.String
invokestatic jdk.nashorn.tools.Shell.tokenizeString:(Ljava/lang/String;)Ljava/util/List;
invokeinterface java.util.List.addAll:(ILjava/util/Collection;)Z
pop
6: StackMap locals: java.util.List
StackMap stack:
iconst_m1
istore 2
start local 2 7: iconst_0
istore 3
start local 3 8: goto 27
9: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 10: aload 4
ldc "-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 26
11: aload 4
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
astore 5
start local 5 12: ldc ""
astore 6
start local 6 13: aconst_null
astore 7
aconst_null
astore 8
14: aload 5
invokestatic java.nio.file.Files.newBufferedReader:(Ljava/nio/file/Path;)Ljava/io/BufferedReader;
astore 9
start local 9 15: aload 9
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 6
16: aload 9
ifnull 23
aload 9
invokevirtual java.io.BufferedReader.close:()V
goto 23
StackMap locals: java.lang.String[] java.util.List int int java.lang.String java.nio.file.Path java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedReader
StackMap stack: java.lang.Throwable
17: astore 7
aload 9
ifnull 18
aload 9
invokevirtual java.io.BufferedReader.close:()V
end local 9 StackMap locals:
StackMap stack:
18: aload 7
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
19: astore 8
aload 7
ifnonnull 20
aload 8
astore 7
goto 21
StackMap locals:
StackMap stack:
20: aload 7
aload 8
if_acmpeq 21
aload 7
aload 8
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
21: aload 7
athrow
StackMap locals: java.lang.String[] java.util.List int int java.lang.String java.nio.file.Path java.lang.String
StackMap stack: java.io.IOException
22: pop
23: StackMap locals:
StackMap stack:
aload 6
ldc "#!"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 28
24: iload 3
istore 2
25: goto 28
end local 6 end local 5 end local 4 26: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
27: iload 3
aload 1
invokeinterface java.util.List.size:()I
if_icmplt 9
end local 3 28: StackMap locals:
StackMap stack:
iload 2
iconst_m1
if_icmpeq 30
29: aload 1
iload 2
iconst_1
iadd
ldc "--"
invokeinterface java.util.List.add:(ILjava/lang/Object;)V
30: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.util.List.stream:()Ljava/util/stream/Stream;
invokedynamic apply()Ljava/util/function/IntFunction;
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:
(I)Ljava/lang/Object;
jdk/nashorn/tools/Shell.lambda$0(I)[Ljava/lang/String; (6)
(I)[Ljava/lang/String;
invokeinterface java.util.stream.Stream.toArray:(Ljava/util/function/IntFunction;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 args [Ljava/lang/String;
3 31 1 processedArgs Ljava/util/List<Ljava/lang/String;>;
7 31 2 shebangFilePos I
8 28 3 i I
10 26 4 a Ljava/lang/String;
12 26 5 p Ljava/nio/file/Path;
13 26 6 l Ljava/lang/String;
15 18 9 r Ljava/io/BufferedReader;
Exception table:
from to target type
15 16 17 any
14 19 19 any
13 22 22 Class java.io.IOException
MethodParameters:
Name Flags
args final
public static java.util.List<java.lang.String> tokenizeString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: new java.io.StreamTokenizer
dup
new java.io.StringReader
dup
aload 0
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.StreamTokenizer.<init>:(Ljava/io/Reader;)V
astore 1
start local 1 1: aload 1
invokevirtual java.io.StreamTokenizer.resetSyntax:()V
2: aload 1
iconst_0
sipush 255
invokevirtual java.io.StreamTokenizer.wordChars:(II)V
3: aload 1
iconst_0
bipush 32
invokevirtual java.io.StreamTokenizer.whitespaceChars:(II)V
4: aload 1
bipush 35
invokevirtual java.io.StreamTokenizer.commentChar:(I)V
5: aload 1
bipush 34
invokevirtual java.io.StreamTokenizer.quoteChar:(I)V
6: aload 1
bipush 39
invokevirtual java.io.StreamTokenizer.quoteChar:(I)V
7: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 8: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 3
start local 3 9: goto 16
10: StackMap locals: java.io.StreamTokenizer java.util.List java.lang.StringBuilder
StackMap stack:
aload 1
getfield java.io.StreamTokenizer.sval:Ljava/lang/String;
astore 4
start local 4 11: aload 4
ldc "\\"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 14
12: aload 3
aload 4
iconst_0
aload 4
invokevirtual java.lang.String.length:()I
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
13: goto 16
14: StackMap locals: java.lang.String
StackMap stack:
aload 2
aload 3
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: aload 3
iconst_0
invokevirtual java.lang.StringBuilder.setLength:(I)V
end local 4 16: StackMap locals:
StackMap stack:
aload 1
invokestatic jdk.nashorn.tools.Shell.nextToken:(Ljava/io/StreamTokenizer;)I
iconst_m1
if_icmpne 10
17: aload 3
invokevirtual java.lang.StringBuilder.length:()I
ifeq 19
18: aload 2
aload 3
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
19: StackMap locals:
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 str Ljava/lang/String;
1 20 1 tokenizer Ljava/io/StreamTokenizer;
8 20 2 tokenList Ljava/util/List<Ljava/lang/String;>;
9 20 3 toAppend Ljava/lang/StringBuilder;
11 16 4 s Ljava/lang/String;
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/lang/String;>;
MethodParameters:
Name Flags
str final
private static int nextToken(java.io.StreamTokenizer);
descriptor: (Ljava/io/StreamTokenizer;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.io.StreamTokenizer.nextToken:()I
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 tokenizer Ljava/io/StreamTokenizer;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
tokenizer final
private static int compileScripts(jdk.nashorn.internal.runtime.Context, jdk.nashorn.internal.objects.Global, java.util.List<java.lang.String>);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=9, locals=11, args_size=3
start local 0 start local 1 start local 2 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 3
start local 3 1: aload 3
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 4
start local 4 4: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
astore 5
start local 5 5: iload 4
ifeq 7
6: aload 1
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
7: StackMap locals: int jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErrorManager:()Ljdk/nashorn/internal/runtime/ErrorManager;
astore 6
start local 6 8: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 32
StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.runtime.ErrorManager top java.util.Iterator
StackMap stack:
9: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 10: new jdk.nashorn.internal.parser.Parser
dup
aload 5
aload 7
new java.io.File
dup
aload 7
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/File;)Ljdk/nashorn/internal/runtime/Source;
aload 6
aload 5
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._strict:Z
iconst_0
aload 0
ldc Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.runtime.Context.getLogger:(Ljava/lang/Class;)Ljdk/nashorn/internal/runtime/logging/DebugLogger;
invokespecial jdk.nashorn.internal.parser.Parser.<init>:(Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/ErrorManager;ZILjdk/nashorn/internal/runtime/logging/DebugLogger;)V
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
astore 9
start local 9 11: aload 6
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.getNumberOfErrors:()I
ifeq 17
12: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
13: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
14: iload 4
ifeq 16
15: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
16: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.runtime.ErrorManager java.lang.String java.util.Iterator jdk.nashorn.internal.ir.FunctionNode
StackMap stack:
bipush 101
ireturn
17: StackMap locals:
StackMap stack:
aload 0
18: aload 9
invokevirtual jdk.nashorn.internal.ir.FunctionNode.getSource:()Ljdk/nashorn/internal/runtime/Source;
19: aload 5
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._strict:Z
aload 9
invokevirtual jdk.nashorn.internal.ir.FunctionNode.isStrict:()Z
ior
20: invokestatic jdk.nashorn.internal.codegen.Compiler.forNoInstallerCompilation:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/runtime/Source;Z)Ljdk/nashorn/internal/codegen/Compiler;
21: aload 9
getstatic jdk.nashorn.internal.codegen.Compiler$CompilationPhases.COMPILE_ALL_NO_INSTALL:Ljdk/nashorn/internal/codegen/Compiler$CompilationPhases;
invokevirtual jdk.nashorn.internal.codegen.Compiler.compile:(Ljdk/nashorn/internal/ir/FunctionNode;Ljdk/nashorn/internal/codegen/Compiler$CompilationPhases;)Ljdk/nashorn/internal/ir/FunctionNode;
pop
22: aload 5
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._print_ast:Z
ifeq 24
23: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
new jdk.nashorn.internal.ir.debug.ASTWriter
dup
aload 9
invokespecial jdk.nashorn.internal.ir.debug.ASTWriter.<init>:(Ljdk/nashorn/internal/ir/Node;)V
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
24: StackMap locals:
StackMap stack:
aload 5
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._print_parse:Z
ifeq 26
25: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
new jdk.nashorn.internal.ir.debug.PrintVisitor
dup
aload 9
invokespecial jdk.nashorn.internal.ir.debug.PrintVisitor.<init>:(Ljdk/nashorn/internal/ir/Node;)V
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
26: StackMap locals:
StackMap stack:
aload 6
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.getNumberOfErrors:()I
ifeq 32
27: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
28: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
29: iload 4
ifeq 31
30: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
31: StackMap locals:
StackMap stack:
bipush 101
ireturn
end local 9 end local 7 32: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment jdk.nashorn.internal.runtime.ErrorManager top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 6 33: goto 40
StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack: java.lang.Throwable
34: astore 10
35: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
36: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
37: iload 4
ifeq 39
38: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
39: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment top top top top java.lang.Throwable
StackMap stack:
aload 10
athrow
40: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
41: aload 5
invokevirtual jdk.nashorn.internal.runtime.ScriptEnvironment.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
42: iload 4
ifeq 44
43: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
44: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 45 0 context Ljdk/nashorn/internal/runtime/Context;
0 45 1 global Ljdk/nashorn/internal/objects/Global;
0 45 2 files Ljava/util/List<Ljava/lang/String;>;
1 45 3 oldGlobal Ljdk/nashorn/internal/objects/Global;
4 45 4 globalChanged Z
5 45 5 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
8 33 6 errors Ljdk/nashorn/internal/runtime/ErrorManager;
10 32 7 fileName Ljava/lang/String;
11 32 9 functionNode Ljdk/nashorn/internal/ir/FunctionNode;
Exception table:
from to target type
5 12 34 any
17 27 34 any
32 34 34 any
Exceptions:
throws java.io.IOException
Signature: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List<Ljava/lang/String;>;)I
MethodParameters:
Name Flags
context final
global final
files final
private int runScripts(jdk.nashorn.internal.runtime.Context, jdk.nashorn.internal.objects.Global, java.util.List<java.lang.String>);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 4
start local 4 1: aload 4
aload 2
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 5
start local 5 4: iload 5
ifeq 6
5: aload 2
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
6: StackMap locals: int
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErrorManager:()Ljdk/nashorn/internal/runtime/ErrorManager;
astore 6
start local 6 7: aload 3
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 39
StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ErrorManager top java.util.Iterator
StackMap stack:
8: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 7
start local 7 9: ldc "-"
aload 7
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 18
10: aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.tools.Shell.readEvalPrint:(Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;)I
istore 9
start local 9 11: iload 9
ifeq 39
12: iload 9
istore 13
13: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
14: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
15: iload 5
ifeq 17
16: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
17: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ErrorManager java.lang.String java.util.Iterator int top top top int
StackMap stack:
iload 13
ireturn
end local 9 18: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ErrorManager java.lang.String java.util.Iterator
StackMap stack:
new java.io.File
dup
aload 7
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 9
start local 9 19: aload 1
aload 7
aload 9
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/File;)Ljdk/nashorn/internal/runtime/Source;
aload 2
invokevirtual jdk.nashorn.internal.runtime.Context.compileScript:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/ScriptObject;)Ljdk/nashorn/internal/runtime/ScriptFunction;
astore 10
start local 10 20: aload 10
ifnull 21
aload 6
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.getNumberOfErrors:()I
ifeq 28
21: StackMap locals: java.io.File jdk.nashorn.internal.runtime.ScriptFunction
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._parse_only:Z
ifeq 23
aload 6
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.hasErrors:()Z
ifne 23
22: goto 39
23: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
24: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
25: iload 5
ifeq 27
26: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
27: StackMap locals:
StackMap stack:
bipush 101
ireturn
28: StackMap locals:
StackMap stack:
aload 0
aload 10
aload 2
invokevirtual jdk.nashorn.tools.Shell.apply:(Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;)Ljava/lang/Object;
pop
29: goto 39
StackMap locals:
StackMap stack: jdk.nashorn.api.scripting.NashornException
30: astore 11
start local 11 31: aload 6
aload 11
invokevirtual jdk.nashorn.api.scripting.NashornException.toString:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.error:(Ljava/lang/String;)V
32: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 34
33: aload 11
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual jdk.nashorn.api.scripting.NashornException.printStackTrace:(Ljava/io/PrintWriter;)V
34: StackMap locals: jdk.nashorn.api.scripting.NashornException
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
35: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
36: iload 5
ifeq 38
37: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
38: StackMap locals:
StackMap stack:
bipush 102
ireturn
end local 11 end local 10 end local 9 end local 7 39: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ErrorManager top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 6 40: goto 47
StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int
StackMap stack: java.lang.Throwable
41: astore 12
42: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
43: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
44: iload 5
ifeq 46
45: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
46: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int top top top top top top java.lang.Throwable
StackMap stack:
aload 12
athrow
47: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int
StackMap stack:
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
48: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
49: iload 5
ifeq 51
50: aload 4
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
51: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 52 0 this Ljdk/nashorn/tools/Shell;
0 52 1 context Ljdk/nashorn/internal/runtime/Context;
0 52 2 global Ljdk/nashorn/internal/objects/Global;
0 52 3 files Ljava/util/List<Ljava/lang/String;>;
1 52 4 oldGlobal Ljdk/nashorn/internal/objects/Global;
4 52 5 globalChanged Z
7 40 6 errors Ljdk/nashorn/internal/runtime/ErrorManager;
9 39 7 fileName Ljava/lang/String;
11 18 9 res I
19 39 9 file Ljava/io/File;
20 39 10 script Ljdk/nashorn/internal/runtime/ScriptFunction;
31 39 11 e Ljdk/nashorn/api/scripting/NashornException;
Exception table:
from to target type
28 29 30 Class jdk.nashorn.api.scripting.NashornException
4 13 41 any
18 23 41 any
28 34 41 any
39 41 41 any
Exceptions:
throws java.io.IOException
Signature: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List<Ljava/lang/String;>;)I
MethodParameters:
Name Flags
context final
global final
files final
private static int runFXScripts(jdk.nashorn.internal.runtime.Context, jdk.nashorn.internal.objects.Global, java.util.List<java.lang.String>);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List;)I
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 3
start local 3 1: aload 3
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 4
start local 4 4: iload 4
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 1
ldc "$GLOBAL"
iconst_2
aload 1
invokevirtual jdk.nashorn.internal.objects.Global.addOwnProperty:(Ljava/lang/Object;ILjava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
pop
7: aload 1
ldc "$SCRIPTS"
iconst_2
aload 2
invokevirtual jdk.nashorn.internal.objects.Global.addOwnProperty:(Ljava/lang/Object;ILjava/lang/Object;)Ljdk/nashorn/internal/runtime/Property;
pop
8: aload 0
aload 1
ldc "fx:bootstrap.js"
invokevirtual jdk.nashorn.internal.runtime.Context.load:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
9: goto 25
StackMap locals:
StackMap stack: jdk.nashorn.api.scripting.NashornException
10: astore 5
start local 5 11: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErrorManager:()Ljdk/nashorn/internal/runtime/ErrorManager;
aload 5
invokevirtual jdk.nashorn.api.scripting.NashornException.toString:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.error:(Ljava/lang/String;)V
12: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 14
13: aload 5
aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual jdk.nashorn.api.scripting.NashornException.printStackTrace:(Ljava/io/PrintWriter;)V
14: StackMap locals: jdk.nashorn.api.scripting.NashornException
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
15: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
16: iload 4
ifeq 18
17: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
18: StackMap locals:
StackMap stack:
bipush 102
ireturn
end local 5 19: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int
StackMap stack: java.lang.Throwable
astore 6
20: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
21: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
22: iload 4
ifeq 24
23: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
24: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int top java.lang.Throwable
StackMap stack:
aload 6
athrow
25: StackMap locals: jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.util.List jdk.nashorn.internal.objects.Global int
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getOut:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
26: aload 0
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
27: iload 4
ifeq 29
28: aload 3
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
29: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 context Ljdk/nashorn/internal/runtime/Context;
0 30 1 global Ljdk/nashorn/internal/objects/Global;
0 30 2 files Ljava/util/List<Ljava/lang/String;>;
1 30 3 oldGlobal Ljdk/nashorn/internal/objects/Global;
4 30 4 globalChanged Z
11 19 5 e Ljdk/nashorn/api/scripting/NashornException;
Exception table:
from to target type
4 9 10 Class jdk.nashorn.api.scripting.NashornException
4 14 19 any
Exceptions:
throws java.io.IOException
Signature: (Ljdk/nashorn/internal/runtime/Context;Ljdk/nashorn/internal/objects/Global;Ljava/util/List<Ljava/lang/String;>;)I
MethodParameters:
Name Flags
context final
global final
files final
protected java.lang.Object apply(jdk.nashorn.internal.runtime.ScriptFunction, java.lang.Object);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptFunction;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
aload 2
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;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/tools/Shell;
0 1 1 target Ljdk/nashorn/internal/runtime/ScriptFunction;
0 1 2 self Ljava/lang/Object;
MethodParameters:
Name Flags
target final
self final
public final int getLastExpressionStart(jdk.nashorn.internal.runtime.Context, java.lang.String);
descriptor: (Ljdk/nashorn/internal/runtime/Context;Ljava/lang/String;)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=7, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iconst_1
newarray 10
dup
iconst_0
iconst_m1
iastore
astore 3
start local 3 1: new jdk.nashorn.tools.Shell$1
dup
aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
ldc "<partial_code>"
aload 2
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
new jdk.nashorn.internal.runtime.Context$ThrowErrorManager
dup
invokespecial jdk.nashorn.internal.runtime.Context$ThrowErrorManager.<init>:()V
aload 3
invokespecial jdk.nashorn.tools.Shell$1.<init>:(Ljdk/nashorn/tools/Shell;Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/ErrorManager;[I)V
astore 4
start local 4 2: aload 4
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
pop
3: goto 5
StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context java.lang.String int[] jdk.nashorn.internal.parser.Parser
StackMap stack: java.lang.Exception
4: pop
5: StackMap locals:
StackMap stack:
aload 3
iconst_0
iaload
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/tools/Shell;
0 6 1 context Ljdk/nashorn/internal/runtime/Context;
0 6 2 code Ljava/lang/String;
1 6 3 exprStart [I
2 6 4 p Ljdk/nashorn/internal/parser/Parser;
Exception table:
from to target type
2 3 4 Class java.lang.Exception
MethodParameters:
Name Flags
context final
code 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=5, locals=12, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.nashorn.tools.Shell.bundle:Ljava/util/ResourceBundle;
ldc "shell.prompt"
invokevirtual java.util.ResourceBundle.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 1: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
getstatic java.lang.System.in:Ljava/io/InputStream;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 4
start local 4 2: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getErr:()Ljava/io/PrintWriter;
astore 5
start local 5 3: invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
astore 6
start local 6 4: aload 6
aload 2
if_acmpeq 5
iconst_1
goto 6
StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.lang.String java.io.BufferedReader java.io.PrintWriter jdk.nashorn.internal.objects.Global
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 7
start local 7 7: aload 1
invokevirtual jdk.nashorn.internal.runtime.Context.getEnv:()Ljdk/nashorn/internal/runtime/ScriptEnvironment;
astore 8
start local 8 8: iload 7
ifeq 10
9: aload 2
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
10: StackMap locals: int jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack:
aload 2
invokevirtual jdk.nashorn.internal.objects.Global.addShellBuiltins:()V
11: StackMap locals:
StackMap stack:
aload 5
aload 3
invokevirtual java.io.PrintWriter.print:(Ljava/lang/String;)V
12: aload 5
invokevirtual java.io.PrintWriter.flush:()V
13: ldc ""
astore 9
start local 9 14: aload 4
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 9
15: goto 18
StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.lang.String java.io.BufferedReader java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment java.lang.String
StackMap stack: java.io.IOException
16: astore 10
start local 10 17: aload 5
aload 10
invokevirtual java.io.IOException.toString:()Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 10 18: StackMap locals:
StackMap stack:
aload 9
ifnonnull 20
19: goto 35
20: StackMap locals:
StackMap stack:
aload 9
invokevirtual java.lang.String.isEmpty:()Z
ifeq 22
21: goto 11
22: StackMap locals:
StackMap stack:
aload 1
aload 2
aload 9
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 10
start local 10 23: aload 10
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 11
24: aload 5
aload 10
aload 2
invokestatic jdk.nashorn.tools.Shell.toString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
end local 10 25: goto 11
StackMap locals:
StackMap stack: java.lang.Exception
26: astore 10
start local 10 27: aload 5
aload 10
invokevirtual java.io.PrintWriter.println:(Ljava/lang/Object;)V
28: aload 8
getfield jdk.nashorn.internal.runtime.ScriptEnvironment._dump_on_error:Z
ifeq 11
29: aload 10
aload 5
invokevirtual java.lang.Exception.printStackTrace:(Ljava/io/PrintWriter;)V
end local 10 end local 9 30: goto 11
31: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.lang.String java.io.BufferedReader java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack: java.lang.Throwable
astore 11
32: iload 7
ifeq 34
33: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
34: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.lang.String java.io.BufferedReader java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment top top java.lang.Throwable
StackMap stack:
aload 11
athrow
35: StackMap locals: jdk.nashorn.tools.Shell jdk.nashorn.internal.runtime.Context jdk.nashorn.internal.objects.Global java.lang.String java.io.BufferedReader java.io.PrintWriter jdk.nashorn.internal.objects.Global int jdk.nashorn.internal.runtime.ScriptEnvironment
StackMap stack:
iload 7
ifeq 37
36: aload 6
invokestatic jdk.nashorn.internal.runtime.Context.setGlobal:(Ljdk/nashorn/internal/objects/Global;)V
37: StackMap locals:
StackMap stack:
iconst_0
ireturn
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 38 0 this Ljdk/nashorn/tools/Shell;
0 38 1 context Ljdk/nashorn/internal/runtime/Context;
0 38 2 global Ljdk/nashorn/internal/objects/Global;
1 38 3 prompt Ljava/lang/String;
2 38 4 in Ljava/io/BufferedReader;
3 38 5 err Ljava/io/PrintWriter;
4 38 6 oldGlobal Ljdk/nashorn/internal/objects/Global;
7 38 7 globalChanged Z
8 38 8 env Ljdk/nashorn/internal/runtime/ScriptEnvironment;
14 30 9 source Ljava/lang/String;
17 18 10 ioe Ljava/io/IOException;
23 25 10 res Ljava/lang/Object;
27 30 10 e Ljava/lang/Exception;
Exception table:
from to target type
14 15 16 Class java.io.IOException
22 25 26 Class java.lang.Exception
8 31 31 any
MethodParameters:
Name Flags
context final
global final
protected static java.lang.String toString(java.lang.Object, jdk.nashorn.internal.objects.Global);
descriptor: (Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
instanceof jdk.nashorn.internal.runtime.Symbol
ifeq 2
1: aload 0
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.internal.objects.NativeSymbol
ifeq 4
3: aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toPrimitive:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic jdk.nashorn.tools.Shell.isArrayWithDefaultToString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Z
ifeq 15
5: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 2
start local 2 6: aload 0
iconst_1
invokestatic jdk.nashorn.internal.runtime.arrays.ArrayLikeIterator.arrayLikeIterator:(Ljava/lang/Object;Z)Ljdk/nashorn/internal/runtime/arrays/ArrayLikeIterator;
astore 3
start local 3 7: goto 13
8: StackMap locals: java.lang.StringBuilder java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 4
start local 4 9: aload 4
ifnull 11
aload 4
getstatic jdk.nashorn.internal.runtime.ScriptRuntime.UNDEFINED:Ljdk/nashorn/internal/runtime/Undefined;
if_acmpeq 11
10: aload 2
aload 4
aload 1
invokestatic jdk.nashorn.tools.Shell.toString:(Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: StackMap locals: java.lang.Object
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 13
12: aload 2
bipush 44
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
end local 4 13: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
14: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 15: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 result Ljava/lang/Object;
0 16 1 global Ljdk/nashorn/internal/objects/Global;
6 15 2 sb Ljava/lang/StringBuilder;
7 15 3 iter Ljava/util/Iterator<Ljava/lang/Object;>;
9 13 4 obj Ljava/lang/Object;
MethodParameters:
Name Flags
result final
global final
private static boolean isArrayWithDefaultToString(java.lang.Object, jdk.nashorn.internal.objects.Global);
descriptor: (Ljava/lang/Object;Ljdk/nashorn/internal/objects/Global;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 4
1: aload 0
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 2
start local 2 2: aload 2
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.isArray:()Z
ifeq 3
aload 2
ldc "toString"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
aload 1
invokevirtual jdk.nashorn.internal.objects.Global.getArrayPrototype:()Ljdk/nashorn/internal/runtime/ScriptObject;
ldc "toString"
invokevirtual jdk.nashorn.internal.runtime.ScriptObject.get:(Ljava/lang/Object;)Ljava/lang/Object;
if_acmpne 3
iconst_1
ireturn
StackMap locals: jdk.nashorn.internal.runtime.ScriptObject
StackMap stack:
3: iconst_0
ireturn
end local 2 4: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 result Ljava/lang/Object;
0 5 1 global Ljdk/nashorn/internal/objects/Global;
2 4 2 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
MethodParameters:
Name Flags
result final
global final
private static java.lang.String[] lambda$0(int);
descriptor: (I)[Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: iload 0
anewarray java.lang.String
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "Shell.java"
NestMembers:
jdk.nashorn.tools.Shell$1
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public CompilationPhases = jdk.nashorn.internal.codegen.Compiler$CompilationPhases of jdk.nashorn.internal.codegen.Compiler
public ThrowErrorManager = jdk.nashorn.internal.runtime.Context$ThrowErrorManager of jdk.nashorn.internal.runtime.Context
jdk.nashorn.tools.Shell$1