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/parser/Scanner.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.parser; /** * Utility for scanning thru a char array. * */ public class Scanner { /** Characters to scan. */ protected final char[] content; /** Position in content. */ protected int position; /** Scan limit. */ protected final int limit; /** Current line number. */ protected int line; /** Current character in stream */ protected char ch0; /** 1 character lookahead */ protected char ch1; /** 2 character lookahead */ protected char ch2; /** 3 character lookahead */ protected char ch3; /** * Constructor * * @param content content to scan * @param line start line number * @param start position index in content where to start * @param length length of input */ protected Scanner(final char[] content, final int line, final int start, final int length) { this.content = content; this.position = start; this.limit = start + length; this.line = line; reset(position); } /** * Constructor * * Scan content from beginning to end. Content given as a string * * @param content content to scan */ protected Scanner(final String content) { this(content.toCharArray(), 0, 0, content.length()); } /** * Copy constructor * * @param scanner scanner * @param state state, the state is a tuple {position, limit, line} only visible internally */ Scanner(final Scanner scanner, final State state) { content = scanner.content; position = state.position; limit = state.limit; line = state.line; reset(position); } /** * Information needed to restore previous state. */ static class State { /** Position in content. */ public final int position; /** Scan limit. */ public int limit; /** Current line number. */ public final int line; State(final int position, final int limit, final int line) { this.position = position; this.limit = limit; this.line = line; } /** * Change the limit for a new scanner. * @param limit New limit. */ void setLimit(final int limit) { this.limit = limit; } boolean isEmpty() { return position == limit; } } /** * Save the state of the scan. * @return Captured state. */ State saveState() { return new State(position, limit, line); } /** * Restore the state of the scan. * @param state Captured state. */ void restoreState(final State state) { position = state.position; line = state.line; reset(position); } /** * Returns true of scanner is at end of input * @return true if no more input */ protected final boolean atEOF() { return position == limit; } /** * Get the ith character from the content. * @param i Index of character. * @return ith character or '\0' if beyond limit. */ protected final char charAt(final int i) { // Get a character from the content, '\0' if beyond the end of file. return i < limit ? content[i] : '\0'; } /** * Reset to a character position. * @param i Position in content. */ protected final void reset(final int i) { ch0 = charAt(i); ch1 = charAt(i + 1); ch2 = charAt(i + 2); ch3 = charAt(i + 3); position = i < limit? i : limit; } /** * Skip ahead a number of characters. * @param n Number of characters to skip. */ protected final void skip(final int n) { if (n == 1 && !atEOF()) { ch0 = ch1; ch1 = ch2; ch2 = ch3; ch3 = charAt(position + 4); position++; } else if (n != 0) { reset(position + n); } } }
⏎ jdk/nashorn/internal/parser/Scanner.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, 83837👍, 0💬
Popular Posts:
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers. Both...
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module. JDK 11 Desktop module compiled ...
commons-lang-1.0.1.jar is the JAR file for Apache Commons Lang 1.0.1, which provides a host of helpe...
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...