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/regexp/internal/REProgram.java
/* * Copyright (c) 2007, 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Copyright 1999-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.regexp.internal; import java.io.Serializable; /** * A class that holds compiled regular expressions. This is exposed mainly * for use by the recompile utility (which helps you produce precompiled * REProgram objects). You should not otherwise need to work directly with * this class. * * @see RE * @see RECompiler * * @author <a href="mailto:jonl@muppetlabs.com">Jonathan Locke</a> */ public class REProgram implements Serializable { static final int OPT_HASBACKREFS = 1; char[] instruction; // The compiled regular expression 'program' int lenInstruction; // The amount of the instruction buffer in use char[] prefix; // Prefix string optimization int flags; // Optimization flags (REProgram.OPT_*) int maxParens = -1; /** * Constructs a program object from a character array * @param instruction Character array with RE opcode instructions in it */ public REProgram(char[] instruction) { this(instruction, instruction.length); } /** * Constructs a program object from a character array * @param parens Count of parens in the program * @param instruction Character array with RE opcode instructions in it */ public REProgram(int parens, char[] instruction) { this(instruction, instruction.length); this.maxParens = parens; } /** * Constructs a program object from a character array * @param instruction Character array with RE opcode instructions in it * @param lenInstruction Amount of instruction array in use */ public REProgram(char[] instruction, int lenInstruction) { setInstructions(instruction, lenInstruction); } /** * Returns a copy of the current regular expression program in a character * array that is exactly the right length to hold the program. If there is * no program compiled yet, getInstructions() will return null. * @return A copy of the current compiled RE program */ public char[] getInstructions() { // Ensure program has been compiled! if (lenInstruction != 0) { // Return copy of program char[] ret = new char[lenInstruction]; System.arraycopy(instruction, 0, ret, 0, lenInstruction); return ret; } return null; } /** * Sets a new regular expression program to run. It is this method which * performs any special compile-time search optimizations. Currently only * two optimizations are in place - one which checks for backreferences * (so that they can be lazily allocated) and another which attempts to * find an prefix anchor string so that substantial amounts of input can * potentially be skipped without running the actual program. * @param instruction Program instruction buffer * @param lenInstruction Length of instruction buffer in use */ public void setInstructions(char[] instruction, int lenInstruction) { // Save reference to instruction array this.instruction = instruction; this.lenInstruction = lenInstruction; // Initialize other program-related variables flags = 0; prefix = null; // Try various compile-time optimizations if there's a program if (instruction != null && lenInstruction != 0) { // If the first node is a branch if (lenInstruction >= RE.nodeSize && instruction[0 + RE.offsetOpcode] == RE.OP_BRANCH) { // to the end node int next = instruction[0 + RE.offsetNext]; if (instruction[next + RE.offsetOpcode] == RE.OP_END) { // and the branch starts with an atom if (lenInstruction >= (RE.nodeSize * 2) && instruction[RE.nodeSize + RE.offsetOpcode] == RE.OP_ATOM) { // then get that atom as an prefix because there's no other choice int lenAtom = instruction[RE.nodeSize + RE.offsetOpdata]; prefix = new char[lenAtom]; System.arraycopy(instruction, RE.nodeSize * 2, prefix, 0, lenAtom); } } } BackrefScanLoop: // Check for backreferences for (int i = 0; i < lenInstruction; i += RE.nodeSize) { switch (instruction[i + RE.offsetOpcode]) { case RE.OP_ANYOF: i += (instruction[i + RE.offsetOpdata] * 2); break; case RE.OP_ATOM: i += instruction[i + RE.offsetOpdata]; break; case RE.OP_BACKREF: flags |= OPT_HASBACKREFS; break BackrefScanLoop; } } } } }
⏎ com/sun/org/apache/regexp/internal/REProgram.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, 252562👍, 3💬
Popular Posts:
io.jar is a component in iText Java library to provide input/output functionalities. iText Java libr...
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
Jaxen, Release 1.1.1, is an open source XPath library written in Java. It is adaptable to many diffe...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
What Is poi-contrib-3.5.jar? poi-contrib-3.5.jar is one of the JAR files for Apache POI 3.5, which p...