Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.jsobject.jmod - JS Object Module
JDK 11 jdk.jsobject.jmod is the JMOD file for JDK 11 JS Object module.
JDK 11 JS Object module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.JS Object.jmod.
JDK 11 JS Object module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JS Object module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jsobject.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ netscape/javascript/JSObject.java
/* * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package netscape.javascript; import jdk.internal.netscape.javascript.spi.JSObjectProvider; import java.applet.Applet; import java.security.AccessController; import java.security.PrivilegedAction; import java.util.Iterator; import java.util.ServiceLoader; /** * <p> * Allows Java code to manipulate JavaScript objects. * </p> * * <p> * When a JavaScript object is passed or returned to Java code, it * is wrapped in an instance of {@code JSObject}. When a * {@code JSObject} instance is passed to the JavaScript engine, * it is unwrapped back to its original JavaScript object. The * {@code JSObject} class provides a way to invoke JavaScript * methods and examine JavaScript properties. * </p> * * <p> Any data returned from the JavaScript engine to Java is * converted to Java data types. Certain data passed to the JavaScript * engine is converted to JavaScript data types. * </p> * */ @SuppressWarnings("deprecation") public abstract class JSObject { /** * Constructs a new JSObject. Users should neither call this method nor * subclass JSObject. */ protected JSObject() { } /** * Calls a JavaScript method. Equivalent to * "this.methodName(args[0], args[1], ...)" in JavaScript. * * @param methodName The name of the JavaScript method to be invoked. * @param args the Java objects passed as arguments to the method. * @return Result of the method. * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract Object call(String methodName, Object... args) throws JSException; /** * Evaluates a JavaScript expression. The expression is a string of * JavaScript source code which will be evaluated in the context given by * "this". * * @param s The JavaScript expression. * @return Result of the JavaScript evaluation. * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract Object eval(String s) throws JSException; /** * Retrieves a named member of a JavaScript object. Equivalent to * "this.name" in JavaScript. * * @param name The name of the JavaScript property to be accessed. * @return The value of the propery. * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract Object getMember(String name) throws JSException; /** * Sets a named member of a JavaScript object. Equivalent to * "this.name = value" in JavaScript. * * @param name The name of the JavaScript property to be accessed. * @param value The value of the propery. * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract void setMember(String name, Object value) throws JSException; /** * Removes a named member of a JavaScript object. Equivalent * to "delete this.name" in JavaScript. * * @param name The name of the JavaScript property to be removed. * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract void removeMember(String name) throws JSException; /** * Retrieves an indexed member of a JavaScript object. Equivalent to * "this[index]" in JavaScript. * * @param index The index of the array to be accessed. * @return The value of the indexed member. * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract Object getSlot(int index) throws JSException; /** * Sets an indexed member of a JavaScript object. Equivalent to * "this[index] = value" in JavaScript. * * @param index The index of the array to be accessed. * @param value The value to set * @throws JSException when an error is reported from the browser or * JavaScript engine. */ public abstract void setSlot(int index, Object value) throws JSException; /** * Returns a JSObject for the window containing the given applet. This * method only works when the Java code is running in a browser as an * applet. The object returned may be used to access the HTML DOM directly. * * @param applet The applet. * @return JSObject representing the window containing the given applet or * {@code null} if we are not connected to a browser. * @throws JSException when an error is reported from the browser or * JavaScript engine or if applet is {@code null} * * @deprecated The Applet API is deprecated. See the * <a href="{@docRoot}/java.desktop/java/applet/package-summary.html"> * java.applet package documentation</a> for further information. */ @Deprecated(since = "9") @SuppressWarnings("exports") public static JSObject getWindow(Applet applet) throws JSException { return ProviderLoader.callGetWindow(applet); } private static class ProviderLoader { private static final JSObjectProvider provider; static { provider = AccessController.doPrivileged( new PrivilegedAction<>() { @Override public JSObjectProvider run() { Iterator<JSObjectProvider> providers = ServiceLoader.loadInstalled(JSObjectProvider.class).iterator(); if (providers.hasNext()) { return providers.next(); } return null; } } ); } private static JSObject callGetWindow(Applet applet) { if (provider != null) { return provider.getWindow(applet); } return null; } } }
⏎ netscape/javascript/JSObject.java
Or download all of them as a single archive file:
File name: jdk.jsobject-11.0.1-src.zip File size: 4741 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jstatd.jmod - JStatd Module
2020-06-30, 3179👍, 0💬
Popular Posts:
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...
JDK 11 jdk.internal.vm.compiler .jmodis the JMOD file for JDK 11 Internal VM Compiler module. JDK 11...
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...