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
⏎ javax/swing/text/html/parser/Element.java
/* * Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.text.html.parser; import java.util.Hashtable; import java.util.BitSet; import java.io.*; import sun.awt.AppContext; /** * An element as described in a DTD using the ELEMENT construct. * This is essential the description of a tag. It describes the * type, content model, attributes, attribute types etc. It is used * to correctly parse a document by the Parser. * * @see DTD * @see AttributeList * @author Arthur van Hoff */ @SuppressWarnings("serial") // Same-version serialization only public final class Element implements DTDConstants, Serializable { /** * The element index */ public int index; /** * The name of the element */ public String name; /** * {@code true} if the start tag can be omitted */ public boolean oStart; /** * {@code true} if the end tag can be omitted */ public boolean oEnd; /** * The set of elements that can occur inside the element */ public BitSet inclusions; /** * The set of elements that must not occur inside the element */ public BitSet exclusions; /** * The element type */ public int type = ANY; /** * The content model */ public ContentModel content; /** * The attributes */ public AttributeList atts; /** * A field to store user data. Mostly used to store * style sheets. */ public Object data; Element() { } /** * Create a new element. * * @param name the name of the element * @param index the index */ Element(String name, int index) { this.name = name; this.index = index; if (index > getMaxIndex()) { AppContext.getAppContext().put(MAX_INDEX_KEY, index); } } private static final Object MAX_INDEX_KEY = new Object(); static int getMaxIndex() { Integer value = (Integer) AppContext.getAppContext().get(MAX_INDEX_KEY); return (value != null) ? value.intValue() : 0; } /** * Get the name of the element. * * @return the name of the element */ public String getName() { return name; } /** * Return true if the start tag can be omitted. * * @return {@code true} if the start tag can be omitted */ public boolean omitStart() { return oStart; } /** * Return true if the end tag can be omitted. * * @return {@code true} if the end tag can be omitted */ public boolean omitEnd() { return oEnd; } /** * Get type. * * @return the type of the element */ public int getType() { return type; } /** * Get content model * * @return the content model */ public ContentModel getContent() { return content; } /** * Get the attributes. * * @return the {@code AttributeList} specifying the element */ public AttributeList getAttributes() { return atts; } /** * Get index. * * @return the element index */ public int getIndex() { return index; } /** * Check if empty * * @return true if the current element is empty */ public boolean isEmpty() { return type == EMPTY; } /** * Convert to a string. * * @return a string representation for the given {@code Element} instance */ public String toString() { return name; } /** * Get an attribute by name. * * @param name the attribute name * * @return the {@code AttributeList} for the given {@code name} */ public AttributeList getAttribute(String name) { for (AttributeList a = atts ; a != null ; a = a.next) { if (a.name.equals(name)) { return a; } } return null; } /** * Get an attribute by value. * * @param value the string representation of value * * @return the {@code AttributeList} for the given {@code value} */ public AttributeList getAttributeByValue(String value) { for (AttributeList a = atts ; a != null ; a = a.next) { if ((a.values != null) && a.values.contains(value)) { return a; } } return null; } static Hashtable<String, Integer> contentTypes = new Hashtable<String, Integer>(); static { contentTypes.put("CDATA", Integer.valueOf(CDATA)); contentTypes.put("RCDATA", Integer.valueOf(RCDATA)); contentTypes.put("EMPTY", Integer.valueOf(EMPTY)); contentTypes.put("ANY", Integer.valueOf(ANY)); } /** * Converts {@code nm} to type. Returns appropriate DTDConstants * if the {@code nm} is equal to CDATA, RCDATA, EMPTY or ANY, 0 otherwise. * * @param nm a name * @return appropriate DTDConstants if the {@code nm} is equal to * CDATA, RCDATA, EMPTY or ANY, 0 otherwise. */ public static int name2type(String nm) { Integer val = contentTypes.get(nm); return (val != null) ? val.intValue() : 0; } }
⏎ javax/swing/text/html/parser/Element.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, 195302👍, 5💬
Popular Posts:
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
Guava is a suite of core and expanded libraries that include utility classes, google's collections, ...