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.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/beans/introspect/EventSetInfo.java
/* * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.beans.introspect; import java.lang.reflect.Method; import java.lang.reflect.Modifier; import java.util.Collections; import java.util.EventListener; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.TooManyListenersException; import java.util.TreeMap; public final class EventSetInfo { private MethodInfo add; private MethodInfo remove; private MethodInfo get; private EventSetInfo() { } private boolean initialize() { if ((this.add == null) || (this.remove == null) || (this.remove.type != this.add.type)) { return false; } if ((this.get != null) && (this.get.type != this.add.type)) { this.get = null; } return true; } public Class<?> getListenerType() { return this.add.type; } public Method getAddMethod() { return this.add.method; } public Method getRemoveMethod() { return this.remove.method; } public Method getGetMethod() { return (this.get == null) ? null : this.get.method; } public boolean isUnicast() { // if the adder method throws the TooManyListenersException // then it is an Unicast event source return this.add.isThrow(TooManyListenersException.class); } private static MethodInfo getInfo(MethodInfo info, Method method, int prefix, int postfix) { Class<?> type = (postfix > 0) ? MethodInfo.resolve(method, method.getGenericReturnType()).getComponentType() : MethodInfo.resolve(method, method.getGenericParameterTypes()[0]); if ((type != null) && EventListener.class.isAssignableFrom(type)) { String name = method.getName(); if (prefix + postfix < name.length()) { if (type.getName().endsWith(name.substring(prefix, name.length() - postfix))) { if ((info == null) || info.type.isAssignableFrom(type)) { return new MethodInfo(method, type); } } } } return info; } private static EventSetInfo getInfo(Map<String,EventSetInfo> map, String key) { EventSetInfo info = map.get(key); if (info == null) { info = new EventSetInfo(); map.put(key, info); } return info; } public static Map<String,EventSetInfo> get(Class<?> type) { List<Method> methods = ClassInfo.get(type).getMethods(); if (methods.isEmpty()) { return Collections.emptyMap(); } Map<String,EventSetInfo> map = new TreeMap<>(); for (Method method : ClassInfo.get(type).getMethods()) { if (!Modifier.isStatic(method.getModifiers())) { Class<?> returnType = method.getReturnType(); String name = method.getName(); switch (method.getParameterCount()) { case 1: if ((returnType == void.class) && name.endsWith("Listener")) { if (name.startsWith("add")) { EventSetInfo info = getInfo(map, name.substring(3, name.length() - 8)); info.add = getInfo(info.add, method, 3, 0); } else if (name.startsWith("remove")) { EventSetInfo info = getInfo(map, name.substring(6, name.length() - 8)); info.remove = getInfo(info.remove, method, 6, 0); } } break; case 0: if (returnType.isArray() && name.startsWith("get") && name.endsWith("Listeners")) { EventSetInfo info = getInfo(map, name.substring(3, name.length() - 9)); info.get = getInfo(info.get, method, 3, 1); } break; } } } Iterator<EventSetInfo> iterator = map.values().iterator(); while (iterator.hasNext()) { if (!iterator.next().initialize()) { iterator.remove(); } } return !map.isEmpty() ? Collections.unmodifiableMap(map) : Collections.emptyMap(); } }
⏎ com/sun/beans/introspect/EventSetInfo.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 33425👍, 0💬
Popular Posts:
What Is poi-3.5.jar - Part 2? poi-3.5.jar is one of the JAR files for Apache POI 3.5, which provides...
The Digester package lets you configure an XML -> Java object mapping module, which triggers certain...
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module. JDK 17 Desktop module compiled ...
How to download and install JDK (Java Development Kit) 6? If you want to write Java applications, yo...
What Is jaxb-api-2.1.6.jar? Java Architecture for XML Binding (JAXB) is a Java API that allows Java ...