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/Constable.java
/* * Copyright (c) 2018, 2019, 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.MethodHandle; import java.lang.invoke.MethodType; import java.lang.invoke.VarHandle; import java.util.Optional; /** * Represents a type which is <em>constable</em>. A constable type is one whose * values are constants that can be represented in the constant pool of a Java * classfile as described in JVMS 4.4, and whose instances can describe themselves * nominally as a {@link ConstantDesc}. * * <p>Some constable types have a native representation in the constant pool: * {@link String}, {@link Integer}, {@link Long}, {@link Float}, * {@link Double}, {@link Class}, {@link MethodType}, and {@link MethodHandle}. * The types {@link String}, {@link Integer}, {@link Long}, {@link Float}, * and {@link Double} serve as their own nominal descriptors; {@link Class}, * {@link MethodType}, and {@link MethodHandle} have corresponding nominal * descriptors {@link ClassDesc}, {@link MethodTypeDesc}, and {@link MethodHandleDesc}. * * <p>Other reference types can be constable if their instances can describe * themselves in nominal form as a {@link ConstantDesc}. Examples in the Java SE * Platform API are types that support Java language features such as {@link Enum}, * and runtime support classes such as {@link VarHandle}. These are typically * described with a {@link DynamicConstantDesc}, which describes dynamically * generated constants (JVMS 4.4.10). * * <p>The nominal form of an instance of a constable type is obtained via * {@link #describeConstable()}. A {@linkplain Constable} need * not be able to (or may choose not to) describe all its instances in the form of * a {@link ConstantDesc}; this method returns an {@link Optional} that can be * empty to indicate that a nominal descriptor could not be created for an instance. * (For example, {@link MethodHandle} will produce nominal descriptors for direct * method handles, but not necessarily those produced by method handle * combinators.) * @jvms 4.4 The Constant Pool * @jvms 4.4.10 The {@code CONSTANT_Dynamic_info} and {@code CONSTANT_InvokeDynamic_info} Structures * * @since 12 */ public interface Constable { /** * Returns an {@link Optional} containing the nominal descriptor for this * instance, if one can be constructed, or an empty {@link Optional} * if one cannot be constructed. * * @return An {@link Optional} containing the resulting nominal descriptor, * or an empty {@link Optional} if one cannot be constructed. */ Optional<? extends ConstantDesc> describeConstable(); }
⏎ java/lang/constant/Constable.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, 44311👍, 1💬
Popular Posts:
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
How to download and install JDK (Java Development Kit) 1.3? If you want to write Java applications, ...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
JDK 17 java.xml.jmod is the JMOD file for JDK 17 XML (eXtensible Markup Language) module. JDK 17 XML...
JasperReports, the world's most popular open source business intelligence and reporting engine and J...