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 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/lang/constant/ReferenceClassDescImpl.java
/* * Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.lang.constant; import java.lang.invoke.MethodHandles; import static java.lang.constant.ConstantUtils.dropFirstAndLastChar; import static java.lang.constant.ConstantUtils.internalToBinary; import static java.util.Objects.requireNonNull; /** * A <a href="package-summary.html#nominal">nominal descriptor</a> for a class, * interface, or array type. A {@linkplain ReferenceClassDescImpl} corresponds to a * {@code Constant_Class_info} entry in the constant pool of a classfile. */ final class ReferenceClassDescImpl implements ClassDesc { private final String descriptor; /** * Creates a {@linkplain ClassDesc} from a descriptor string for a class or * interface type * * @param descriptor a field descriptor string for a class or interface type * @throws IllegalArgumentException if the descriptor string is not a valid * field descriptor string, or does not describe a class or interface type * @jvms 4.3.2 Field Descriptors */ ReferenceClassDescImpl(String descriptor) { requireNonNull(descriptor); int len = ConstantUtils.skipOverFieldSignature(descriptor, 0, descriptor.length(), false); if (len == 0 || len == 1 || len != descriptor.length()) throw new IllegalArgumentException(String.format("not a valid reference type descriptor: %s", descriptor)); this.descriptor = descriptor; } @Override public String descriptorString() { return descriptor; } @Override public Class<?> resolveConstantDesc(MethodHandles.Lookup lookup) throws ReflectiveOperationException { ClassDesc c = this; int depth = ConstantUtils.arrayDepth(descriptorString()); for (int i=0; i<depth; i++) c = c.componentType(); if (c.isPrimitive()) return lookup.findClass(descriptorString()); else { Class<?> clazz = lookup.findClass(internalToBinary(dropFirstAndLastChar(c.descriptorString()))); for (int i = 0; i < depth; i++) clazz = clazz.arrayType(); return clazz; } } /** * Returns {@code true} if this {@linkplain ReferenceClassDescImpl} is * equal to another {@linkplain ReferenceClassDescImpl}. Equality is * determined by the two class descriptors having equal class descriptor * strings. * * @param o the {@code ClassDesc} to compare to this * {@code ClassDesc} * @return {@code true} if the specified {@code ClassDesc} * is equal to this {@code ClassDesc}. */ @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ClassDesc constant = (ClassDesc) o; return descriptor.equals(constant.descriptorString()); } @Override public int hashCode() { return descriptor.hashCode(); } @Override public String toString() { return String.format("ClassDesc[%s]", displayName()); } }
⏎ java/lang/constant/ReferenceClassDescImpl.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 44617👍, 1💬
Popular Posts:
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, ...
What is the sax\Writer.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 insta...