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 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/decoder/MethodElementHandler.java
/* * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.beans.decoder; import com.sun.beans.finder.MethodFinder; import java.lang.reflect.Method; import sun.reflect.misc.MethodUtil; /** * This class is intended to handle <method> element. * It describes invocation of the method. * The {@code name} attribute denotes * the name of the method to invoke. * If the {@code class} attribute is specified * this element invokes static method of specified class. * The inner elements specifies the arguments of the method. * For example:<pre> * <method name="valueOf" class="java.lang.Long"> * <string>10</string> * </method></pre> * is equivalent to {@code Long.valueOf("10")} in Java code. * <p>The following attributes are supported: * <dl> * <dt>name * <dd>the method name * <dt>class * <dd>the type of object for instantiation * <dt>id * <dd>the identifier of the variable that is intended to store the result * </dl> * * @since 1.7 * * @author Sergey A. Malenkov */ final class MethodElementHandler extends NewElementHandler { private String name; /** * Parses attributes of the element. * The following attributes are supported: * <dl> * <dt>name * <dd>the method name * <dt>class * <dd>the type of object for instantiation * <dt>id * <dd>the identifier of the variable that is intended to store the result * </dl> * * @param name the attribute name * @param value the attribute value */ @Override public void addAttribute(String name, String value) { if (name.equals("name")) { // NON-NLS: the attribute name this.name = value; } else { super.addAttribute(name, value); } } /** * Returns the result of method execution. * * @param type the base class * @param args the array of arguments * @return the value of this element * @throws Exception if calculation is failed */ @Override protected ValueObject getValueObject(Class<?> type, Object[] args) throws Exception { Object bean = getContextBean(); Class<?>[] types = getArgumentTypes(args); Method method = (type != null) ? MethodFinder.findStaticMethod(type, this.name, types) : MethodFinder.findMethod(bean.getClass(), this.name, types); if (method.isVarArgs()) { args = getArguments(args, method.getParameterTypes()); } Object value = MethodUtil.invoke(method, bean, args); return method.getReturnType().equals(void.class) ? ValueObjectImpl.VOID : ValueObjectImpl.create(value); } }
⏎ com/sun/beans/decoder/MethodElementHandler.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, 160132👍, 5💬
Popular Posts:
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...
XOM™ is a new XML object model. It is an open source (LGPL), tree-based API for processing XML with ...