final class jdk.nashorn.api.tree.ParserImpl implements jdk.nashorn.api.tree.Parser
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.api.tree.ParserImpl
super_class: java.lang.Object
{
private final jdk.nashorn.internal.runtime.ScriptEnvironment env;
descriptor: Ljdk/nashorn/internal/runtime/ScriptEnvironment;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean moduleMode;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=8, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
2: iconst_0
istore 2
start local 2 3: iconst_0
istore 3
start local 3 4: goto 11
5: StackMap locals: jdk.nashorn.api.tree.ParserImpl java.lang.String[] int int
StackMap stack:
aload 1
iload 3
aaload
astore 4
start local 4 6: aload 4
ldc "--es6-module"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
7: iconst_1
istore 2
8: aload 1
iload 3
ldc "--language=es6"
aastore
9: goto 12
end local 4 10: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
11: iload 3
aload 1
arraylength
if_icmplt 5
end local 3 12: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
13: aload 1
aload 1
arraylength
iconst_1
iadd
ldc [Ljava/lang/String;
invokestatic java.util.Arrays.copyOf:([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;
checkcast java.lang.String[]
astore 3
start local 3 14: aload 3
aload 1
arraylength
ldc "--parse-only"
aastore
15: new jdk.nashorn.internal.runtime.options.Options
dup
ldc "nashorn"
invokespecial jdk.nashorn.internal.runtime.options.Options.<init>:(Ljava/lang/String;)V
astore 4
start local 4 16: aload 4
aload 3
invokevirtual jdk.nashorn.internal.runtime.options.Options.process:([Ljava/lang/String;)V
17: aload 0
new jdk.nashorn.internal.runtime.ScriptEnvironment
dup
aload 4
18: new java.io.PrintWriter
dup
getstatic java.lang.System.out:Ljava/io/PrintStream;
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
new java.io.PrintWriter
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;)V
invokespecial jdk.nashorn.internal.runtime.ScriptEnvironment.<init>:(Ljdk/nashorn/internal/runtime/options/Options;Ljava/io/PrintWriter;Ljava/io/PrintWriter;)V
19: putfield jdk.nashorn.api.tree.ParserImpl.env:Ljdk/nashorn/internal/runtime/ScriptEnvironment;
20: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 21 1 args [Ljava/lang/String;
3 21 2 seenModuleOption Z
4 12 3 idx I
6 10 4 opt Ljava/lang/String;
14 21 3 newArgs [Ljava/lang/String;
16 21 4 options Ljdk/nashorn/internal/runtime/options/Options;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
args final
public jdk.nashorn.api.tree.CompilationUnitTree parse(java.io.File, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/io/File;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.parseModule:(Ljava/io/File;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.io.File
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 1
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/File;)Ljdk/nashorn/internal/runtime/Source;
astore 3
start local 3 3: aload 0
aload 3
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
invokestatic jdk.nashorn.api.tree.ParserImpl.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 4 1 file Ljava/io/File;
0 4 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 4 3 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
file final
listener final
public jdk.nashorn.api.tree.CompilationUnitTree parse(java.nio.file.Path, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/nio/file/Path;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.parseModule:(Ljava/nio/file/Path;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.Path
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 1
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/nio/file/Path;)Ljdk/nashorn/internal/runtime/Source;
astore 3
start local 3 3: aload 0
aload 3
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
invokestatic jdk.nashorn.api.tree.ParserImpl.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 4 1 path Ljava/nio/file/Path;
0 4 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 4 3 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
path final
listener final
public jdk.nashorn.api.tree.CompilationUnitTree parse(java.net.URL, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/net/URL;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.parseModule:(Ljava/net/URL;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
aload 1
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/net/URL;)Ljdk/nashorn/internal/runtime/Source;
astore 3
start local 3 3: aload 0
aload 3
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
invokestatic jdk.nashorn.api.tree.ParserImpl.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 4 1 url Ljava/net/URL;
0 4 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 4 3 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
url final
listener final
public jdk.nashorn.api.tree.CompilationUnitTree parse(java.lang.String, java.io.Reader, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/lang/String;Ljava/io/Reader;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
ifeq 2
1: aload 0
aload 1
aload 2
aload 3
invokevirtual jdk.nashorn.api.tree.ParserImpl.parseModule:(Ljava/lang/String;Ljava/io/Reader;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.io.Reader
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/Reader;)Ljdk/nashorn/internal/runtime/Source;
astore 4
start local 4 3: aload 0
aload 4
aload 3
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
invokestatic jdk.nashorn.api.tree.ParserImpl.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 4 1 name Ljava/lang/String;
0 4 2 reader Ljava/io/Reader;
0 4 3 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 4 4 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
name final
reader final
listener final
public jdk.nashorn.api.tree.CompilationUnitTree parse(java.lang.String, java.lang.String, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
ifeq 2
1: aload 0
aload 1
aload 2
aload 3
invokevirtual jdk.nashorn.api.tree.ParserImpl.parseModule:(Ljava/lang/String;Ljava/lang/String;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
2: StackMap locals:
StackMap stack:
aload 1
aload 2
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
astore 4
start local 4 3: aload 0
aload 4
aload 3
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
invokestatic jdk.nashorn.api.tree.ParserImpl.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 4 1 name Ljava/lang/String;
0 4 2 code Ljava/lang/String;
0 4 3 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 4 4 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
name final
code final
listener final
public jdk.nashorn.api.tree.CompilationUnitTree parse(jdk.nashorn.api.scripting.ScriptObjectMirror, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljdk/nashorn/api/scripting/ScriptObjectMirror;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.nashorn.api.tree.ParserImpl.moduleMode:Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.parseModule:(Ljdk/nashorn/api/scripting/ScriptObjectMirror;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
2: StackMap locals:
StackMap stack:
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 3
start local 3 3: aload 3
ldc "script"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 8
aload 3
ldc "name"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 8
4: aload 3
ldc "script"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 5: aload 3
ldc "name"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 6: aload 5
aload 4
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
astore 6
start local 6 7: aload 0
aload 6
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
invokevirtual jdk.nashorn.internal.parser.Parser.parse:()Ljdk/nashorn/internal/ir/FunctionNode;
invokestatic jdk.nashorn.api.tree.ParserImpl.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 6 end local 5 end local 4 8: StackMap locals: java.util.Map
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "can't find 'script' and 'name' properties"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 9 1 scriptObj Ljdk/nashorn/api/scripting/ScriptObjectMirror;
0 9 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 9 3 map Ljava/util/Map<**>;
5 8 4 script Ljava/lang/String;
6 8 5 name Ljava/lang/String;
7 8 6 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
scriptObj final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree parseModule(java.io.File, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/io/File;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.io.File
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 1
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/File;)Ljdk/nashorn/internal/runtime/Source;
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeModule:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 2 1 file Ljava/io/File;
0 2 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 2 3 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
file final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree parseModule(java.nio.file.Path, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/nio/file/Path;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.file.Path
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 1
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/nio/file/Path;)Ljdk/nashorn/internal/runtime/Source;
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeModule:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 2 1 path Ljava/nio/file/Path;
0 2 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 2 3 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
path final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree parseModule(java.net.URL, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/net/URL;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
aload 1
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/net/URL;)Ljdk/nashorn/internal/runtime/Source;
astore 3
start local 3 1: aload 0
aload 3
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeModule:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 2 1 url Ljava/net/URL;
0 2 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 2 3 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
url final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree parseModule(java.lang.String, java.io.Reader, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/lang/String;Ljava/io/Reader;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.io.Reader
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/io/Reader;)Ljdk/nashorn/internal/runtime/Source;
astore 4
start local 4 1: aload 0
aload 4
aload 3
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeModule:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 2 1 name Ljava/lang/String;
0 2 2 reader Ljava/io/Reader;
0 2 3 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 2 4 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
name final
reader final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree parseModule(java.lang.String, java.lang.String, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljava/lang/String;Ljava/lang/String;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
aload 2
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
astore 4
start local 4 1: aload 0
aload 4
aload 3
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeModule:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 2 1 name Ljava/lang/String;
0 2 2 code Ljava/lang/String;
0 2 3 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 2 4 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
name final
code final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree parseModule(jdk.nashorn.api.scripting.ScriptObjectMirror, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljdk/nashorn/api/scripting/ScriptObjectMirror;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.Map
astore 3
start local 3 1: aload 3
ldc "script"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 6
aload 3
ldc "name"
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 6
2: aload 3
ldc "script"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
astore 4
start local 4 3: aload 3
ldc "name"
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
invokestatic jdk.nashorn.internal.runtime.JSType.toString:(Ljava/lang/Object;)Ljava/lang/String;
astore 5
start local 5 4: aload 5
aload 4
invokestatic jdk.nashorn.internal.runtime.Source.sourceFor:(Ljava/lang/String;Ljava/lang/String;)Ljdk/nashorn/internal/runtime/Source;
astore 6
start local 6 5: aload 0
aload 6
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeModule:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 6 end local 5 end local 4 6: StackMap locals: java.util.Map
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "can't find 'script' and 'name' properties"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 7 1 scriptObj Ljdk/nashorn/api/scripting/ScriptObjectMirror;
0 7 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 7 3 map Ljava/util/Map<**>;
3 6 4 script Ljava/lang/String;
4 6 5 name Ljava/lang/String;
5 6 6 src Ljdk/nashorn/internal/runtime/Source;
Exceptions:
throws jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
scriptObj final
listener final
private jdk.nashorn.api.tree.CompilationUnitTree makeModule(jdk.nashorn.internal.runtime.Source, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual jdk.nashorn.api.tree.ParserImpl.makeParser:(Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
aload 1
invokevirtual jdk.nashorn.internal.runtime.Source.getName:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.parser.Parser.parseModule:(Ljava/lang/String;)Ljdk/nashorn/internal/ir/FunctionNode;
astore 3
start local 3 1: new jdk.nashorn.api.tree.IRTranslator
dup
invokespecial jdk.nashorn.api.tree.IRTranslator.<init>:()V
aload 3
invokevirtual jdk.nashorn.api.tree.IRTranslator.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 2 1 src Ljdk/nashorn/internal/runtime/Source;
0 2 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
1 2 3 modFunc Ljdk/nashorn/internal/ir/FunctionNode;
MethodParameters:
Name Flags
src final
listener final
private jdk.nashorn.internal.parser.Parser makeParser(jdk.nashorn.internal.runtime.Source, jdk.nashorn.api.tree.DiagnosticListener);
descriptor: (Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/api/tree/DiagnosticListener;)Ljdk/nashorn/internal/parser/Parser;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
ifnull 1
new jdk.nashorn.api.tree.ParserImpl$ListenerErrorManager
dup
aload 2
invokespecial jdk.nashorn.api.tree.ParserImpl$ListenerErrorManager.<init>:(Ljdk/nashorn/api/tree/DiagnosticListener;)V
goto 2
StackMap locals:
StackMap stack:
1: new jdk.nashorn.internal.runtime.Context$ThrowErrorManager
dup
invokespecial jdk.nashorn.internal.runtime.Context$ThrowErrorManager.<init>:()V
StackMap locals:
StackMap stack: jdk.nashorn.internal.runtime.ErrorManager
2: astore 3
start local 3 3: new jdk.nashorn.internal.parser.Parser
dup
aload 0
getfield jdk.nashorn.api.tree.ParserImpl.env:Ljdk/nashorn/internal/runtime/ScriptEnvironment;
aload 1
aload 3
invokespecial jdk.nashorn.internal.parser.Parser.<init>:(Ljdk/nashorn/internal/runtime/ScriptEnvironment;Ljdk/nashorn/internal/runtime/Source;Ljdk/nashorn/internal/runtime/ErrorManager;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/nashorn/api/tree/ParserImpl;
0 4 1 source Ljdk/nashorn/internal/runtime/Source;
0 4 2 listener Ljdk/nashorn/api/tree/DiagnosticListener;
3 4 3 errMgr Ljdk/nashorn/internal/runtime/ErrorManager;
MethodParameters:
Name Flags
source final
listener final
private static jdk.nashorn.api.tree.CompilationUnitTree translate(jdk.nashorn.internal.ir.FunctionNode);
descriptor: (Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new jdk.nashorn.api.tree.IRTranslator
dup
invokespecial jdk.nashorn.api.tree.IRTranslator.<init>:()V
aload 0
invokevirtual jdk.nashorn.api.tree.IRTranslator.translate:(Ljdk/nashorn/internal/ir/FunctionNode;)Ljdk/nashorn/api/tree/CompilationUnitTree;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 node Ljdk/nashorn/internal/ir/FunctionNode;
MethodParameters:
Name Flags
node final
}
SourceFile: "ParserImpl.java"
NestMembers:
jdk.nashorn.api.tree.ParserImpl$ListenerErrorManager
InnerClasses:
private ListenerErrorManager = jdk.nashorn.api.tree.ParserImpl$ListenerErrorManager of jdk.nashorn.api.tree.ParserImpl
public ThrowErrorManager = jdk.nashorn.internal.runtime.Context$ThrowErrorManager of jdk.nashorn.internal.runtime.Context