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, ≈154🔥, 1💬
Popular Posts:
How to download and install ojdbc14.jar for Oracle 10g R2? ojdbc14.jar for Oracle 10g R2 is a Java 1...
Woodstox 6.4.0 Source Code Files are provided at the Woodstox GitHub Website . You can download them...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module. JDK 11 Desktop module compiled ...
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...