JDK 11 jdk.hotspot.agent.jmod - Hotspot Agent Module

JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module.

JDK 11 Hotspot Agent module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.hotspot.agent.jmod.

JDK 11 Hotspot Agent module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.

JDK 11 Hotspot Agent module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.hotspot.agent.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

sun/jvm/hotspot/utilities/soql/JSJavaKlass.java

/*
 * Copyright (c) 2004, 2007, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package sun.jvm.hotspot.utilities.soql;

import java.util.*;
import sun.jvm.hotspot.oops.*;
import sun.jvm.hotspot.utilities.*;

/**
   This is JavaScript wrapper for Klass.
*/
public abstract class JSJavaKlass {
    private static final int FIELD_SUPER_CLASS    = 0;
    private static final int FIELD_NAME           = 1;
    private static final int FIELD_IS_ARRAY_CLASS = 2;
    private static final int FIELD_UNDEFINED      = -1;

    public JSJavaKlass(Klass klass, JSJavaFactory factory) {
        this.factory = factory;
        this.klass = klass;
    }

    public final Klass getKlass() {
        return klass;
    }

    public JSJavaClass getJSJavaClass() {
        return (JSJavaClass) factory.newJSJavaObject(getKlass().getJavaMirror());
    }

    public Object getMetaClassFieldValue(String name) {
        int fieldID = getFieldID(name);
        switch (fieldID) {
        case FIELD_SUPER_CLASS: {
            JSJavaKlass jk = factory.newJSJavaKlass(getKlass().getSuper());
            return (jk != null) ? jk.getJSJavaClass() : null;
        }
        case FIELD_NAME:
            return getName();
        case FIELD_IS_ARRAY_CLASS:
            return Boolean.valueOf(isArray());
        case FIELD_UNDEFINED:
        default:
            return ScriptObject.UNDEFINED;
        }
    }

    public boolean hasMetaClassField(String name) {
        return getFieldID(name) != FIELD_UNDEFINED;
    }


    public String[] getMetaClassFieldNames() {
        String[] res = { "name", "superClass", "isArrayClass" };
        return res;
    }

    public abstract String getName();
    public abstract boolean isArray();

    //-- Internals only below this point
    private static Map fields = new HashMap();
    private static void addField(String name, int fieldId) {
        fields.put(name, new Integer(fieldId));
    }

    private static int getFieldID(String name) {
        Integer res = (Integer) fields.get(name);
        return (res != null)? res.intValue() : FIELD_UNDEFINED;
    }

    static {
        addField("base", FIELD_SUPER_CLASS);
        addField("baseClass", FIELD_SUPER_CLASS);
        addField("superClass", FIELD_SUPER_CLASS);
        addField("name", FIELD_NAME);
        addField("isArrayClass", FIELD_IS_ARRAY_CLASS);
    }

    protected final JSJavaFactory factory;
    private final Klass klass;
}

sun/jvm/hotspot/utilities/soql/JSJavaKlass.java

 

Or download all of them as a single archive file:

File name: jdk.hotspot.agent-11.0.1-src.zip
File size: 1243786 bytes
Release date: 2018-11-04
Download 

 

JDK 11 jdk.httpserver.jmod - HTTP Server Module

JDK 11 jdk.editpad.jmod - Edit Pad Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2020-02-29, 130376👍, 0💬