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.jfr.jmod - JFR Module
JDK 17 jdk.jfr.jmod is the JMOD file for JDK 17 JFR module.
JDK 17 JFR module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jfr.jmod.
JDK 17 JFR module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JFR module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jfr.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/jfr/internal/jfc/model/XmlSelection.java
/*
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.jfr.internal.jfc.model;
import java.util.List;
import java.util.StringJoiner;
// Corresponds to <selection>
final class XmlSelection extends XmlInput {
@Override
public String getOptionSyntax() {
StringJoiner sj = new StringJoiner("|", "<", ">");
for (XmlOption option : getOptions()) {
sj.add(option.getName());
}
return getName() + "=" + sj.toString();
}
@Override
public void configure(String value) {
var valid = getOptions().stream().map(XmlOption::getName);
Utilities.checkValid(value, valid.toArray());
setAttribute("default", value);
notifyListeners();
}
@Override
public void configure(UserInterface ui) throws AbortException {
XmlOption selected = getSelected();
if (selected == null) {
return;
}
String label = getLabel();
ui.println();
ui.println(label + ": " + selected.getLabel() + " (default)");
int index = 1;
List<XmlOption> options = getOptions();
for (XmlOption s : options) {
ui.println(index + ". " + s.getLabel());
index++;
}
while (true) {
String line = ui.readLine();
if (line.isBlank()) {
ui.println("Using default: " + selected.getLabel());
return;
}
try {
int s = Integer.parseInt(line) - 1;
if (s >= 0 && s < options.size()) {
XmlOption o = options.get(s);
ui.println("Using: " + o.getLabel());
configure(o.getName());
return;
}
ui.println("Not in range.");
} catch (NumberFormatException nfe) {
ui.println("Must enter a number, or ENTER to select default.");
}
}
}
@Override
protected List<String> attributes() {
return List.of("name", "label", "default");
}
public String getDefault() {
return attribute("default");
}
public List<XmlOption> getOptions() {
return elements(XmlOption.class);
}
@Override
protected List<Constraint> constraints() {
return List.of(Constraint.atLeast(XmlOption.class, 1));
}
@Override
protected Result evaluate() {
return Result.of(getSelected().getContent());
}
private XmlOption getSelected() {
List<XmlOption> options = getOptions();
for (XmlOption optionElement : options) {
if (getDefault().equals(optionElement.getName())) {
return optionElement;
}
}
return options.isEmpty() ? null : options.get(0);
}
}
⏎ jdk/jfr/internal/jfc/model/XmlSelection.java
Or download all of them as a single archive file:
File name: jdk.jfr-17.0.5-src.zip File size: 363343 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jlink.jmod - JLink Tool
2023-04-17, ≈58🔥, 0💬
Popular Posts:
Where to get the Java source code for Connector/J 8.0 User Impl module? Java source code files for C...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
How to download and install JDK (Java Development Kit) 7? If you want to write Java applications, yo...
pache Derby is an open source relational database implemented entirely in Java and available under t...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...