Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
Collections:
Other Resources:
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/arrays/ByteBufferArrayData.java
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.nashorn.internal.runtime.arrays; import static jdk.nashorn.internal.runtime.ECMAErrors.typeError; import java.nio.ByteBuffer; import jdk.nashorn.internal.objects.Global; import jdk.nashorn.internal.runtime.PropertyDescriptor; import jdk.nashorn.internal.runtime.ScriptRuntime; /** * Implementation of {@link ArrayData} that wraps a nio ByteBuffer */ final class ByteBufferArrayData extends ArrayData { private final ByteBuffer buf; ByteBufferArrayData(final int length) { super(length); this.buf = ByteBuffer.allocateDirect(length); } /** * Constructor * * @param buf ByteBuffer to create array data with. */ ByteBufferArrayData(final ByteBuffer buf) { super(buf.capacity()); this.buf = buf; } /** * Returns property descriptor for element at a given index * * @param global the global object * @param index the index * * @return property descriptor for element */ @Override public PropertyDescriptor getDescriptor(final Global global, final int index) { // make the index properties not configurable return global.newDataDescriptor(getObject(index), false, true, true); } @Override public ArrayData copy() { throw unsupported("copy"); } @Override public Object[] asObjectArray() { throw unsupported("asObjectArray"); } @Override public void setLength(final long length) { throw new UnsupportedOperationException("setLength"); } @Override public ArrayData shiftLeft(final int by) { throw unsupported("shiftLeft"); } @Override public ArrayData shiftRight(final int by) { throw unsupported("shiftRight"); } @Override public ArrayData ensure(final long safeIndex) { if (safeIndex < buf.capacity()) { return this; } throw unsupported("ensure"); } @Override public ArrayData shrink(final long newLength) { throw unsupported("shrink"); } @Override public ArrayData set(final int index, final Object value, final boolean strict) { if (value instanceof Number) { buf.put(index, ((Number)value).byteValue()); return this; } throw typeError("not.a.number", ScriptRuntime.safeToString(value)); } @Override public ArrayData set(final int index, final int value, final boolean strict) { buf.put(index, (byte)value); return this; } @Override public ArrayData set(final int index, final double value, final boolean strict) { buf.put(index, (byte)value); return this; } @Override public int getInt(final int index) { return 0x0ff & buf.get(index); } @Override public double getDouble(final int index) { return 0x0ff & buf.get(index); } @Override public Object getObject(final int index) { return 0x0ff & buf.get(index); } @Override public boolean has(final int index) { return index > -1 && index < buf.capacity(); } @Override public boolean canDelete(final int index, final boolean strict) { return false; } @Override public boolean canDelete(final long longIndex, final boolean strict) { return false; } @Override public ArrayData delete(final int index) { throw unsupported("delete"); } @Override public ArrayData delete(final long fromIndex, final long toIndex) { throw unsupported("delete"); } @Override public ArrayData push(final boolean strict, final Object... items) { throw unsupported("push"); } @Override public Object pop() { throw unsupported("pop"); } @Override public ArrayData slice(final long from, final long to) { throw unsupported("slice"); } @Override public ArrayData convert(final Class<?> type) { throw unsupported("convert"); } private static UnsupportedOperationException unsupported(final String method) { return new UnsupportedOperationException(method); } }
⏎ jdk/nashorn/internal/runtime/arrays/ByteBufferArrayData.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
2020-04-25, 82852👍, 0💬
Popular Posts:
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....