File: JPL.html

package info (click to toggle)
swi-prolog 9.0.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 82,408 kB
  • sloc: ansic: 387,503; perl: 359,326; cpp: 6,613; lisp: 6,247; java: 5,540; sh: 3,147; javascript: 2,668; python: 1,900; ruby: 1,594; yacc: 845; makefile: 428; xml: 317; sed: 12; sql: 6
file content (905 lines) | stat: -rw-r--r-- 33,961 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_201) on Tue Jun 16 07:41:33 AEST 2020 -->
<title>JPL</title>
<meta name="date" content="2020-06-16">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="JPL";
        }
    }
    catch(err) {
    }
//-->
var methods = {"i0":9,"i1":9,"i2":9,"i3":41,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../org/jpl7/Integer.html" title="class in org.jpl7"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../org/jpl7/JPLException.html" title="class in org.jpl7"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?org/jpl7/JPL.html" target="_top">Frames</a></li>
<li><a href="JPL.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.jpl7</div>
<h2 title="Class JPL" class="title">Class JPL</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.jpl7.JPL</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<hr>
<br>
<pre>public class <span class="typeNameLabel">JPL</span>
extends java.lang.Object</pre>
<div class="block">The jpl.JPL class contains static methods which allow (i) inspection and
 alteration of the "default" initialisation arguments (ii) explicit
 initialisation (iii) discovery of whether the Prolog engine is already
 initialised, and if so, with what arguments. The Prolog engine must be
 initialized before any queries are made, but this will happen automatically
 (upon the first call to a Prolog FLI routine) if it has not already been done
 explicitly.

 <hr>
 Copyright (C) 2004 Paul Singleton
 <p>
 Copyright (C) 1998 Fred Dushin
 <p>
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions are met:

 <ol>
 <li>Redistributions of source code must retain the above copyright notice,
 this list of conditions and the following disclaimer.

 <li>Redistributions in binary form must reproduce the above copyright notice,
 this list of conditions and the following disclaimer in the documentation
 and/or other materials provided with the distribution.
 </ol>

 <p>
 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
 <hr></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#DEBUG">DEBUG</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#JFALSE">JFALSE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#JNULL">JNULL</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#JTRUE">JTRUE</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static <a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#JVOID">JVOID</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static <a href="../../org/jpl7/Atom.html" title="class in org.jpl7">Atom</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_NIL">LIST_NIL</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static <a href="../../org/jpl7/Atom.html" title="class in org.jpl7">Atom</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_NIL_MODERN">LIST_NIL_MODERN</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static <a href="../../org/jpl7/Atom.html" title="class in org.jpl7">Atom</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_NIL_TRADITIONAL">LIST_NIL_TRADITIONAL</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_PAIR">LIST_PAIR</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_PAIR_MODERN">LIST_PAIR_MODERN</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_PAIR_TRADITIONAL">LIST_PAIR_TRADITIONAL</a></span></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#LIST_TOSTRING_TEXTUAL">LIST_TOSTRING_TEXTUAL</a></span></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#modeDontTellMe">modeDontTellMe</a></span></code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#JPL--">JPL</a></span>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#getActualInitArgs--">getActualInitArgs</a></span>()</code>
<div class="block">Returns, in an array of String, the sequence of command-line arguments
 that were actually used when the Prolog engine was formerly initialised.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#getDefaultInitArgs--">getDefaultInitArgs</a></span>()</code>
<div class="block">Returns, in an array of String, the sequence of command-line arguments
 that would be used if the Prolog engine were to be initialised now.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#getSyntax--">getSyntax</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#halt--">halt</a></span>()</code>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;&nbsp;</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#init--">init</a></span>()</code>
<div class="block">Initialises the Prolog engine using the current default initialisation
 parameters, and returns 'true' (or 'false' if already initialised).</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#init-java.lang.String:A-">init</a></span>(java.lang.String[]&nbsp;args)</code>
<div class="block">Initializes the Prolog engine, using the String argument parameters
 passed.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>protected static boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#isSimpleName-java.lang.String-">isSimpleName</a></span>(java.lang.String&nbsp;s)</code>
<div class="block">Checks if a string is a simple atom, with no quoting needed</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#jarPath--">jarPath</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#loadNativeLibrary--">loadNativeLibrary</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#main-java.lang.String:A-">main</a></span>(java.lang.String[]&nbsp;args)</code>&nbsp;</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>static <a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#newJRef-java.lang.Object-">newJRef</a></span>(java.lang.Object&nbsp;object)</code>&nbsp;</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>protected static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#quotedName-java.lang.String-">quotedName</a></span>(java.lang.String&nbsp;name)</code>
<div class="block">Returns a quoted (iff necessary) form of the Atom's name, as understood
 by Prolog read/1</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setDefaultInitArgs-java.lang.String:A-">setDefaultInitArgs</a></span>(java.lang.String[]&nbsp;args)</code>
<div class="block">Specifies, in an array of String, the sequence of command-line arguments
 that should be used if the Prolog engine is subsequently initialised.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setDTMMode-boolean-">setDTMMode</a></span>(boolean&nbsp;dtm)</code>
<div class="block">Sets the global "dont-tell-me" mode (default value: true).</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setNativeLibraryDir-java.lang.String-">setNativeLibraryDir</a></span>(java.lang.String&nbsp;newDir)</code>&nbsp;</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setNativeLibraryName-java.lang.String-">setNativeLibraryName</a></span>(java.lang.String&nbsp;newName)</code>&nbsp;</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setNativeLibraryPath-java.lang.String-">setNativeLibraryPath</a></span>(java.lang.String&nbsp;newPath)</code>&nbsp;</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setTraditional--">setTraditional</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>static void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#setTraditionalAnyway--">setTraditionalAnyway</a></span>()</code>&nbsp;</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#version_string--">version_string</a></span>()</code>
<div class="block">Returns a String (eg "3.0.0-alpha") identifying this version of JPL.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>static org.jpl7.Version</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../org/jpl7/JPL.html#version--">version</a></span>()</code>
<div class="block">Returns (as a Version) an identification of this version of JPL.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="DEBUG">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DEBUG</h4>
<pre>protected static final&nbsp;boolean DEBUG</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#org.jpl7.JPL.DEBUG">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="JFALSE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JFALSE</h4>
<pre>public static final&nbsp;<a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a> JFALSE</pre>
</li>
</ul>
<a name="JTRUE">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JTRUE</h4>
<pre>public static final&nbsp;<a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a> JTRUE</pre>
</li>
</ul>
<a name="JNULL">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JNULL</h4>
<pre>public static final&nbsp;<a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a> JNULL</pre>
</li>
</ul>
<a name="JVOID">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>JVOID</h4>
<pre>public static final&nbsp;<a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a> JVOID</pre>
</li>
</ul>
<a name="modeDontTellMe">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>modeDontTellMe</h4>
<pre>protected static&nbsp;boolean modeDontTellMe</pre>
</li>
</ul>
<a name="LIST_NIL_MODERN">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIST_NIL_MODERN</h4>
<pre>protected static final&nbsp;<a href="../../org/jpl7/Atom.html" title="class in org.jpl7">Atom</a> LIST_NIL_MODERN</pre>
</li>
</ul>
<a name="LIST_NIL_TRADITIONAL">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIST_NIL_TRADITIONAL</h4>
<pre>protected static final&nbsp;<a href="../../org/jpl7/Atom.html" title="class in org.jpl7">Atom</a> LIST_NIL_TRADITIONAL</pre>
</li>
</ul>
<a name="LIST_NIL">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIST_NIL</h4>
<pre>public static&nbsp;<a href="../../org/jpl7/Atom.html" title="class in org.jpl7">Atom</a> LIST_NIL</pre>
</li>
</ul>
<a name="LIST_PAIR_MODERN">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIST_PAIR_MODERN</h4>
<pre>protected static final&nbsp;java.lang.String LIST_PAIR_MODERN</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#org.jpl7.JPL.LIST_PAIR_MODERN">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LIST_PAIR_TRADITIONAL">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIST_PAIR_TRADITIONAL</h4>
<pre>protected static final&nbsp;java.lang.String LIST_PAIR_TRADITIONAL</pre>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../constant-values.html#org.jpl7.JPL.LIST_PAIR_TRADITIONAL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="LIST_PAIR">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>LIST_PAIR</h4>
<pre>public static&nbsp;java.lang.String LIST_PAIR</pre>
</li>
</ul>
<a name="LIST_TOSTRING_TEXTUAL">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>LIST_TOSTRING_TEXTUAL</h4>
<pre>public static&nbsp;boolean LIST_TOSTRING_TEXTUAL</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="JPL--">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JPL</h4>
<pre>public&nbsp;JPL()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="setNativeLibraryName-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNativeLibraryName</h4>
<pre>public static&nbsp;java.lang.String&nbsp;setNativeLibraryName(java.lang.String&nbsp;newName)</pre>
</li>
</ul>
<a name="setNativeLibraryDir-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNativeLibraryDir</h4>
<pre>public static&nbsp;java.lang.String&nbsp;setNativeLibraryDir(java.lang.String&nbsp;newDir)</pre>
</li>
</ul>
<a name="setNativeLibraryPath-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNativeLibraryPath</h4>
<pre>public static&nbsp;java.lang.String&nbsp;setNativeLibraryPath(java.lang.String&nbsp;newPath)</pre>
</li>
</ul>
<a name="loadNativeLibrary--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadNativeLibrary</h4>
<pre>public static&nbsp;void&nbsp;loadNativeLibrary()</pre>
</li>
</ul>
<a name="jarPath--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>jarPath</h4>
<pre>public static&nbsp;java.lang.String&nbsp;jarPath()</pre>
</li>
</ul>
<a name="setDTMMode-boolean-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDTMMode</h4>
<pre>public static&nbsp;void&nbsp;setDTMMode(boolean&nbsp;dtm)</pre>
<div class="block">Sets the global "dont-tell-me" mode (default value: true). When 'true',
 bindings will *not* be returned for any variable (in a Query's goal)
 whose name begins with an underscore character (except for "anonymous"
 variables, i.e. those whose name comprises just the underscore character,
 whose bindings are never returned). When 'false', bindings are returned
 for *all* variables except anonymous ones; this mode may be useful when
 traditional top-level interpreter behaviour is wanted, e.g. in a
 Java-based Prolog IDE or debugger.
 <p>
 This method should be regarded as experimental, and may subsequently be
 deprecated in favour of some more general mechanism for setting options,
 perhaps per-Query and per-call as well as globally.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dtm</code> - new "dont-tell-me" mode value</dd>
</dl>
</li>
</ul>
<a name="setTraditional--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTraditional</h4>
<pre>public static&nbsp;void&nbsp;setTraditional()</pre>
</li>
</ul>
<a name="setTraditionalAnyway--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTraditionalAnyway</h4>
<pre>public static&nbsp;void&nbsp;setTraditionalAnyway()</pre>
</li>
</ul>
<a name="getSyntax--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSyntax</h4>
<pre>public static&nbsp;java.lang.String&nbsp;getSyntax()</pre>
</li>
</ul>
<a name="getDefaultInitArgs--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDefaultInitArgs</h4>
<pre>public static&nbsp;java.lang.String[]&nbsp;getDefaultInitArgs()</pre>
<div class="block">Returns, in an array of String, the sequence of command-line arguments
 that would be used if the Prolog engine were to be initialised now.
 Returns null if the Prolog VM has already been initialised (in which case
 the default init args are irrelevant and the actual init args are of
 interest)
 <p></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>current default initialisation arguments, or null if already
         initialised</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../org/jpl7/JPL.html#getActualInitArgs--"><code>getActualInitArgs()</code></a></dd>
</dl>
</li>
</ul>
<a name="setDefaultInitArgs-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDefaultInitArgs</h4>
<pre>public static&nbsp;void&nbsp;setDefaultInitArgs(java.lang.String[]&nbsp;args)</pre>
<div class="block">Specifies, in an array of String, the sequence of command-line arguments
 that should be used if the Prolog engine is subsequently initialised.
 <p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>args</code> - new default initialization arguments</dd>
</dl>
</li>
</ul>
<a name="getActualInitArgs--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getActualInitArgs</h4>
<pre>public static&nbsp;java.lang.String[]&nbsp;getActualInitArgs()</pre>
<div class="block">Returns, in an array of String, the sequence of command-line arguments
 that were actually used when the Prolog engine was formerly initialised.

 This method returns null if the Prolog engine has not yet been
 initialised, and thus may be used to test this condition.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>actual initialization arguments</dd>
</dl>
</li>
</ul>
<a name="init-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public static&nbsp;boolean&nbsp;init(java.lang.String[]&nbsp;args)</pre>
<div class="block">Initializes the Prolog engine, using the String argument parameters
 passed. This method need be called only if you want to both (i)
 initialise the Prolog engine with parameters other than the default ones
 and (ii) force initialisation to occur (rather than allow it to occur
 automatically at the first query). For parameter options, consult your
 local Prolog documentation. The parameter values are passed directly to
 initialization routines for the Prolog environment.
 <p>

 This method must be called before making any queries.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>args</code> - Initialization parameter list</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true iff initialization was new; false if already initialized</dd>
</dl>
</li>
</ul>
<a name="init--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>init</h4>
<pre>public static&nbsp;boolean&nbsp;init()</pre>
<div class="block">Initialises the Prolog engine using the current default initialisation
 parameters, and returns 'true' (or 'false' if already initialised).</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if initialization was new, false if already initialized</dd>
</dl>
</li>
</ul>
<a name="isSimpleName-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isSimpleName</h4>
<pre>protected static&nbsp;boolean&nbsp;isSimpleName(java.lang.String&nbsp;s)</pre>
<div class="block">Checks if a string is a simple atom, with no quoting needed</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>s</code> - string to check if it is simple name (no quoting needed)</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>whether s is a simple name, i.e. which needs no quoting in source text</dd>
</dl>
</li>
</ul>
<a name="newJRef-java.lang.Object-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>newJRef</h4>
<pre>public static&nbsp;<a href="../../org/jpl7/Term.html" title="class in org.jpl7">Term</a>&nbsp;newJRef(java.lang.Object&nbsp;object)</pre>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>object</code> - the object of interest to get the JREF</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a new Term instance which canonically represents the given object
         reference (concrete or null)</dd>
</dl>
</li>
</ul>
<a name="quotedName-java.lang.String-">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>quotedName</h4>
<pre>protected static&nbsp;java.lang.String&nbsp;quotedName(java.lang.String&nbsp;name)</pre>
<div class="block">Returns a quoted (iff necessary) form of the Atom's name, as understood
 by Prolog read/1</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>name</code> - the name to quote if needed</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a quoted form of the Atom's name, as understood by Prolog read/1</dd>
</dl>
</li>
</ul>
<a name="halt--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>halt</h4>
<pre>@Deprecated
public static&nbsp;void&nbsp;halt()</pre>
<div class="block"><span class="deprecatedLabel">Deprecated.</span>&nbsp;</div>
<div class="block">Terminates the Prolog session.
 <p>

 <b>Note.</b> This method calls the FLI halt() method with a status of 0,
 but the halt method currently is a no-op in SWI.</div>
</li>
</ul>
<a name="version--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>version</h4>
<pre>public static&nbsp;org.jpl7.Version&nbsp;version()</pre>
<div class="block">Returns (as a Version) an identification of this version of JPL.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the running version of JPL.</dd>
</dl>
</li>
</ul>
<a name="version_string--">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>version_string</h4>
<pre>public static&nbsp;java.lang.String&nbsp;version_string()</pre>
<div class="block">Returns a String (eg "3.0.0-alpha") identifying this version of JPL.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a String (eg "3.0.0-alpha") identifying this version of JPL.</dd>
</dl>
</li>
</ul>
<a name="main-java.lang.String:A-">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>main</h4>
<pre>public static&nbsp;void&nbsp;main(java.lang.String[]&nbsp;args)</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!--   -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../org/jpl7/Integer.html" title="class in org.jpl7"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../org/jpl7/JPLException.html" title="class in org.jpl7"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?org/jpl7/JPL.html" target="_top">Frames</a></li>
<li><a href="JPL.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>