JDK 11 jdk.compiler.jmod - Compiler Tool

JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "javac" command.

JDK 11 Compiler tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.compiler.jmod.

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

JDK 11 Compiler source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.compiler.

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

✍: FYIcenter

com/sun/tools/sjavac/options/SourceLocation.java

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

package com.sun.tools.sjavac.options;

import java.io.IOException;
import java.nio.file.Path;
import java.util.List;
import java.util.Map;
import java.util.Set;

import com.sun.tools.sjavac.Log;
import com.sun.tools.sjavac.Module;
import com.sun.tools.sjavac.ProblemException;
import com.sun.tools.sjavac.Source;

/**
 * Represents a directory to be used for input to sjavac. (For instance a
 * sourcepath or classpath.)
 *
 *  <p><b>This is NOT part of any supported API.
 *  If you write code that depends on this, you do so at your own risk.
 *  This code and its internal interfaces are subject to change or
 *  deletion without notice.</b>
 */
public class SourceLocation {

    // Path to the root directory
    private Path path;

    // Package include / exclude patterns and file includes / excludes.
    List<String> includes, excludes;

    public SourceLocation(Path path,
                          List<String> includes,
                          List<String> excludes) {
        this.path = path;
        this.includes = includes;
        this.excludes = excludes;
    }


    /**
     * Finds all files with the given suffix that pass the include / exclude
     * filters in this source location.
     *
     * @param suffixes The set of suffixes to search for
     * @param foundFiles The map in which to store the found files
     * @param foundModules The map in which to store the found modules
     * @param currentModule The current module
     * @param permitSourcesInDefaultPackage true if sources in default package
     *                                      are to be permitted
     * @param inLinksrc true if in link source
     */
    public void findSourceFiles(Set<String> suffixes,
                                Map<String, Source> foundFiles,
                                Map<String, Module> foundModules,
                                Module currentModule,
                                boolean permitSourcesInDefaultPackage,
                                boolean inLinksrc)
                                        throws IOException {
        try {
            Source.scanRoot(path.toFile(),
                            suffixes,
                            excludes,
                            includes,
                            foundFiles,
                            foundModules,
                            currentModule,
                            permitSourcesInDefaultPackage,
                            false,
                            inLinksrc);
        } catch (ProblemException e) {
            e.printStackTrace();
        }
    }
    /** Get the root directory of this source location */
    public Path getPath() {
        return path;
    }

    /** Get the package include patterns */
    public List<String> getIncludes() {
        return includes;
    }

    /** Get the package exclude patterns */
    public List<String> getExcludes() {
        return excludes;
    }

    @Override
    public String toString() {
        return String.format("%s[\"%s\", includes: %s, excludes: %s]",
                             getClass().getSimpleName(), path, includes, excludes);
    }
}

com/sun/tools/sjavac/options/SourceLocation.java

 

JDK 11 jdk.crypto.cryptoki.jmod - Crypto KI Module

JDK 11 jdk.charsets.jmod - Charsets Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2018-11-09, 8122👍, 0💬