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 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\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/MethodInfo.java
/*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.beans.introspect;
import com.sun.beans.TypeResolver;
import com.sun.beans.finder.MethodFinder;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
final class MethodInfo {
final Method method;
final Class<?> type;
MethodInfo(Method method, Class<?> type) {
this.method = method;
this.type = type;
}
MethodInfo(Method method, Type type) {
this.method = method;
this.type = resolve(method, type);
}
boolean isThrow(Class<?> exception) {
for (Class<?> type : this.method.getExceptionTypes()) {
if (type == exception) {
return true;
}
}
return false;
}
static Class<?> resolve(Method method, Type type) {
return TypeResolver.erase(TypeResolver.resolveInClass(method.getDeclaringClass(), type));
}
static List<Method> get(Class<?> type) {
List<Method> list = null;
if (type != null) {
boolean inaccessible = !Modifier.isPublic(type.getModifiers());
for (Method method : type.getMethods()) {
if (method.getDeclaringClass().equals(type)) {
if (inaccessible) {
try {
method = MethodFinder.findAccessibleMethod(method);
if (!method.getDeclaringClass().isInterface()) {
method = null; // ignore methods from superclasses
}
} catch (NoSuchMethodException exception) {
// commented out because of 6976577
// method = null; // ignore inaccessible methods
}
}
if (method != null) {
if (list == null) {
list = new ArrayList<>();
}
list.add(method);
}
}
}
}
if (list != null) {
list.sort(MethodOrder.instance);
return Collections.unmodifiableList(list);
}
return Collections.emptyList();
}
/**
* A comparator that defines a total order so that methods have the same
* name and identical signatures appear next to each others. The methods are
* sorted in such a way that methods which override each other will sit next
* to each other, with the overridden method last - e.g. is Integer getFoo()
* placed before Object getFoo().
**/
private static final class MethodOrder implements Comparator<Method> {
/*
* Code particularly was copied from com.sun.jmx.mbeanserver.MethodOrder
*/
@Override
public int compare(final Method a, final Method b) {
int cmp = a.getName().compareTo(b.getName());
if (cmp != 0) {
return cmp;
}
final Class<?>[] aparams = a.getParameterTypes();
final Class<?>[] bparams = b.getParameterTypes();
if (aparams.length != bparams.length) {
return aparams.length - bparams.length;
}
for (int i = 0; i < aparams.length; ++i) {
final Class<?> aparam = aparams[i];
final Class<?> bparam = bparams[i];
if (aparam == bparam) {
continue;
}
cmp = aparam.getName().compareTo(bparam.getName());
if (cmp != 0) {
return cmp;
}
}
final Class<?> aret = a.getReturnType();
final Class<?> bret = b.getReturnType();
if (aret == bret) {
return 0;
}
// Super type comes last: Integer, Number, Object
if (aret.isAssignableFrom(bret)) {
return 1;
}
return -1;
}
static final MethodOrder instance = new MethodOrder();
}
}
⏎ com/sun/beans/introspect/MethodInfo.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, ≈522🔥, 5💬
Popular Posts:
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...
Apache Avalon began in 1999 as the Java Apache Server Framework and in late 2002 separated from the ...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
JRE 5 sunjce_provider.jar is the JAR file for JRE 5 Sun JCE Provider, which provides implementations...
How to download and install JDK (Java Development Kit) 8? If you want to write Java applications, yo...