Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
Rhino JavaScript Java Library Source Code
Rhino JavaScript Java Library is an open-source implementation of JavaScript
written entirely in Java.
Rhino JavaScript Java Library Source Code files are provided in binary package (rhino-1.7.14.zip).
You can also browse the source code below:
✍: FYIcenter.com
⏎ org/mozilla/javascript/IdFunctionObjectES6.java
package org.mozilla.javascript;
public class IdFunctionObjectES6 extends IdFunctionObject{
private static final long serialVersionUID = -8023088662589035261L;
public IdFunctionObjectES6(IdFunctionCall idcall, Object tag, int id, String name, int arity, Scriptable scope) {
super(idcall, tag, id, name, arity, scope);
}
private static final int Id_length = 1, Id_name = 3;
private boolean myLength = true;
private boolean myName = true;
@Override
protected int findInstanceIdInfo(String s) {
if (s.equals("length")) return instanceIdInfo(READONLY | DONTENUM, Id_length);
else if (s.equals("name")) return instanceIdInfo(READONLY | DONTENUM, Id_name);
return super.findInstanceIdInfo(s);
}
@Override
protected Object getInstanceIdValue(int id) {
if (id == Id_length && !myLength) {
return NOT_FOUND;
} else if (id == Id_name && !myName) {
return NOT_FOUND;
}
return super.getInstanceIdValue(id);
}
@Override
protected void setInstanceIdValue(int id, Object value) {
if (id == Id_length && value == NOT_FOUND) {
this.myLength = false;
return;
} else if (id == Id_name && value == NOT_FOUND) {
this.myName = false;
return;
}
super.setInstanceIdValue(id, value);
}
}
⏎ org/mozilla/javascript/IdFunctionObjectES6.java
Or download all of them as a single archive file:
File name: rhino-1.7.14-sources.jar File size: 1029165 bytes Release date: 2022-01-06 Download
⇒ Example code to Test rhino-runtime-1.7.14.jar
⇐ Download Rhino JavaScript Binary Package
2022-05-03, ≈102🔥, 1💬
Popular Posts:
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...