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/ir/BlockLexicalContext.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.ir; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.List; /** * This is a subclass of lexical context used for filling * blocks (and function nodes) with statements. When popping * a block from the lexical context, any statements that have * been generated in it are committed to the block. This saves * unnecessary object mutations and lexical context replacement */ public class BlockLexicalContext extends LexicalContext { /** statement stack, each block on the lexical context maintains one of these, which is * committed to the block on pop */ private final Deque<List<Statement>> sstack = new ArrayDeque<>(); /** Last non debug statement emitted in this context */ protected Statement lastStatement; @Override public <T extends LexicalContextNode> T push(final T node) { final T pushed = super.push(node); if (node instanceof Block) { sstack.push(new ArrayList<Statement>()); } return pushed; } /** * Get the statement list from the stack, possibly filtered * @return statement list */ protected List<Statement> popStatements() { return sstack.pop(); } /** * Override this method to perform some additional processing on the block after its statements have been set. By * default does nothing and returns the original block. * @param block the block to operate on * @return a modified block. */ protected Block afterSetStatements(final Block block) { return block; } @SuppressWarnings("unchecked") @Override public <T extends Node> T pop(final T node) { T expected = node; if (node instanceof Block) { final List<Statement> newStatements = popStatements(); expected = (T)((Block)node).setStatements(this, newStatements); expected = (T)afterSetStatements((Block)expected); if (!sstack.isEmpty()) { lastStatement = lastStatement(sstack.peek()); } } return super.pop(expected); } /** * Append a statement to the block being generated * @param statement statement to add */ public void appendStatement(final Statement statement) { assert statement != null; sstack.peek().add(statement); lastStatement = statement; } /** * Prepend a statement to the block being generated * @param statement statement to prepend * @return the prepended statement */ public Node prependStatement(final Statement statement) { assert statement != null; sstack.peek().add(0, statement); return statement; } /** * Prepend a list of statement to the block being generated * @param statements a list of statements to prepend */ public void prependStatements(final List<Statement> statements) { assert statements != null; sstack.peek().addAll(0, statements); } /** * Get the last statement that was emitted into a block * @return the last statement emitted */ public Statement getLastStatement() { return lastStatement; } private static Statement lastStatement(final List<Statement> statements) { final int s = statements.size(); return s == 0 ? null : statements.get(s - 1); } }
⏎ jdk/nashorn/internal/ir/BlockLexicalContext.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, 83872👍, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 1.4? If you want to write Java applications, ...
What Is jms.jar? I heard it's related to JMS (Java Message Service) 1.1? The if you have an jms.jar ...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
How to display XML element type information with the jaxp\TypeInfoWriter.java provided in the Apache...