/openjdk10/jdk/src/java.base/share/classes/java/lang/ |
H A D | AssertionStatusDirectives.java | 68 String[] packages; field in class:AssertionStatusDirectives 71 * A parallel array to {@code packages}, indicating whether each 74 * package-tree named by {@code packages[i]} should have assertions 77 * elements as {@code packages}. 81 * string {@code s} appears multiple times in the {@code packages} array 83 * {@code packages[i].equals(s)}, then {@code packageEnabled[i]}
|
/openjdk10/jdk/src/java.desktop/share/classes/com/sun/beans/finder/ |
H A D | InstanceFinder.java | 42 private volatile String[] packages; field in class:InstanceFinder 44 InstanceFinder(Class<? extends T> type, boolean allow, String suffix, String... packages) { argument 48 this.packages = packages.clone(); 52 return this.packages.clone(); 55 public void setPackages(String... packages) { argument 56 this.packages = (packages != null) && (packages.length > 0) 57 ? packages [all...] |
/openjdk10/jdk/test/tools/jlink/plugins/SystemModuleDescriptors/src/m3/p3/ |
H A D | Main.java | 64 if (md.packages().size() != 1 || !md.packages().contains("p4")) { 65 throw new RuntimeException("unexpected m4 packages: " + md.packages());
|
/openjdk10/jdk/make/src/classes/build/tools/jigsaw/ |
H A D | AddPackagesAttribute.java | 68 Set<String> packages = omref.get().descriptor().packages(); 69 addPackagesAttribute(mi, packages); 76 static void addPackagesAttribute(Path mi, Set<String> packages) throws IOException { argument 80 extender.packages(packages);
|
H A D | ListPackages.java | 109 Stream<String> pkgs = listPackages.packages().stream(); 124 private static void write(PrintStream pw, Stream<String> packages) { argument 127 packages.sorted().forEach(pw::println); 130 private final Set<String> packages = new HashSet<>(); field in class:ListPackages 133 packages.addAll(list(p)); 137 Set<String> packages() { method in class:ListPackages 138 return packages; 157 Path root = fs.getPath("packages"); 173 Set<String> packages = new HashSet<>(); 179 .forEach(packages [all...] |
/openjdk10/langtools/src/jdk.compiler/share/classes/com/sun/tools/sjavac/ |
H A D | BuildState.java | 49 private Map<String,Package> packages = new HashMap<>(); field in class:BuildState 52 // Map from package to a set of packages that depend on said package. 56 public Map<String,Package> packages() { return packages; } method in class:BuildState 87 * Store references to all packages, sources and artifacts for all modules 95 // Extract all the found packages. 97 for (Map.Entry<String,Package> j : i.packages().entrySet()) { 98 Package p = packages.get(j.getKey()); 99 // Check that no two different packages are stored under same name. 103 packages [all...] |
H A D | Module.java | 37 * The module is the root of a set of packages/sources/artifacts. 48 private Map<String,Package> packages = new HashMap<>(); field in class:Module 59 public Map<String,Package> packages() { return packages; } method in class:Module 80 Package.savePackages(packages, b); 97 packages.put(p.name(), p); 102 Package p = packages.get(pkg); 105 packages.put(pkg, p);
|
/openjdk10/jdk/test/tools/jlink/plugins/SystemModuleDescriptors/src/m4/p4/ |
H A D | Main.java | 98 private static void checkModule(String mn, String... packages) throws IOException { argument 102 checkModuleDescriptor(md, packages); 107 checkModuleDescriptor(ModuleDescriptor.read(in), packages); 113 checkModuleDescriptor(ModuleDescriptor.read(Files.newInputStream(path)), packages); 116 static void checkModuleDescriptor(ModuleDescriptor md, String... packages) throws IOException { argument 127 Set<String> pkgs = md.packages(); 128 if (!pkgs.equals(Set.of(packages))) { 129 throw new RuntimeException(pkgs + " expected: " + Set.of(packages));
|
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/ |
H A D | AbstractPackageIndexWriter.java | 59 protected SortedSet<PackageElement> packages; field in class:AbstractPackageIndexWriter 62 * Constructor. Also initializes the packages variable. 70 packages = configuration.packages; 95 * Adds the packages list to the documentation tree. 97 * @param packages a collection of packagedoc objects 100 * @param body the document tree to which the packages list will be added 102 protected abstract void addPackagesList(Collection<PackageElement> packages, String text, argument 139 addIndexContents(packages, "doclet.Package_Summary", 142 configuration.getText("doclet.packages")), bod 154 addIndexContents(Collection<PackageElement> packages, String text, String tableSummary, Content body) argument [all...] |
H A D | TreeWriter.java | 62 SortedSet<PackageElement> packages; field in class:TreeWriter 65 * True if there are no packages specified on the command line, 79 packages = configuration.packages; 80 classesOnly = packages.isEmpty(); 154 for (PackageElement pkg : packages) { 166 if (i < packages.size() - 1) { 196 return packages.size() == 1 && packages.first().isUnnamed();
|
/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/plugin/ |
H A D | ResourcePoolModule.java | 68 * Retrieves all the packages located in this module. 70 * @return The set of packages. 72 public Set<String> packages(); method in interface:ResourcePoolModule
|
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/module/ |
H A D | ModuleInfoExtender.java | 56 // the packages in the ModulePackages attribute 57 private Set<String> packages; field in class:ModuleInfoExtender 79 * Sets the packages for the ModulePackages attribute 82 * package names or that the set of packages is a super set of the 83 * packages in the module. 85 public ModuleInfoExtender packages(Set<String> packages) { argument 86 this.packages = Collections.unmodifiableSet(packages); 196 if (packages ! [all...] |
H A D | IllegalAccessLogger.java | 51 * Supports logging of access to members of exported and concealed packages 102 * otherwise concealed packages. 104 public Builder logAccessToConcealedPackages(Module m, Set<String> packages) { argument 106 moduleToConcealedPackages.put(m, unmodifiableSet(packages)); 112 * otherwise exported (not open) packages. 114 public Builder logAccessToExportedPackages(Module m, Set<String> packages) { argument 116 moduleToExportedPackages.put(m, unmodifiableSet(packages)); 143 // module -> packages open for illegal access 174 Set<String> packages = moduleToConcealedPackages.get(module); 175 if (packages ! [all...] |
H A D | ModuleInfoWriter.java | 56 // for tests: write the ModulePackages attribute when there are packages 63 if (md.packages().size() > exportedOrOpen) 64 cw.visitAttribute(new ModulePackagesAttribute(md.packages()));
|
H A D | Builder.java | 143 Set<String> packages; field in class:Builder 198 * Adds a set of (possible empty) packages. 200 public Builder packages(Set<String> packages) { argument 201 this.packages = packages; 279 packages,
|
/openjdk10/jdk/test/java/lang/module/ |
H A D | ModuleDescriptorTest.java | 823 // packages 826 Set<String> packages = ModuleDescriptor.newModule("foo") 827 .packages(Set.of("p", "q")) 829 .packages(); 830 assertTrue(packages.size() == 2); 831 assertTrue(packages.contains("p")); 832 assertTrue(packages.contains("q")); 836 Set<String> packages = ModuleDescriptor.newModule("foo") 837 .packages(Set.of("p")) 838 .packages(Se [all...] |
H A D | MultiReleaseJarTest.java | 101 // check module packages 103 Set<String> packages = descriptor.packages(); 104 assertTrue(packages.contains("p")); 106 assertTrue(packages.size() == 2); 107 assertTrue(packages.contains("p.internal")); 109 assertTrue(packages.size() == 1); 174 // check module packages 176 Set<String> packages = descriptor.packages(); [all...] |
/openjdk10/jdk/src/jdk.jlink/share/classes/jdk/tools/jlink/internal/ |
H A D | ResourcePoolConfiguration.java | 65 builder.packages(md.packages()); 89 // check that each resource pool module's packages() 95 if (!desc.packages().equals(m.packages())) { 97 "'s descriptor indicates the set of packages is : " + 98 desc.packages() + ", but module contains packages: " + 99 m.packages());
|
/openjdk10/hotspot/src/jdk.internal.vm.ci/share/classes/jdk.vm.ci.services/src/jdk/vm/ci/services/internal/ |
H A D | ReflectionAccessJDK.java | 57 * Opens all JVMCI packages to the module of a given class. 59 * @param other all JVMCI packages will be opened to the module of this class 67 Set<String> packages = (Set<String>) getPackages.invoke(jvmci); 68 for (String pkg : packages) {
|
/openjdk10/jdk/test/java/lang/SecurityManager/ |
H A D | CheckPackageMatching.java | 48 * The restricted packages listed in the package.access property of the 51 private static final String[] packages = actual().toArray(new String[0]); field in class:CheckPackageMatching 54 * Returns the list of restricted packages in the package.access property. 58 List<String> packages = new ArrayList<>(); 63 packages.add(s); 66 return packages; 71 * names against packages parsed from the package access list. 96 // For each package in packages we're going to compile state data 98 // ^packages[i].substring(0, packages[ 149 PackageMatcher(String[] packages) argument 310 TestPackageMatcher(String[] packages) argument [all...] |
/openjdk10/langtools/test/tools/javac/processing/model/testgetallmembers/ |
H A D | Main.java | 77 final Map<String, Set<String>> packages = new LinkedHashMap<>(); 104 packages.computeIfAbsent(me.getQualifiedName().toString(), 119 for (Entry<String, Set<String>> module2Packages : packages.entrySet()) { 132 * packages: 775, classes: 12429 + 5917 136 * limiting the number of packages exposed, this number might 139 System.out.format("packages: %s, classes: %s + %s%n", 140 packages.size(), classes, nestedClasses); 143 if (packages.values().stream().flatMap(packs -> packs.stream()).count() < 530) 144 throw new AssertionError("Too few packages in PLATFORM_CLASS_PATH ;-)");
|
/openjdk10/langtools/src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/toolkit/ |
H A D | AbstractDoclet.java | 269 SortedSet<PackageElement> packages = new TreeSet<>(utils.makePackageComparator()); 270 packages.addAll(configuration.getSpecifiedPackageElements()); 271 configuration.modulePackages.values().stream().forEach(packages::addAll); 272 for (PackageElement pkg : packages) { 284 SortedSet<PackageElement> packages = configuration.typeElementCatalog.packages(); 285 for (PackageElement pkg : packages) {
|
/openjdk10/hotspot/src/share/vm/classfile/ |
H A D | modules.hpp | 36 // define_module defines a module containing the specified packages. It binds the 45 // * Module's Class loader has already defined types for any of the module's packages 51 // * num_packages is non-zero when packages is null 54 jstring location, const char* const* packages,
|
/openjdk10/jdk/src/jdk.rmic/share/classes/sun/tools/java/ |
H A D | Imports.java | 36 * This class describes the classes and packages imported 44 * - check if the class is defined in any of the imported packages, 57 * and has precedence over other imported packages. 68 * The imported classes, including memoized imports from packages. 77 Vector<IdentifierToken> packages = new Vector<>(); field in class:Imports 138 for (Enumeration<IdentifierToken> e = packages.elements() ; e.hasMoreElements() ;) { 176 packages = resolvedPackages; 258 * and packages. 306 Enumeration<IdentifierToken> e = packages.elements(); 426 final int size = packages [all...] |
/openjdk10/jaxws/src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/ |
H A D | JCodeModel.java | 81 /** The packages that this JCodeWriter contains. */ 82 private final HashMap<String,JPackage> packages = new HashMap<>(); field in class:JCodeModel 126 * Add a package to the list of packages to be generated. 134 JPackage p = packages.get(name); 137 packages.put(name, p); 160 * Creates Java module instance and adds existing packages with classes to the Java module info. 161 * Used to initialize and build Java module instance with existing packages content. 172 * Adds existing packages with classes to the Java module info. 174 * Used to update Java module instance with existing packages content after it was prepared on client side. 182 module._exports(packages 194 public Iterator<JPackage> packages() { method in class:JCodeModel [all...] |