Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
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 (309)
Collections:
Other Resources:
JDK 17 jdk.compiler.jmod - Compiler Tool
JDK 17 jdk.compiler.jmod is the JMOD file for JDK 17 Compiler tool, which can be invoked by the "javac" command.
JDK 17 Compiler tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.compiler.jmod.
JDK 17 Compiler tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Compiler source code files are stored in \fyicenter\jdk-17.0.5\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, 2021, 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' QualifiedIdentifier ';' */ 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) { return (obj instanceof ProvidesDirective directive) && service == directive.service && impls.equals(directive.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) { return (obj instanceof UsesDirective directive) && service == directive.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-17.0.5-src.zip File size: 1450209 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.crypto.cryptoki.jmod - Crypto KI Module
2023-10-15, 17873👍, 0💬
Popular Posts:
What Is jsse.jar (JDK 6) Java Secure Socket Extension? jsse.jar, Java Secure Socket Extension, is Ja...
Commons VFS provides a single API for accessing various different file systems. It presents a unifor...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...
ANTLR is a powerful parser generator for multiple programming languages including Java. ANTLR contai...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...