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 - javax.* 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 javax.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ javax/management/InstanceOfQueryExp.java
/*
* Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package javax.management;
/**
* This class is used by the query building mechanism for isInstanceOf expressions.
* @serial include
*
* @since 1.6
*/
class InstanceOfQueryExp extends QueryEval implements QueryExp {
/* Serial version */
private static final long serialVersionUID = -1081892073854801359L;
/**
* @serial The {@link StringValueExp} returning the name of the class
* of which selected MBeans should be instances.
*/
private StringValueExp classNameValue;
/**
* Creates a new InstanceOfExp with a specific class name.
* @param classNameValue The {@link StringValueExp} returning the name of
* the class of which selected MBeans should be instances.
*/
// We are using StringValueExp here to be consistent with other queries,
// although we should actually either use a simple string (the classname)
// or a ValueExp - which would allow more complex queries - like for
// instance evaluating the class name from an AttributeValueExp.
// As it stands - using StringValueExp instead of a simple constant string
// doesn't serve any useful purpose besides offering a consistent
// look & feel.
public InstanceOfQueryExp(StringValueExp classNameValue) {
if (classNameValue == null) {
throw new IllegalArgumentException("Null class name.");
}
this.classNameValue = classNameValue;
}
/**
* Returns the class name.
* @returns The {@link StringValueExp} returning the name of
* the class of which selected MBeans should be instances.
*/
public StringValueExp getClassNameValue() {
return classNameValue;
}
/**
* Applies the InstanceOf on a MBean.
*
* @param name The name of the MBean on which the InstanceOf will be applied.
*
* @return True if the MBean specified by the name is instance of the class.
* @exception BadAttributeValueExpException
* @exception InvalidApplicationException
* @exception BadStringOperationException
* @exception BadBinaryOpValueExpException
*/
public boolean apply(ObjectName name)
throws BadStringOperationException,
BadBinaryOpValueExpException,
BadAttributeValueExpException,
InvalidApplicationException {
// Get the class name value
final StringValueExp val;
try {
val = (StringValueExp) classNameValue.apply(name);
} catch (ClassCastException x) {
// Should not happen - unless someone wrongly implemented
// StringValueExp.apply().
final BadStringOperationException y =
new BadStringOperationException(x.toString());
y.initCause(x);
throw y;
}
// Test whether the MBean is an instance of that class.
try {
return getMBeanServer().isInstanceOf(name, val.getValue());
} catch (InstanceNotFoundException infe) {
return false;
}
}
/**
* Returns a string representation of this InstanceOfQueryExp.
* @return a string representation of this InstanceOfQueryExp.
*/
public String toString() {
return "InstanceOf " + classNameValue.toString();
}
}
⏎ javax/management/InstanceOfQueryExp.java
Or download all of them as a single archive file:
File name: jre-rt-javax-1.8.0_191-src.zip File size: 5381005 bytes Release date: 2018-10-28 Download
⇒ JRE 8 rt.jar - org.* Package Source Code
2024-07-16, ≈607🔥, 7💬
Popular Posts:
JDK 11 java.security.jgss.jmod is the JMOD file for JDK 11 Security JGSS (Java Generic Security Serv...
Guava is a suite of core and expanded libraries that include utility classes, google's collections, ...
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
JAX-RPC is an API for building Web services and clients that used remote procedure calls (RPC) and X...
JDK 17 jdk.jdeps.jmod is the JMOD file for JDK 17 JDeps tool, which can be invoked by the "jdeps" co...