Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
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/corba/se/impl/dynamicany/DynEnumImpl.java
/*
* Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.corba.se.impl.dynamicany;
import org.omg.CORBA.TypeCode;
import org.omg.CORBA.Any;
import org.omg.CORBA.BAD_OPERATION;
import org.omg.CORBA.INTERNAL;
import org.omg.CORBA.TypeCodePackage.BadKind;
import org.omg.CORBA.TypeCodePackage.Bounds;
import org.omg.DynamicAny.*;
import org.omg.DynamicAny.DynAnyPackage.*;
import com.sun.corba.se.spi.orb.ORB ;
import com.sun.corba.se.spi.logging.CORBALogDomains ;
import com.sun.corba.se.impl.logging.ORBUtilSystemException ;
public class DynEnumImpl extends DynAnyBasicImpl implements DynEnum
{
//
// Instance variables
//
// This int and the any value are kept in sync at all times
int currentEnumeratorIndex = NO_INDEX;
//
// Constructors
//
private DynEnumImpl() {
this(null, (Any)null, false);
}
// The current position of a DynEnum is always -1.
protected DynEnumImpl(ORB orb, Any anAny, boolean copyValue) {
super(orb, anAny, copyValue);
index = NO_INDEX;
// The any doesn't have to be initialized. We have a default value in this case.
try {
currentEnumeratorIndex = any.extract_long();
} catch (BAD_OPERATION e) {
// _REVISIT_: Fix Me
currentEnumeratorIndex = 0;
any.type(any.type());
any.insert_long(0);
}
}
// Sets the current position to -1 and sets the value of the enumerator
// to the first enumerator value indicated by the TypeCode.
protected DynEnumImpl(ORB orb, TypeCode typeCode) {
super(orb, typeCode);
index = NO_INDEX;
currentEnumeratorIndex = 0;
any.insert_long(0);
}
//
// Utility methods
//
private int memberCount() {
int memberCount = 0;
try {
memberCount = any.type().member_count();
} catch (BadKind bad) {
}
return memberCount;
}
private String memberName(int i) {
String memberName = null;
try {
memberName = any.type().member_name(i);
} catch (BadKind bad) {
} catch (Bounds bounds) {
}
return memberName;
}
private int computeCurrentEnumeratorIndex(String value) {
int memberCount = memberCount();
for (int i=0; i<memberCount; i++) {
if (memberName(i).equals(value)) {
return i;
}
}
return NO_INDEX;
}
//
// DynAny interface methods
//
// Returns always 0 for DynEnum
public int component_count() {
return 0;
}
// Calling current_component on a DynAny that cannot have components,
// such as a DynEnum or an empty exception, raises TypeMismatch.
public org.omg.DynamicAny.DynAny current_component()
throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch
{
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
throw new TypeMismatch();
}
//
// DynEnum interface methods
//
// Returns the value of the DynEnum as an IDL identifier.
public String get_as_string () {
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
return memberName(currentEnumeratorIndex);
}
// Sets the value of the DynEnum to the enumerated value
// whose IDL identifier is passed in the value parameter.
// If value contains a string that is not a valid IDL identifier
// for the corresponding enumerated type, the operation raises InvalidValue.
public void set_as_string (String value)
throws org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
int newIndex = computeCurrentEnumeratorIndex(value);
if (newIndex == NO_INDEX) {
throw new InvalidValue();
}
currentEnumeratorIndex = newIndex;
any.insert_long(newIndex);
}
// Returns the value of the DynEnum as the enumerated values ordinal value.
// Enumerators have ordinal values 0 to n-1,
// as they appear from left to right in the corresponding IDL definition.
public int get_as_ulong () {
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
return currentEnumeratorIndex;
}
// Sets the value of the DynEnum as the enumerated values ordinal value.
// If value contains a value that is outside the range of ordinal values
// for the corresponding enumerated type, the operation raises InvalidValue.
public void set_as_ulong (int value)
throws org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (value < 0 || value >= memberCount()) {
throw new InvalidValue();
}
currentEnumeratorIndex = value;
any.insert_long(value);
}
}
⏎ com/sun/corba/se/impl/dynamicany/DynEnumImpl.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, ≈459🔥, 3💬
Popular Posts:
JDK 11 java.xml.jmod is the JMOD file for JDK 11 XML (eXtensible Markup Language) module. JDK 11 XML...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
Where to get the Java source code for Connector/J 8.0 Core API module? Java source code files for Co...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...