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 17 jdk.compiler.jmod - Compiler Tool
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "javac" command.
JDK 17 Compiler tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.compiler.jmod.
JDK 17 Compiler tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Compiler source code files are stored in \fyicenter\jdk-17.0.5\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/sjavac/pubapi/TypeDesc.java
/* * Copyright (c) 2014, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.tools.sjavac.pubapi; import java.io.Serializable; import javax.lang.model.type.ArrayType; import javax.lang.model.type.DeclaredType; import javax.lang.model.type.ErrorType; import javax.lang.model.type.NoType; import javax.lang.model.type.PrimitiveType; import javax.lang.model.type.TypeKind; import javax.lang.model.type.TypeMirror; import javax.lang.model.type.TypeVariable; import javax.lang.model.type.TypeVisitor; import javax.lang.model.util.SimpleTypeVisitor14; import com.sun.tools.javac.code.Type.ClassType; import com.sun.tools.javac.util.DefinedBy; import com.sun.tools.javac.util.DefinedBy.Api; import com.sun.tools.javac.util.StringUtils; public abstract class TypeDesc implements Serializable { private static final long serialVersionUID = -8201634143915519172L; TypeKind typeKind; public TypeDesc(TypeKind typeKind) { this.typeKind = typeKind; } public static TypeDesc decodeString(String s) { s = s.trim(); if (s.endsWith("[]")) { String componentPart = s.substring(0, s.length()-2); return new ArrayTypeDesc(decodeString(componentPart)); } if (s.startsWith("#")) return new TypeVarTypeDesc(s.substring(1)); if (s.matches("boolean|byte|char|double|float|int|long|short|void")) { TypeKind tk = TypeKind.valueOf(StringUtils.toUpperCase(s)); return new PrimitiveTypeDesc(tk); } return new ReferenceTypeDesc(s); } public static String encodeAsString(TypeDesc td) { if (td.typeKind.isPrimitive() || td.typeKind == TypeKind.VOID) return StringUtils.toLowerCase(td.typeKind.toString()); if (td.typeKind == TypeKind.ARRAY) return encodeAsString(((ArrayTypeDesc) td).compTypeDesc) + "[]"; if (td.typeKind == TypeKind.TYPEVAR) return "#" + ((TypeVarTypeDesc) td).identifier; if (td.typeKind == TypeKind.DECLARED) return ((ReferenceTypeDesc) td).javaType.toString(); throw new AssertionError("Unhandled type: " + td.typeKind); } public static TypeDesc fromType(TypeMirror type) { TypeVisitor<TypeDesc, Void> v = new SimpleTypeVisitor14<TypeDesc, Void>() { @Override @DefinedBy(Api.LANGUAGE_MODEL) public TypeDesc visitArray(ArrayType t, Void p) { return new ArrayTypeDesc(t.getComponentType().accept(this, p)); } @Override @DefinedBy(Api.LANGUAGE_MODEL) public TypeDesc visitDeclared(DeclaredType t, Void p) { return new ReferenceTypeDesc(((ClassType) t).tsym.flatName().toString()); } @Override @DefinedBy(Api.LANGUAGE_MODEL) public TypeDesc visitNoType(NoType t, Void p) { return new PrimitiveTypeDesc(TypeKind.VOID); } @Override @DefinedBy(Api.LANGUAGE_MODEL) public TypeDesc visitTypeVariable(TypeVariable t, Void p) { return new TypeVarTypeDesc(t.toString()); } @Override @DefinedBy(Api.LANGUAGE_MODEL) public TypeDesc visitPrimitive(PrimitiveType t, Void p) { return new PrimitiveTypeDesc(t.getKind()); } @Override @DefinedBy(Api.LANGUAGE_MODEL) public TypeDesc visitError(ErrorType t, Void p) { return new ReferenceTypeDesc("<error type>"); } }; TypeDesc td = v.visit(type); if (td == null) throw new AssertionError("Unhandled type mirror: " + type + " (" + type.getClass() + ")"); return td; } @Override public boolean equals(Object obj) { if (getClass() != obj.getClass()) return false; return typeKind.equals(((TypeDesc) obj).typeKind); } @Override public int hashCode() { return typeKind.hashCode(); } }
⏎ com/sun/tools/sjavac/pubapi/TypeDesc.java
Or download all of them as a single archive file:
File name: jdk.compiler-17.0.5-src.zip File size: 1450209 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.crypto.cryptoki.jmod - Crypto KI Module
2023-10-15, 17767👍, 0💬
Popular Posts:
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
commons-lang-2.6.jar is the JAR file for Apache Commons Lang 2.6, which provides a host of helper ut...
How to download and install JDK (Java Development Kit) 7? If you want to write Java applications, yo...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...