This method returns true if JPL was able to initiate a "call" of this Query within a Prolog engine. It is designed to be used with the nextSolution() method to retrieve one or more substitutions in the form of Maps. To iterate through all the solutions to a Query, for example, one might write
()
| 337 | * @return true if the Prolog query succeeds; otherwise false. |
| 338 | */ |
| 339 | public final boolean hasMoreSolutions() { |
| 340 | if (hasNextSolution == null) { |
| 341 | if (!open) open(); |
| 342 | hasNextSolution = fetchNextSolution(); |
| 343 | } |
| 344 | return hasNextSolution; |
| 345 | } |
| 346 | |
| 347 | /** |
| 348 | * This method returns true if JPL was able to initiate a "call" of this |