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.compiler.jmod - Compiler Tool
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "javac" command.
JDK 11 Compiler tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.compiler.jmod.
JDK 11 Compiler tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Compiler source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.compiler.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/tools/javac/comp/TreeHasher.java
/* * Copyright (c) 2018, Google LLC. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.javac.comp; import com.sun.tools.javac.code.Symbol; import com.sun.tools.javac.tree.JCTree; import com.sun.tools.javac.tree.JCTree.JCFieldAccess; import com.sun.tools.javac.tree.JCTree.JCIdent; import com.sun.tools.javac.tree.JCTree.JCLiteral; import com.sun.tools.javac.tree.JCTree.JCVariableDecl; import com.sun.tools.javac.tree.TreeInfo; import com.sun.tools.javac.tree.TreeScanner; import java.util.Collection; import java.util.HashMap; import java.util.Map; import java.util.Objects; /** A tree visitor that computes a hash code. */ public class TreeHasher extends TreeScanner { private final Map<Symbol, Integer> symbolHashes; private int result = 17; public TreeHasher(Map<Symbol, Integer> symbolHashes) { this.symbolHashes = Objects.requireNonNull(symbolHashes); } public static int hash(JCTree tree, Collection<? extends Symbol> symbols) { if (tree == null) { return 0; } Map<Symbol, Integer> symbolHashes = new HashMap<>(); symbols.forEach(s -> symbolHashes.put(s, symbolHashes.size())); TreeHasher hasher = new TreeHasher(symbolHashes); tree.accept(hasher); return hasher.result; } private void hash(Object object) { result = 31 * result + Objects.hashCode(object); } @Override public void scan(JCTree tree) { if (tree == null) { return; } tree = TreeInfo.skipParens(tree); if (tree.type != null) { Object value = tree.type.constValue(); if (value != null) { hash(value); return; } } hash(tree.getTag()); tree.accept(this); } @Override public void visitLiteral(JCLiteral tree) { hash(tree.value); super.visitLiteral(tree); } @Override public void visitIdent(JCIdent tree) { Symbol sym = tree.sym; if (sym != null) { Integer hash = symbolHashes.get(sym); if (hash != null) { hash(hash); return; } } hash(sym); } @Override public void visitSelect(JCFieldAccess tree) { hash(tree.sym); super.visitSelect(tree); } @Override public void visitVarDef(JCVariableDecl tree) { symbolHashes.computeIfAbsent(tree.sym, k -> symbolHashes.size()); super.visitVarDef(tree); } }
⏎ com/sun/tools/javac/comp/TreeHasher.java
Or download all of them as a single archive file:
File name: jdk.compiler-11.0.1-src.zip File size: 1347269 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.crypto.cryptoki.jmod - Crypto KI Module
2020-08-13, 93543👍, 0💬
Popular Posts:
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
How to download and install mysql-connector-j-8.0.31 .zip?Connector/J Java library is a JDBC Driver ...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
ASM is an all purpose Java bytecode manipulation and analysis framework. It can be used to modify ex...