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

Method getSubstWithNameVars

src/main/java/org/jpl7/Query.java:461–471  ·  view source on GitHub ↗

Used to be used only by Utils.textToTerm but code has been integrated there already @return a substituion from variable names to terms

()

Source from the content-addressed store, hash-verified

459 * @return a substituion from variable names to terms
460 */
461 @Deprecated
462 public final Map<String, Term> getSubstWithNameVars() {
463 // oughta check: thread has query's engine
464 if (!open) {
465 throw new JPLException("Query is not open");
466 } else if (fetchNextSolution()) {
467 return getSolutionWithVarNames();
468 } else {
469 return null;
470 }
471 }
472
473 /**
474 * This method returns a java.util.Map, which represents a binding from the

Callers

nothing calls this directly

Calls 2

fetchNextSolutionMethod · 0.95

Tested by

no test coverage detected