public interface jdk.nashorn.api.tree.Parser
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: jdk.nashorn.api.tree.Parser
super_class: java.lang.Object
{
public abstract 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: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
file final
listener final
public abstract 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: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
path final
listener final
public abstract 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: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
url final
listener final
public abstract 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: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.io.IOException, jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
name final
reader
listener final
public abstract 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: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
name final
code
listener final
public abstract 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: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws jdk.nashorn.api.scripting.NashornException
MethodParameters:
Name Flags
scriptObj final
listener final
public static jdk.nashorn.api.tree.Parser create(java.lang.String[]);
descriptor: ([Ljava/lang/String;)Ljdk/nashorn/api/tree/Parser;
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
1: aload 0
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 16
StackMap locals: java.lang.String[] top int int java.lang.String[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
dup
astore 5
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 10
-1556525308: 4
-1463769902: 5
-962649514: 6
-788300474: 7
-3214934: 8
1440237: 9
1449971: 10
390973750: 11
608895203: 12
2020115505: 13
default: 14
}
StackMap locals: java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String
StackMap stack:
4: aload 5
ldc "--empty-statements"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
5: aload 5
ldc "--no-syntax-extensions"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
6: aload 5
ldc "--const-as-var"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
7: aload 5
ldc "-dump-on-error"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
8: aload 5
ldc "-scripting"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
9: aload 5
ldc "-doe"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
10: aload 5
ldc "-nse"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
11: aload 5
ldc "-strict"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
12: aload 5
ldc "--language=es6"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
goto 14
StackMap locals:
StackMap stack:
13: aload 5
ldc "--es6-module"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 15
14: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
aload 1
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 1 15: StackMap locals: java.lang.String[] top int int java.lang.String[]
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
16: iload 2
iload 3
if_icmplt 2
17: new jdk.nashorn.api.tree.ParserImpl
dup
aload 0
invokespecial jdk.nashorn.api.tree.ParserImpl.<init>:([Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 options [Ljava/lang/String;
3 15 1 opt Ljava/lang/String;
Exceptions:
throws java.lang.IllegalArgumentException
MethodParameters:
Name Flags
options final
}
SourceFile: "Parser.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated(since = "11", forRemoval = true)