JDK 11 jdk.internal.opt.jmod - Internal Opt Module

JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module.

JDK 11 Internal Opt module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.internal.opt.jmod.

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

JDK 11 Internal Opt module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.internal.opt.

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

✍: FYIcenter

jdk/internal/joptsimple/util/PathProperties.java

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

package jdk.internal.joptsimple.util;

import java.nio.file.Files;
import java.nio.file.Path;

/**
 * Enum for checking common conditions of files and directories.
 *
 * @see jdk.internal.joptsimple.util.PathConverter
 */
public enum PathProperties {
    FILE_EXISTING( "file.existing" ) {
        @Override
        boolean accept( Path path ) {
            return Files.isRegularFile( path );
        }
    },
    DIRECTORY_EXISTING( "directory.existing" ) {
        @Override
        boolean accept( Path path ) {
            return Files.isDirectory( path );
        }
    },
    NOT_EXISTING( "file.not.existing" ) {
        @Override
        boolean accept( Path path ) {
            return Files.notExists( path );
        }
    },
    FILE_OVERWRITABLE( "file.overwritable" ) {
        @Override
        boolean accept( Path path ) {
            return FILE_EXISTING.accept( path ) && WRITABLE.accept( path );
        }
    },
    READABLE( "file.readable" ) {
        @Override
        boolean accept( Path path ) {
            return Files.isReadable( path );
        }
    },
    WRITABLE( "file.writable" ) {
        @Override
        boolean accept( Path path ) {
            return Files.isWritable( path );
        }
    };

    private final String messageKey;

    private PathProperties( String messageKey ) {
        this.messageKey = messageKey;
    }

    abstract boolean accept( Path path );

    String getMessageKey() {
        return messageKey;
    }
}

jdk/internal/joptsimple/util/PathProperties.java

 

JDK 11 jdk.internal.vm.ci.jmod - Internal VM CI Module

JDK 11 jdk.internal.le.jmod - Internal Line Editing Module

Download and Use JDK 11

⇑⇑ FAQ for JDK (Java Development Kit)

2018-11-09, 4094👍, 0💬