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/SymbolScriptable.java

/* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

package org.mozilla.javascript;

/**
 * This interface may be combined with any object that implements Scriptable
 * to add support for properties keyed by Symbol objects (as opposed to
 * String and number objects as in previous versions of JavaScript.
 * It's separated into its own interface so that the addition of Symbol
 * support does not break compatibility for existing code.
 *
 * @since 1.7.8
 */

public interface SymbolScriptable
{
    /**
     * Return the value of the property with the specified key, or
     * NOT_FOUND.
     */
    Object get(Symbol key, Scriptable start);

    /**
     * Return true if the specified property exists.
     */
    boolean has(Symbol key, Scriptable start);

    /**
     * Add a new property to to the object.
     */
    void put(Symbol key, Scriptable start, Object value);

    /**
     * Delete a property with the specified key.
     */
    void delete(Symbol key);
}

org/mozilla/javascript/SymbolScriptable.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

Download and Review Rhino JavaScript Java Library

⇑⇑ FAQ for Rhino JavaScript Java Library

2022-05-03, 34713👍, 1💬