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/SymbolKey.java
package org.mozilla.javascript;
import java.io.Serializable;
/**
* A SymbolKey is one of the implementations of Symbol. It is really there
* so that we can easily use pre-defined symbols as keys in native code.
* A SymbolKey has the special property that two NativeSymbol objects
* with the same key are equal.
*/
public class SymbolKey
implements Symbol, Serializable
{
private static final long serialVersionUID = -6019782713330994754L;
// These are common SymbolKeys that are equivalent to well-known symbols
// defined in ECMAScript.
public static final SymbolKey ITERATOR = new SymbolKey("Symbol.iterator");
public static final SymbolKey TO_STRING_TAG = new SymbolKey("Symbol.toStringTag");
public static final SymbolKey SPECIES = new SymbolKey("Symbol.species");
public static final SymbolKey HAS_INSTANCE = new SymbolKey("Symbol.hasInstance");
public static final SymbolKey IS_CONCAT_SPREADABLE = new SymbolKey("Symbol.isConcatSpreadable");
public static final SymbolKey IS_REGEXP = new SymbolKey("Symbol.isRegExp");
public static final SymbolKey TO_PRIMITIVE = new SymbolKey("Symbol.toPrimitive");
public static final SymbolKey MATCH = new SymbolKey("Symbol.match");
public static final SymbolKey REPLACE = new SymbolKey("Symbol.replace");
public static final SymbolKey SEARCH = new SymbolKey("Symbol.search");
public static final SymbolKey SPLIT = new SymbolKey("Symbol.split");
public static final SymbolKey UNSCOPABLES = new SymbolKey("Symbol.unscopables");
private String name;
public SymbolKey(String name)
{
this.name = name;
}
public String getName() {
return name;
}
@Override
public int hashCode()
{
return System.identityHashCode(this);
}
@Override
public boolean equals(Object o)
{
if (o instanceof SymbolKey) {
return o == this;
}
if (o instanceof NativeSymbol) {
return ((NativeSymbol) o).getKey() == this;
}
return false;
}
@Override
public String toString()
{
if (name == null) {
return "Symbol()";
}
return "Symbol(" + name + ')';
}
}
⏎ org/mozilla/javascript/SymbolKey.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, ≈136🔥, 1💬
Popular Posts:
What Is ojdbc7.jar for Oracle 12c R1? ojdbc7.jar for Oracle 12c R1 is the JAR files of ojdbc.jar, JD...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
How to download and install javamail-1_2.zip? The JavaMail API is a set of abstract APIs that model ...
JEuclid Source Code Files are provided the JEuclid GitHub Website . You can browse JEuclid Source Co...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...