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:
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/javac/code/Directive.java
/*
* Copyright (c) 2009, 2018, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package com.sun.tools.javac.code;
import java.util.Collections;
import java.util.EnumSet;
import java.util.Locale;
import java.util.Set;
import javax.lang.model.element.ModuleElement;
import javax.lang.model.element.ModuleElement.DirectiveVisitor;
import com.sun.tools.javac.api.Messages;
import com.sun.tools.javac.code.Symbol.ClassSymbol;
import com.sun.tools.javac.code.Symbol.ModuleSymbol;
import com.sun.tools.javac.code.Symbol.PackageSymbol;
import com.sun.tools.javac.util.DefinedBy;
import com.sun.tools.javac.util.DefinedBy.Api;
import com.sun.tools.javac.util.List;
/**
* Root class for the directives that may appear in module compilation units.
*
* <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 abstract class Directive implements ModuleElement.Directive {
/** Flags for RequiresDirective. */
public enum RequiresFlag {
TRANSITIVE(0x0020),
STATIC_PHASE(0x0040),
SYNTHETIC(0x1000),
MANDATED(0x8000),
EXTRA(0x10000);
// overkill? move to ClassWriter?
public static int value(Set<RequiresFlag> s) {
int v = 0;
for (RequiresFlag f: s)
v |= f.value;
return v;
}
RequiresFlag(int value) {
this.value = value;
}
public final int value;
@Override
public String toString() {
return String.format("ACC_%s (0x%04x", name(), value);
}
}
/** Flags for ExportsDirective. */
public enum ExportsFlag {
SYNTHETIC(0x1000),
MANDATED(0x8000);
// overkill? move to ClassWriter?
public static int value(Set<ExportsFlag> s) {
int v = 0;
for (ExportsFlag f: s)
v |= f.value;
return v;
}
ExportsFlag(int value) {
this.value = value;
}
public final int value;
}
/**
* 'exports' Package ';'
* 'exports' Package 'to' ModuleList ';'
*/
public static class ExportsDirective extends Directive
implements ModuleElement.ExportsDirective {
public final PackageSymbol packge;
public final List<ModuleSymbol> modules;
public final Set<ExportsFlag> flags;
public ExportsDirective(PackageSymbol packge, List<ModuleSymbol> modules) {
this(packge, modules, EnumSet.noneOf(ExportsFlag.class));
}
public ExportsDirective(PackageSymbol packge, List<ModuleSymbol> modules, Set<ExportsFlag> flags) {
this.packge = packge;
this.modules = modules;
this.flags = flags;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ModuleElement.DirectiveKind getKind() {
return ModuleElement.DirectiveKind.EXPORTS;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public PackageSymbol getPackage() {
return packge;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public java.util.List<ModuleSymbol> getTargetModules() {
return modules == null
? null
: Collections.unmodifiableList(modules);
}
@Override
public String toString() {
if (modules == null)
return "Exports[" + packge + "]";
else
return "Exports[" + packge + ":" + modules + "]";
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public <R, P> R accept(DirectiveVisitor<R, P> v, P p) {
return v.visitExports(this, p);
}
}
/** Flags for OpensDirective. */
public enum OpensFlag {
SYNTHETIC(0x1000),
MANDATED(0x8000);
// overkill? move to ClassWriter?
public static int value(Set<OpensFlag> s) {
int v = 0;
for (OpensFlag f: s)
v |= f.value;
return v;
}
OpensFlag(int value) {
this.value = value;
}
public final int value;
}
/**
* 'opens' Package ';'
* 'opens' Package 'to' ModuleList ';'
*/
public static class OpensDirective extends Directive
implements ModuleElement.OpensDirective {
public final PackageSymbol packge;
public final List<ModuleSymbol> modules;
public final Set<OpensFlag> flags;
public OpensDirective(PackageSymbol packge, List<ModuleSymbol> modules) {
this(packge, modules, EnumSet.noneOf(OpensFlag.class));
}
public OpensDirective(PackageSymbol packge, List<ModuleSymbol> modules, Set<OpensFlag> flags) {
this.packge = packge;
this.modules = modules;
this.flags = flags;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ModuleElement.DirectiveKind getKind() {
return ModuleElement.DirectiveKind.OPENS;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public PackageSymbol getPackage() {
return packge;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public java.util.List<ModuleSymbol> getTargetModules() {
return modules == null
? null
: Collections.unmodifiableList(modules);
}
@Override
public String toString() {
if (modules == null)
return "Opens[" + packge + "]";
else
return "Opens[" + packge + ":" + modules + "]";
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public <R, P> R accept(DirectiveVisitor<R, P> v, P p) {
return v.visitOpens(this, p);
}
}
/**
* 'provides' ServiceName 'with' QualifiedIdentifer ';'
*/
public static class ProvidesDirective extends Directive
implements ModuleElement.ProvidesDirective {
public final ClassSymbol service;
public final List<ClassSymbol> impls;
public ProvidesDirective(ClassSymbol service, List<ClassSymbol> impls) {
this.service = service;
this.impls = impls;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ModuleElement.DirectiveKind getKind() {
return ModuleElement.DirectiveKind.PROVIDES;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ClassSymbol getService() {
return service;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public List<ClassSymbol> getImplementations() {
return impls;
}
@Override
public String toString() {
return "Provides[" + service + "," + impls + "]";
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public <R, P> R accept(DirectiveVisitor<R, P> v, P p) {
return v.visitProvides(this, p);
}
// TODO: delete?
@Override
public boolean equals(Object obj) {
if (!(obj instanceof ProvidesDirective)) {
return false;
}
ProvidesDirective other = (ProvidesDirective)obj;
return service == other.service && impls.equals(other.impls);
}
// TODO: delete?
@Override
public int hashCode() {
return service.hashCode() * 31 + impls.hashCode() * 37;
}
}
/**
* 'requires' ('static' | 'transitive')* ModuleName ';'
*/
public static class RequiresDirective extends Directive
implements ModuleElement.RequiresDirective {
public final ModuleSymbol module;
public final Set<RequiresFlag> flags;
public RequiresDirective(ModuleSymbol module) {
this(module, EnumSet.noneOf(RequiresFlag.class));
}
public RequiresDirective(ModuleSymbol module, Set<RequiresFlag> flags) {
this.module = module;
this.flags = flags;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ModuleElement.DirectiveKind getKind() {
return ModuleElement.DirectiveKind.REQUIRES;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public boolean isStatic() {
return flags.contains(RequiresFlag.STATIC_PHASE);
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public boolean isTransitive() {
return flags.contains(RequiresFlag.TRANSITIVE);
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ModuleSymbol getDependency() {
return module;
}
@Override
public String toString() {
return "Requires[" + flags + "," + module + "]";
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public <R, P> R accept(DirectiveVisitor<R, P> v, P p) {
return v.visitRequires(this, p);
}
}
/**
* 'uses' ServiceName ';'
*/
public static class UsesDirective extends Directive
implements ModuleElement.UsesDirective {
public final ClassSymbol service;
public UsesDirective(ClassSymbol service) {
this.service = service;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ModuleElement.DirectiveKind getKind() {
return ModuleElement.DirectiveKind.USES;
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public ClassSymbol getService() {
return service;
}
@Override
public String toString() {
return "Uses[" + service + "]";
}
@Override @DefinedBy(Api.LANGUAGE_MODEL)
public <R, P> R accept(DirectiveVisitor<R, P> v, P p) {
return v.visitUses(this, p);
}
// TODO: delete?
@Override
public boolean equals(Object obj) {
if (!(obj instanceof UsesDirective)) {
return false;
}
UsesDirective other = (UsesDirective)obj;
return service == other.service;
}
// TODO: delete?
@Override
public int hashCode() {
return service.hashCode() * 31;
}
}
}
⏎ com/sun/tools/javac/code/Directive.java
Or download all of them as a single archive file:
File name: jdk.compiler-11.0.1-src.zip File size: 1347269 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.crypto.cryptoki.jmod - Crypto KI Module
2020-08-13, ≈164🔥, 0💬
Popular Posts:
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
Apache Log4j Core Implementation provides the functional components of the logging system. Users are...
JBrowser Source Code Files are provided in the source package file. You can download JBrowser source...
HttpComponents Client Source Code Files are provided in the source package file, httpcomponents-clie...
commons-fileupload-1.3.3 -sources.jaris the source JAR file for Apache Commons FileUpload 1.3., whic...