JDK 11 jdk.scripting.nashorn.jmod - Scripting Nashorn Module

JDK 11 jdk.scripting.nashorn.jmod is the JMOD file for JDK 11 Scripting Nashorn module.

JDK 11 Scripting Nashorn module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.scripting.nashorn.jmod.

JDK 11 Scripting Nashorn module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Scripting Nashorn module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.scripting.nashorn.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

jdk/nashorn/internal/runtime/DefaultPropertyAccess.java

/*
 * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package jdk.nashorn.internal.runtime;

/**
 * If your ScriptObject or similar PropertyAccess implementation only provides the most
 * generic getters and setters and does nothing fancy with other, more primitive, types,
 * then it is convenient to inherit this class and just fill out the methods left
 * abstract
 */
public abstract class DefaultPropertyAccess implements PropertyAccess {

    @Override
    public int getInt(final Object key, final int programPoint) {
        return JSType.toInt32(get(key));
    }

    @Override
    public int getInt(final double key, final int programPoint) {
        return getInt(JSType.toObject(key), programPoint);
    }

    @Override
    public int getInt(final int key, final int programPoint) {
        return getInt(JSType.toObject(key), programPoint);
    }

    @Override
    public double getDouble(final Object key, final int programPoint) {
        return JSType.toNumber(get(key));
    }

    @Override
    public double getDouble(final double key, final int programPoint) {
        return getDouble(JSType.toObject(key), programPoint);
    }

    @Override
    public double getDouble(final int key, final int programPoint) {
        return getDouble(JSType.toObject(key), programPoint);
    }

    @Override
    public abstract Object get(Object key);

    @Override
    public Object get(final double key) {
        return get(JSType.toObject(key));
    }

    @Override
    public Object get(final int key) {
        return get(JSType.toObject(key));
    }

    @Override
    public void set(final double key, final int value, final int flags) {
        set(JSType.toObject(key), JSType.toObject(value), flags);
    }

    @Override
    public void set(final double key, final double value, final int flags) {
        set(JSType.toObject(key), JSType.toObject(value), flags);
    }

    @Override
    public void set(final double key, final Object value, final int flags) {
        set(JSType.toObject(key), JSType.toObject(value), flags);
    }

    @Override
    public void set(final int key, final int value, final int flags) {
        set(JSType.toObject(key), JSType.toObject(value), flags);
    }

    @Override
    public void set(final int key, final double value, final int flags) {
        set(JSType.toObject(key), JSType.toObject(value), flags);
    }

    @Override
    public void set(final int key, final Object value, final int flags) {
        set(JSType.toObject(key), value, flags);
    }

    @Override
    public void set(final Object key, final int value, final int flags) {
        set(key, JSType.toObject(value), flags);
    }

    @Override
    public void set(final Object key, final double value, final int flags) {
        set(key, JSType.toObject(value), flags);
    }

    @Override
    public abstract void set(Object key, Object value, int flags);

    @Override
    public abstract boolean has(Object key);

    @Override
    public boolean has(final int key) {
        return has(JSType.toObject(key));
    }

    @Override
    public boolean has(final double key) {
        return has(JSType.toObject(key));
    }

    @Override
    public boolean hasOwnProperty(final int key) {
        return hasOwnProperty(JSType.toObject(key));
    }

    @Override
    public boolean hasOwnProperty(final double key) {
        return hasOwnProperty(JSType.toObject(key));
    }

    @Override
    public abstract boolean hasOwnProperty(Object key);

    @Override
    public boolean delete(final int key, final boolean strict) {
        return delete(JSType.toObject(key), strict);
    }

    @Override
    public boolean delete(final double key, final boolean strict) {
        return delete(JSType.toObject(key), strict);
    }

}

jdk/nashorn/internal/runtime/DefaultPropertyAccess.java

 

Or download all of them as a single archive file:

File name: jdk.scripting.nashorn-11.0.1-src.zip
File size: 1390965 bytes
Release date: 2018-11-04
Download 

 

JDK 11 jdk.scripting.nashorn.shell.jmod - Scripting Nashorn Shell Module

JDK 11 jdk.rmic.jmod - RMI Compiler Tool

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-04-25, 107901👍, 0💬