Lines Matching defs:uses
523 private static Map<String, Set<String>> uses(Set<ModuleReference> modules) {
524 // collects the services used by the modules and print uses
532 md.uses().forEach(s -> services.computeIfAbsent(s, _k -> new HashSet<>())
541 printProviders(log, header, modules, uses(modules));
548 * using the service type which may be empty if no observable module uses
618 // print uses of the modules that would be linked into the image
625 md.uses().stream().sorted()
626 .forEach(s -> log.format(" uses %s%n", s));
630 printProviders(log, msg, mrefs, uses(mrefs));
643 // find the modules that uses the specified services
644 Map<String, Set<String>> uses = new HashMap<>();
645 names.forEach(s -> uses.computeIfAbsent(s, _k -> new HashSet<>()));
648 .forEach(md -> md.uses().stream()
650 .forEach(s -> uses.get(s).add(md.name())));
663 printProviders(log, msg, mrefs, uses);