Package | Description |
---|---|
jdk.nashorn.api.scripting |
This package provides the
javax.script integration, which is the preferred way to use Nashorn. |
jdk.nashorn.api.tree |
Nashorn parser API provides interfaces to represent ECMAScript source code
as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.
|
Modifier and Type | Method and Description |
---|---|
protected NashornException |
NashornException.initEcmaError(jdk.nashorn.internal.runtime.ScriptObject global)
Initialization function for ECMA errors.
|
Modifier and Type | Method and Description |
---|---|
CompilationUnitTree |
Parser.parse(File file,
DiagnosticListener listener)
Parses the source file and returns compilation unit tree
|
CompilationUnitTree |
Parser.parse(String name,
Reader reader,
DiagnosticListener listener)
Parses the reader and returns compilation unit tree
|
CompilationUnitTree |
Parser.parse(String name,
String code,
DiagnosticListener listener)
Parses the string source and returns compilation unit tree
|
CompilationUnitTree |
Parser.parse(URL url,
DiagnosticListener listener)
Parses the source url and returns compilation unit tree
|
CompilationUnitTree |
Parser.parse(Path path,
DiagnosticListener listener)
Parses the source Path and returns compilation unit tree
|
CompilationUnitTree |
Parser.parse(ScriptObjectMirror scriptObj,
DiagnosticListener listener)
Parses the source from script object and returns compilation unit tree
|
Copyright © 2014, 2016, Oracle and/or its affiliates. All rights reserved.
DRAFT 9-Ubuntu+0-9b134-2ubuntu1