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/api/tree/SimpleTreeVisitorES6.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.nashorn.api.tree; import java.util.List; /** * A simple implementation of the TreeVisitor for ECMAScript edition 6. * * <p>The visit methods corresponding to ES 6 language constructs walk the * "components" of the given tree by calling accept method passing the * current visitor and the additional parameter. * * <p>For constructs introduced in later versions, {@code visitUnknown} * is called instead which throws {@link UnknownTreeException}. * * <p> Methods in this class may be overridden subject to their * general contract. Note that annotating methods in concrete * subclasses with {@link java.lang.Override @Override} will help * ensure that methods are overridden as intended. * * @deprecated Nashorn JavaScript script engine and APIs, and the jjs tool * are deprecated with the intent to remove them in a future release. * * @param <R> the return type of this visitor's methods. Use {@link * Void} for visitors that do not need to return results. * @param <P> the type of the additional parameter to this visitor's * methods. Use {@code Void} for visitors that do not need an * additional parameter. */ @Deprecated(since="11", forRemoval=true) public class SimpleTreeVisitorES6<R, P> extends SimpleTreeVisitorES5_1<R, P> { @Override public R visitCompilationUnit(final CompilationUnitTree node, final P r) { final ModuleTree mod = node.getModule(); if (mod != null) { mod.accept(this, r); } return super.visitCompilationUnit(node, r); } /** * Visit Module tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitModule(final ModuleTree node, final P p) { node.getImportEntries().forEach(e -> visitImportEntry(e, p)); node.getLocalExportEntries().forEach(e -> visitExportEntry(e, p)); node.getIndirectExportEntries().forEach(e -> visitExportEntry(e, p)); node.getStarExportEntries().forEach(e -> visitExportEntry(e, p)); return null; } /** * Visit Module ExportEntry tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitExportEntry(final ExportEntryTree node, final P p) { return null; } /** * Visit Module ImportEntry tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitImportEntry(final ImportEntryTree node, final P p) { return null; } /** * Visit class statement tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitClassDeclaration(final ClassDeclarationTree node, final P p) { node.getName().accept(this, p); final ExpressionTree heritage = node.getClassHeritage(); if (heritage != null) { heritage.accept(this, p); } final PropertyTree constructor = node.getConstructor(); if (constructor != null) { constructor.accept(this, p); } final List<? extends PropertyTree> elements = node.getClassElements(); if (elements != null) { for (final PropertyTree prop : elements) { prop.accept(this, p); } } return null; } /** * Visit class expression tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitClassExpression(final ClassExpressionTree node, final P p) { node.getName().accept(this, p); final ExpressionTree heritage = node.getClassHeritage(); if (heritage != null) { heritage.accept(this, p); } final PropertyTree constructor = node.getConstructor(); if (constructor != null) { constructor.accept(this, p); } final List<? extends PropertyTree> elements = node.getClassElements(); if (elements != null) { for (final PropertyTree prop : elements) { prop.accept(this, p); } } return null; } /** * Visit for..of statement tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitForOfLoop(final ForOfLoopTree node, final P p) { node.getVariable().accept(this, p); node.getExpression().accept(this, p); final StatementTree stat = node.getStatement(); if (stat != null) { stat.accept(this, p); } return null; } /** * Visit 'yield' expression tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitYield(final YieldTree node, final P p) { node.getExpression().accept(this, p); return null; } /** * Visit 'spread' expression tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitSpread(final SpreadTree node, final P p) { node.getExpression().accept(this, p); return null; } /** * Visit template literal tree. * * @param node node being visited * @param p extra parameter passed to the visitor * @return value from the visitor */ @Override public R visitTemplateLiteral(final TemplateLiteralTree node, final P p) { final List<? extends ExpressionTree> expressions = node.getExpressions(); for (final ExpressionTree expr : expressions) { expr.accept(this, p); } return null; } @Override public R visitVariable(final VariableTree node, final P r) { final ExpressionTree expr = node.getBinding(); if (expr != null) { expr.accept(this, r); } super.visitVariable(node, r); return null; } }
⏎ jdk/nashorn/api/tree/SimpleTreeVisitorES6.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, 83101👍, 0💬
Popular Posts:
Apache Neethi provides general framework for the programmers to use WS Policy. It is compliant with ...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...