List of usage examples for java.lang.module ModuleDescriptor.Requires name
String name
To view the source code for java.lang.module ModuleDescriptor.Requires name.
Click Source Link
From source file:org.apache.commons.rng.examples.jpms.app.DiceGameApplication.java
/** * Display JPMS information./*from w w w . j ava 2s. c o m*/ */ private void displayModuleInfo() { final StringBuilder str = new StringBuilder(); for (Module mod : new Module[] { DiceGame.class.getModule(), DiceGameApplication.class.getModule() }) { System.out.println("--- " + mod + " ---"); final ModuleDescriptor desc = mod.getDescriptor(); for (ModuleDescriptor.Requires r : desc.requires()) { System.out.println(mod.getName() + " requires " + r.name()); } System.out.println(); } }