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:
JRE 8 rt.jar - com.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/org/apache/xerces/internal/impl/xs/opti/ElementImpl.java
/* * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 2001, 2002,2004 The Apache Software Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.sun.org.apache.xerces.internal.impl.xs.opti; import org.w3c.dom.Attr; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; /** * @xerces.internal * * @author Rahul Srivastava, Sun Microsystems Inc. * @author Sandy Gao, IBM * * @version $Id: ElementImpl.java,v 1.7 2010-11-01 04:40:01 joehw Exp $ */ public class ElementImpl extends DefaultElement { SchemaDOM schemaDOM; Attr[] attrs; int row; int col; int parentRow; int line; int column; int charOffset; String fAnnotation; String fSyntheticAnnotation; public ElementImpl(int line, int column, int offset) { row = -1; col = -1; parentRow = -1; nodeType = Node.ELEMENT_NODE; this.line = line; this.column = column; charOffset = offset; } public ElementImpl(int line, int column) { this(line, column, -1); } public ElementImpl(String prefix, String localpart, String rawname, String uri, int line, int column, int offset) { super(prefix, localpart, rawname, uri, Node.ELEMENT_NODE); row = -1; col = -1; parentRow = -1; this.line = line; this.column = column; charOffset = offset; } public ElementImpl(String prefix, String localpart, String rawname, String uri, int line, int column) { this(prefix, localpart, rawname, uri, line, column, -1); } // // org.w3c.dom.Node methods // public Document getOwnerDocument() { return schemaDOM; } public Node getParentNode() { return schemaDOM.relations[row][0]; } public boolean hasChildNodes() { if (parentRow == -1) { return false; } else { return true; } } public Node getFirstChild() { if (parentRow == -1) { return null; } return schemaDOM.relations[parentRow][1]; } public Node getLastChild() { if (parentRow == -1) { return null; } int i=1; for (; i<schemaDOM.relations[parentRow].length; i++) { if (schemaDOM.relations[parentRow][i] == null) { return schemaDOM.relations[parentRow][i-1]; } } if (i ==1) { i++; } return schemaDOM.relations[parentRow][i-1]; } public Node getPreviousSibling() { if (col == 1) { return null; } return schemaDOM.relations[row][col-1]; } public Node getNextSibling() { if (col == schemaDOM.relations[row].length-1) { return null; } return schemaDOM.relations[row][col+1]; } public NamedNodeMap getAttributes() { return new NamedNodeMapImpl(attrs); } public boolean hasAttributes() { return (attrs.length == 0 ? false : true); } // // org.w3c.dom.Element methods // public String getTagName() { return rawname; } public String getAttribute(String name) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(name)) { return attrs[i].getValue(); } } return ""; } public Attr getAttributeNode(String name) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(name)) { return attrs[i]; } } return null; } public String getAttributeNS(String namespaceURI, String localName) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getLocalName().equals(localName) && nsEquals(attrs[i].getNamespaceURI(), namespaceURI)) { return attrs[i].getValue(); } } return ""; } public Attr getAttributeNodeNS(String namespaceURI, String localName) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(localName) && nsEquals(attrs[i].getNamespaceURI(), namespaceURI)) { return attrs[i]; } } return null; } public boolean hasAttribute(String name) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(name)) { return true; } } return false; } public boolean hasAttributeNS(String namespaceURI, String localName) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(localName) && nsEquals(attrs[i].getNamespaceURI(), namespaceURI)) { return true; } } return false; } public void setAttribute(String name, String value) { for (int i=0; i<attrs.length; i++) { if (attrs[i].getName().equals(name)) { attrs[i].setValue(value); return; } } } /** Returns the line number. */ public int getLineNumber() { return line; } /** Returns the column number. */ public int getColumnNumber() { return column; } /** Returns the character offset. */ public int getCharacterOffset() { return charOffset; } public String getAnnotation() { return fAnnotation; } public String getSyntheticAnnotation() { return fSyntheticAnnotation; } /** * Compares two namespace URIs with an extra case for null entries */ private static boolean nsEquals(String nsURI_1, String nsURI_2) { if (nsURI_1 == null) { return (nsURI_2 == null); } else { return nsURI_1.equals(nsURI_2); } } }
⏎ com/sun/org/apache/xerces/internal/impl/xs/opti/ElementImpl.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 255044👍, 3💬
Popular Posts:
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...
Java Servlet 3.0 Specification API. JAR File Size and Download Location: File name: servlet-api.jar,...
JDK 11 jdk.internal.vm.ci.jmod is the JMOD file for JDK 11 Internal VM CI module. JDK 11 Internal VM...
Apache Log4j API provides the interface that applications should code to and provides the adapter co...