Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/PubMethod.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 java.util.List;
import java.util.Set;
import java.util.stream.Collectors;
import javax.lang.model.element.Modifier;
public class PubMethod implements Serializable {
private static final long serialVersionUID = -7813050194553446243L;
Set<Modifier> modifiers;
List<PubApiTypeParam> typeParams;
TypeDesc returnType;
String identifier;
List<TypeDesc> paramTypes;
List<TypeDesc> throwDecls;
public PubMethod(Set<Modifier> modifiers,
List<PubApiTypeParam> typeParams,
TypeDesc returnType,
String identifier,
List<TypeDesc> paramTypes,
List<TypeDesc> throwDecls) {
this.modifiers = modifiers;
this.typeParams = typeParams;
this.returnType = returnType;
this.identifier = identifier;
this.paramTypes = paramTypes;
this.throwDecls = throwDecls;
}
// We need to include return type and type parameters to be sure to have
// different values for different methods. (A method can be overloaded with
// the only difference being the upper bound of the return type.)
public String asSignatureString() {
StringBuilder sb = new StringBuilder();
// <A extends String, Serializable, B extends List>
if (typeParams.size() > 0) {
sb.append(typeParams.stream()
.map(PubApiTypeParam::asString)
.collect(Collectors.joining(",", "<", "> ")));
}
sb.append(TypeDesc.encodeAsString(returnType));
sb.append(" ");
sb.append(identifier);
sb.append("(");
sb.append(paramTypes.stream()
.map(TypeDesc::encodeAsString)
.collect(Collectors.joining(",")));
sb.append(")");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (getClass() != obj.getClass())
return false;
PubMethod other = (PubMethod) obj;
return modifiers.equals(other.modifiers)
&& typeParams.equals(other.typeParams)
&& returnType.equals(other.returnType)
&& identifier.equals(other.identifier)
&& paramTypes.equals(other.paramTypes)
&& throwDecls.equals(other.throwDecls);
}
@Override
public int hashCode() {
return modifiers.hashCode()
^ typeParams.hashCode()
^ returnType.hashCode()
^ identifier.hashCode()
^ paramTypes.hashCode()
^ throwDecls.hashCode();
}
public String toString() {
return String.format("%s[modifiers: %s, typeParams: %s, retType: %s, identifier: %s, params: %s, throws: %s]",
getClass().getSimpleName(),
modifiers,
typeParams,
returnType,
identifier,
paramTypes,
throwDecls);
}
}
⏎ com/sun/tools/sjavac/pubapi/PubMethod.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, ≈152🔥, 0💬
Popular Posts:
Java-WebSocket Source Code Files are provided in the source package file, java-websocket-1.5.4-src .z...
Java Servlet API 4.0.1 Source Code Files are important if you want to compile them with different JD...
JDK 17 jdk.jdi.jmod is the JMOD file for JDK 17 JDI (Java Debug Interface) tool. JDK 17 JDI tool com...
commons-io-2.6-sources.j aris the source JAR file for Apache Commons IO 2.6, which is a library of u...
JDK 17 jdk.jconsole.jmod is the JMOD file for JDK 17 JConsole tool, which can be invoked by the "jco...