Skip navigation links
Nashorn API
A C D E F G H I J K M N P R S T U V W 

A

AbstractJSObject - Class in jdk.nashorn.api.scripting
This is the base class for nashorn ScriptObjectMirror class.
AbstractJSObject() - Constructor for class jdk.nashorn.api.scripting.AbstractJSObject
 

C

call(Object, Object...) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Call this object as a JavaScript function.
call(Object, Object...) - Method in interface jdk.nashorn.api.scripting.JSObject
Call this object as a JavaScript function.
call(Object, Object...) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
callMember(String, Object...) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Call member function
ClassFilter - Interface in jdk.nashorn.api.scripting
Class filter (optional) to be used by nashorn script engine.
clear() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
close() - Method in class jdk.nashorn.api.scripting.URLReader
 
compile(Reader) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
compile(String) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
containsKey(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
containsValue(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
convert(Object, Object) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Convert the given object to the given type.
createBindings() - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 

D

delete(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Delete a property from this object.

E

entrySet() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
equals(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
eval(String) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Evaluate a JavaScript expression.
eval(String) - Method in interface jdk.nashorn.api.scripting.JSObject
Evaluate a JavaScript expression.
eval(Reader, ScriptContext) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
eval(String, ScriptContext) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
eval(String) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
exposeToScripts(String) - Method in interface jdk.nashorn.api.scripting.ClassFilter
Should the Java class of the specified name be exposed to scripts?

F

format(String, Object[]) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Method which converts javascript types to java types for the String.format method (jrunscript function sprintf).
freeze() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
ECMA 15.2.39 - freeze implementation.

G

get(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
getCharset() - Method in class jdk.nashorn.api.scripting.URLReader
Charset used by this reader
getClassName() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
ECMA [[Class]] property
getClassName() - Method in interface jdk.nashorn.api.scripting.JSObject
ECMA [[Class]] property
getClassName() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
getColumnNumber() - Method in exception jdk.nashorn.api.scripting.NashornException
Get the column for this NashornException
getEcmaError() - Method in exception jdk.nashorn.api.scripting.NashornException
Return the underlying ECMA error object, if available.
getEngineName() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getEngineVersion() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getExtensions() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getFactory() - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
getFileName() - Method in exception jdk.nashorn.api.scripting.NashornException
Get the source file name for this NashornException
getInterface(Class<T>) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
getInterface(Object, Class<T>) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
getLanguageName() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getLanguageVersion() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getLineNumber() - Method in exception jdk.nashorn.api.scripting.NashornException
Get the line number for this NashornException
getMember(String) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Retrieves a named member of this JavaScript object.
getMember(String) - Method in interface jdk.nashorn.api.scripting.JSObject
Retrieves a named member of this JavaScript object.
getMember(String) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
getMethodCallSyntax(String, String, String...) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getMimeTypes() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getNames() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getOutputStatement(String) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getOwnKeys(boolean) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
return an array of own property keys associated with the object.
getOwnPropertyDescriptor(String) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
ECMA 8.12.1 [[GetOwnProperty]] (P)
getParameter(String) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getProgram(String...) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getProto() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Return the __proto__ of this object.
getScriptEngine() - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
getScriptEngine(ClassLoader) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
Create a new Script engine initialized by given class loader.
getScriptEngine(ClassFilter) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
Create a new Script engine initialized by given class filter.
getScriptEngine(String...) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
Create a new Script engine initialized by given arguments.
getScriptEngine(String[], ClassLoader) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
Create a new Script engine initialized by given arguments.
getScriptEngine(String[], ClassLoader, ClassFilter) - Method in class jdk.nashorn.api.scripting.NashornScriptEngineFactory
Create a new Script engine initialized by given arguments.
getScriptFrames(Throwable) - Static method in exception jdk.nashorn.api.scripting.NashornException
Returns array javascript stack frames from the given exception object.
getScriptStackString(Throwable) - Static method in exception jdk.nashorn.api.scripting.NashornException
Return a formatted script stack trace string with frames information separated by '\n'
getSlot(int) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Retrieves an indexed member of this JavaScript object.
getSlot(int) - Method in interface jdk.nashorn.api.scripting.JSObject
Retrieves an indexed member of this JavaScript object.
getSlot(int) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
getThrown() - Method in exception jdk.nashorn.api.scripting.NashornException
Get the thrown object.
getURL() - Method in class jdk.nashorn.api.scripting.URLReader
URL of this reader

H

hashCode() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
hasMember(String) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Does this object have a named member?
hasMember(String) - Method in interface jdk.nashorn.api.scripting.JSObject
Does this object have a named member?
hasMember(String) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
hasSlot(int) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Does this object have a indexed property?
hasSlot(int) - Method in interface jdk.nashorn.api.scripting.JSObject
Does this object have a indexed property?
hasSlot(int) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

I

identical(Object, Object) - Static method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Are the given objects mirrors to same underlying object?
initEcmaError(ScriptObject) - Method in exception jdk.nashorn.api.scripting.NashornException
Initialization function for ECMA errors.
invokeFunction(String, Object...) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
invokeMethod(Object, String, Object...) - Method in class jdk.nashorn.api.scripting.NashornScriptEngine
 
isArray() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Is this an array object?
isArray() - Method in interface jdk.nashorn.api.scripting.JSObject
Is this an array object?
isArray() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
isEmpty() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
isExtensible() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Check if this script object is extensible
isFrozen() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Check whether this script object is frozen
isFunction() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Is this a function object?
isFunction() - Method in interface jdk.nashorn.api.scripting.JSObject
Is this a function object?
isFunction() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
isInstance(Object) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Checking whether the given object is an instance of 'this' object.
isInstance(Object) - Method in interface jdk.nashorn.api.scripting.JSObject
Checking whether the given object is an instance of 'this' object.
isInstance(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
isInstanceOf(Object) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Checking whether this object is an instance of the given 'clazz' object.
isInstanceOf(Object) - Method in interface jdk.nashorn.api.scripting.JSObject
Checking whether this object is an instance of the given 'clazz' object.
isSealed() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Check whether this script object is sealed
isStrictFunction() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Is this a 'use strict' function object?
isStrictFunction() - Method in interface jdk.nashorn.api.scripting.JSObject
Is this a 'use strict' function object?
isStrictFunction() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
isUndefined(Object) - Static method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Utility to check if given object is ECMAScript undefined value

J

jdk.nashorn.api.scripting - package jdk.nashorn.api.scripting
This package provides the javax.script integration, which is the preferred way to use Nashorn.
JSObject - Interface in jdk.nashorn.api.scripting
This interface can be implemented by an arbitrary Java class.

K

keySet() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Returns the set of all property names of this object.
keySet() - Method in interface jdk.nashorn.api.scripting.JSObject
Returns the set of all property names of this object.
keySet() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

M

makeSynchronizedFunction(ScriptFunction, Object) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Create a wrapper function that calls func synchronized on sync or, if that is undefined, self.

N

NASHORN_GLOBAL - Static variable in class jdk.nashorn.api.scripting.NashornScriptEngine
Key used to associate Nashorn global object mirror with arbitrary Bindings instance.
NashornException - Exception in jdk.nashorn.api.scripting
This is base exception for all Nashorn exceptions.
NashornException(String, String, int, int) - Constructor for exception jdk.nashorn.api.scripting.NashornException
Constructor
NashornException(String, Throwable, String, int, int) - Constructor for exception jdk.nashorn.api.scripting.NashornException
Constructor
NashornException(String, Throwable) - Constructor for exception jdk.nashorn.api.scripting.NashornException
Constructor
NashornScriptEngine - Class in jdk.nashorn.api.scripting
JSR-223 compliant script engine for Nashorn.
NashornScriptEngineFactory - Class in jdk.nashorn.api.scripting
JSR-223 compliant script engine factory for Nashorn.
NashornScriptEngineFactory() - Constructor for class jdk.nashorn.api.scripting.NashornScriptEngineFactory
 
newObject(Object...) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Call this 'constructor' JavaScript function to create a new object.
newObject(Object...) - Method in interface jdk.nashorn.api.scripting.JSObject
Call this 'constructor' JavaScript function to create a new object.
newObject(Object...) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

P

parse(String, String, boolean) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Returns AST as JSON compatible string.
preventExtensions() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Flag this script object as non extensible
put(String, Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
putAll(Map<? extends String, ? extends Object>) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

R

read(char[], int, int) - Method in class jdk.nashorn.api.scripting.URLReader
 
remove(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
removeMember(String) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Remove a named member from this JavaScript object
removeMember(String) - Method in interface jdk.nashorn.api.scripting.JSObject
Remove a named member from this JavaScript object
removeMember(String) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

S

ScriptObjectMirror - Class in jdk.nashorn.api.scripting
Mirror object that wraps a given Nashorn Script object.
ScriptUtils - Class in jdk.nashorn.api.scripting
Utilities that are to be called from script code.
seal() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
ECMAScript 15.2.3.8 - seal implementation
setColumnNumber(int) - Method in exception jdk.nashorn.api.scripting.NashornException
Set the column for this NashornException
setEcmaError(Object) - Method in exception jdk.nashorn.api.scripting.NashornException
Return the underlying ECMA error object, if available.
setFileName(String) - Method in exception jdk.nashorn.api.scripting.NashornException
Set the source file name for this NashornException
setIndexedPropertiesToExternalArrayData(ByteBuffer) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Nashorn extension: setIndexedPropertiesToExternalArrayData.
setLineNumber(int) - Method in exception jdk.nashorn.api.scripting.NashornException
Set the line number for this NashornException
setMember(String, Object) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Set a named member in this JavaScript object
setMember(String, Object) - Method in interface jdk.nashorn.api.scripting.JSObject
Set a named member in this JavaScript object
setMember(String, Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
setProto(Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Set the __proto__ of this object.
setSlot(int, Object) - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Set an indexed member in this JavaScript object
setSlot(int, Object) - Method in interface jdk.nashorn.api.scripting.JSObject
Set an indexed member in this JavaScript object
setSlot(int, Object) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
size() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

T

to(Class<T>) - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Utilitity to convert this script object to the given type.
toNumber() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Returns this object's numeric value.
toNumber() - Method in interface jdk.nashorn.api.scripting.JSObject
Returns this object's numeric value.
toNumber() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 
toString() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

U

unwrap(Object, Object) - Static method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Unwrap a script object mirror if needed.
unwrap(Object) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Unwrap a script object mirror if needed.
unwrapArray(Object[], Object) - Static method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Unwrap an array of script object mirrors if needed.
unwrapArray(Object[]) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Unwrap an array of script object mirrors if needed.
URLReader - Class in jdk.nashorn.api.scripting
A Reader that reads from a URL.
URLReader(URL) - Constructor for class jdk.nashorn.api.scripting.URLReader
Constructor
URLReader(URL, String) - Constructor for class jdk.nashorn.api.scripting.URLReader
Constructor
URLReader(URL, Charset) - Constructor for class jdk.nashorn.api.scripting.URLReader
Constructor

V

values() - Method in class jdk.nashorn.api.scripting.AbstractJSObject
Returns the set of all property values of this object.
values() - Method in interface jdk.nashorn.api.scripting.JSObject
Returns the set of all property values of this object.
values() - Method in class jdk.nashorn.api.scripting.ScriptObjectMirror
 

W

wrap(Object, Object) - Static method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Make a script object mirror on given object if needed.
wrap(ScriptObject) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Make a script object mirror on given object if needed.
wrapArray(Object[], Object) - Static method in class jdk.nashorn.api.scripting.ScriptObjectMirror
Wrap an array of object to script object mirrors if needed.
wrapArray(Object[]) - Static method in class jdk.nashorn.api.scripting.ScriptUtils
Wrap an array of object to script object mirrors if needed.
A C D E F G H I J K M N P R S T U V W 
Skip navigation links
Nashorn API


Copyright © 2014, 2015, Oracle and/or its affiliates. All rights reserved.