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 |
---|---|
ScriptObjectMirror |
ScriptObjectMirror.freeze()
ECMA 15.2.39 - freeze implementation.
|
ScriptObjectMirror |
ScriptObjectMirror.preventExtensions()
Flag this script object as non extensible
|
ScriptObjectMirror |
ScriptObjectMirror.seal()
ECMAScript 15.2.3.8 - seal implementation
|
static ScriptObjectMirror |
ScriptUtils.wrap(jdk.nashorn.internal.runtime.ScriptObject obj)
Make a script object mirror on given object if needed.
|
Modifier and Type | Method and Description |
---|---|
CompilationUnitTree |
Parser.parse(ScriptObjectMirror scriptObj,
DiagnosticListener listener)
Parses the source from script object and returns compilation unit tree
|
Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.
DRAFT internal-b94