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/ArrayElementHandler.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 java.lang.reflect.Array; /** * This class is intended to handle <array> element, * that is used to array creation. * The {@code length} attribute specifies the length of the array. * The {@code class} attribute specifies the elements type. * The {@link Object} type is used by default. * For example:<pre> * <array length="10"/></pre> * is equivalent to {@code new Component[10]} in Java code. * The {@code set} and {@code get} methods, * as defined in the {@link java.util.List} interface, * can be used as if they could be applied to array instances. * The {@code index} attribute can thus be used with arrays. * For example:<pre> * <array length="3" class="java.lang.String"> * <void index="1"> * <string>Hello, world</string> * </void> * </array></pre> * is equivalent to the following Java code:<pre> * String[] s = new String[3]; * s[1] = "Hello, world";</pre> * It is possible to omit the {@code length} attribute and * specify the values directly, without using {@code void} tags. * The length of the array is equal to the number of values specified. * For example:<pre> * <array id="array" class="int"> * <int>123</int> * <int>456</int> * </array></pre> * is equivalent to {@code int[] array = {123, 456}} in Java code. * <p>The following attributes are supported: * <dl> * <dt>length * <dd>the array length * <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 ArrayElementHandler extends NewElementHandler { private Integer length; /** * Parses attributes of the element. * The following attributes are supported: * <dl> * <dt>length * <dd>the array length * <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("length")) { // NON-NLS: the attribute name this.length = Integer.valueOf(value); } else { super.addAttribute(name, value); } } /** * Calculates the value of this element * if the lentgh attribute is set. */ @Override public void startElement() { if (this.length != null) { getValueObject(); } } /** * Tests whether the value of this element can be used * as an argument of the element that contained in this one. * * @return {@code true} if the value of this element can be used * as an argument of the element that contained in this one, * {@code false} otherwise */ @Override protected boolean isArgument() { return true; // hack for compatibility } /** * Creates an instance of the array. * * @param type the base class * @param args the array of arguments * @return the value of this element */ @Override protected ValueObject getValueObject(Class<?> type, Object[] args) { if (type == null) { type = Object.class; } if (this.length != null) { return ValueObjectImpl.create(Array.newInstance(type, this.length)); } Object array = Array.newInstance(type, args.length); for (int i = 0; i < args.length; i++) { Array.set(array, i, args[i]); } return ValueObjectImpl.create(array); } }
⏎ com/sun/beans/decoder/ArrayElementHandler.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, 193083👍, 5💬
Popular Posts:
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "jav...
JDK 11 jdk.charsets.jmod is the JMOD file for JDK 11 Charsets module. JDK 11 Charsets module compile...
What Is log4j-1.2.13.jar? I got the JAR file from logging-log4j-1.2.13.zip .log4j-1.2.13.jar is the ...
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...