MCPcopy Create free account
hub / github.com/SWI-Prolog/packages-jpl / report_selected_flags

Method report_selected_flags

src/examples/java/system/Init.java:50–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48 }
49
50 public static void report_selected_flags() {
51 System.out.println("REPORTING SELECTED FLAGS: \n");
52
53 String prop = "[os_argv, home, executable, version, version_data, traditional, resource_database, toplevel_goal]";
54 Query q = new Query(String.format("member(X, %s), current_prolog_flag(X, Y)", prop));
55 while (q.hasMoreSolutions()) {
56 Map<String,Term> sol = q.nextSolution();
57 System.out.println(String.format("\t Value of %s: %s", sol.get("X").toString(), sol.get(("Y"))));
58 }
59 }
60
61
62 public static void report_all_flags() {

Callers 1

mainMethod · 0.95

Calls 3

hasMoreSolutionsMethod · 0.95
nextSolutionMethod · 0.95
toStringMethod · 0.45

Tested by

no test coverage detected