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/sjavac/pubapi/TypeDesc.java
/* * Copyright (c) 2014, 2015, 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.SimpleTypeVisitor9; 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 SimpleTypeVisitor9<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-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, 115198👍, 0💬
Popular Posts:
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...