@tuprolog/2p-full 3.0.1 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/2p-bdd.js +147 -147
- package/2p-bdd.js.map +1 -1
- package/2p-core.js +2583 -2583
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +844 -844
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +898 -898
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +113 -113
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1487 -1487
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +78 -78
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +98 -98
- package/2p-repl.js.map +1 -1
- package/2p-solve-plp.js +1 -1
- package/2p-solve-plp.js.map +1 -1
- package/2p-solve-problog.js +1298 -1298
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-prolog.js +913 -913
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +4267 -4267
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +1613 -1613
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +333 -333
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +388 -388
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +88 -88
- package/clikt-clikt-mordant.js.map +1 -1
- package/clikt-clikt.js +2034 -2034
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +456 -456
- package/colormath-root-colormath.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +2405 -2405
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1454 -1454
- package/kt-math.js.map +1 -1
- package/mordant-mordant.js +1791 -1791
- package/mordant-mordant.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +39 -39
- package/okio-parent-okio-nodefilesystem.js.map +1 -1
- package/okio-parent-okio.js +650 -650
- package/okio-parent-okio.js.map +1 -1
- package/package.json +1 -1
package/2p-oop-lib.js
CHANGED
|
@@ -185,18 +185,18 @@
|
|
|
185
185
|
initMetadataForClass(Value, 'Value', VOID, Result);
|
|
186
186
|
initMetadataForCompanion(Companion_2);
|
|
187
187
|
function convert(term) {
|
|
188
|
-
return this.
|
|
188
|
+
return this.w51(this.y51(term), term);
|
|
189
189
|
}
|
|
190
190
|
initMetadataForInterface(TermToObjectConverter, 'TermToObjectConverter');
|
|
191
191
|
initMetadataForCompanion(Companion_3);
|
|
192
192
|
function typeRefFromName(typeName) {
|
|
193
|
-
var tmp = Companion_instance.
|
|
194
|
-
return tmp.
|
|
193
|
+
var tmp = Companion_instance.nr(this.b52(typeName));
|
|
194
|
+
return tmp.au(TypeFactory$typeRefFromName$lambda).f1();
|
|
195
195
|
}
|
|
196
196
|
initMetadataForInterface(TypeFactory, 'TypeFactory');
|
|
197
197
|
initMetadataForCompanion(Companion_4);
|
|
198
198
|
function create(objectConverter, arguments_0) {
|
|
199
|
-
return this.
|
|
199
|
+
return this.e52(objectConverter, listOf(arguments_0.slice()));
|
|
200
200
|
}
|
|
201
201
|
initMetadataForInterface(TypeRef, 'TypeRef', VOID, VOID, [Ref]);
|
|
202
202
|
initMetadataForClass(OopException, 'OopException', VOID, TuPrologException);
|
|
@@ -249,7 +249,7 @@
|
|
|
249
249
|
function NullRef() {
|
|
250
250
|
}
|
|
251
251
|
function _get_ruleWrappers__mybpf3($this) {
|
|
252
|
-
return listOf(arrayConcat([[Cast_getInstance_0(), Invocation_getInstance(), Assignment_getInstance(), Dot_getInstance(), Recursive_getInstance(), Couple_getInstance(), Trivial_getInstance(), NewObject2_getInstance(), Recursive_getInstance_0(), Base_getInstance(), Companion_instance_15.
|
|
252
|
+
return listOf(arrayConcat([[Cast_getInstance_0(), Invocation_getInstance(), Assignment_getInstance(), Dot_getInstance(), Recursive_getInstance(), Couple_getInstance(), Trivial_getInstance(), NewObject2_getInstance(), Recursive_getInstance_0(), Base_getInstance(), Companion_instance_15.f51('string', PrimitiveClasses_getInstance().ia()), Companion_instance_15.f51('array', PrimitiveClasses_getInstance().ha()), Companion_instance_15.f51('list', getKClass(KtList)), Companion_instance_15.f51('arraylist', getKClass(ArrayList)), Companion_instance_15.f51('map', getKClass(KtMap)), Companion_instance_15.f51('hashmap', getKClass(LinkedHashMap)), Companion_instance_15.f51('int', PrimitiveClasses_getInstance().da()), Companion_instance_15.f51('integer', PrimitiveClasses_getInstance().da()), Companion_instance_15.f51('double', PrimitiveClasses_getInstance().ga()), Companion_instance_15.f51('float', PrimitiveClasses_getInstance().fa()), Companion_instance_15.f51('long', PrimitiveClasses_getInstance().ea()), Companion_instance_15.f51('short', PrimitiveClasses_getInstance().ca()), Companion_instance_15.f51('byte', PrimitiveClasses_getInstance().ba()), Companion_instance_15.f51('char', getKClass(Char)), Companion_instance_15.f51('bool', PrimitiveClasses_getInstance().aa()), Companion_instance_15.f51('boolean', PrimitiveClasses_getInstance().aa()), Companion_instance_15.f51('any', PrimitiveClasses_getInstance().x9()), Companion_instance_15.f51('nothing', PrimitiveClasses_getInstance().z9()), Companion_instance_15.f51('big_integer', getKClass(BigInteger)), Companion_instance_15.f51('big_decimal', getKClass(BigDecimal))], get_platformSpecificAliases()]));
|
|
253
253
|
}
|
|
254
254
|
function _get_operatorDocumentation__vy55az($this) {
|
|
255
255
|
return mapOf([to(new Signature('$', 1), "`$+Alias`\n\nAlias reference, with no predicate behind it: `$Alias` stands for the object or type reference registered under the atom `Alias` by an `alias/2` fact, i.e. one of the library's default aliases (`string`, `int`, `arraylist`, `stdout`, ...) or one added via `register/2`. It is resolved by the library wherever a reference is expected: as the receiver of `invoke_method/3`, `invoke_strict/3`, `./2` and `:=/2`, as the type of `new_object/2,3` and `cast/3`, as the value of `assign/3`, as the type in `as/2` casts, and inside method or constructor arguments (where it must denote an object). An unregistered alias raises an existence error.\n\n**Examples**\n\n```prolog\n?- $stdout.println(hello).\n% prints: hello\nyes.\n\n?- new_object($arraylist, L), L.add(a), N := L.size.\nN = 1.\n\n?- invoke_method($nope, toString, R).\nthrows error(existence_error(_, _), _).\n```"), to(new Signature('as', 2), "`+Term as +Type`\n\nExplicit conversion, with no predicate behind it. Inside method or constructor arguments (of `invoke_method/3`, `invoke_strict/3`, `new_object/3`, `./2` chains, `*_items/2` lists and `assign/3` values), `Term as Type` converts `Term` into exactly `Type` instead of the automatically inferred type, which also steers overload selection. There `Type` is an atom holding a fully qualified type name (e.g. `'java.lang.Long'`), a type reference, or a `$Alias` reference to a type; if `Term` cannot be represented as `Type`, an error is raised. On the right of `:=/2`, `Result := Term as Type` instead calls `cast/3`, which requires a type reference or a `$Alias`. Since `as` binds tighter than `.`, parenthesise chains: `R := (Obj.size) as $long`.\n\n**Examples**\n\n```prolog\n?- X := $math.max(1 as 'java.lang.Double', 2).\nX = 2.0.\n\n?- new_object('java.util.ArrayList', [], L), L.add(1 as 'java.lang.Long'), A := L.contains(1 as 'java.lang.Long'), B := L.contains(1).\nA = true, B = false.\n\n?- new_object('java.util.ArrayList', [], L), L.add(abc as 'java.lang.Long').\nthrows error(representation_error(_), _).\n```")]);
|
|
@@ -257,46 +257,46 @@
|
|
|
257
257
|
function OOPLib() {
|
|
258
258
|
OOPLib_instance = this;
|
|
259
259
|
AbstractLibrary.call(this);
|
|
260
|
-
this.
|
|
260
|
+
this.h51_1 = "`library('prolog.oop')`\n\nBridges Prolog with the JVM/Kotlin object world via reflection: Prolog code can create objects, call their (possibly overloaded) methods and constructors, read and write their properties, and convert values back and forth. Objects and classes are represented by opaque reference terms (see `object_ref/1`, `type_ref/1`, `null_ref/1`); Prolog atoms, numbers and booleans are converted automatically to and from strings, numbers and booleans.\n\nMain entry points are `new_object/2,3` (instantiation), `invoke_method/3` and `invoke_strict/3` (method calls), `assign/3` (property writes), `cast/3` and `type/2` (types and conversions), `array_items/2`, `list_items/2` and `set_items/2` (collections), and `register/2`/`unregister/1` (aliases, see `alias/2`).\n\nThe operators `./2` (method call or property read, chainable), `:=/2` (capture a result or assign a property), `as/2` (explicit conversion) and `$/1` (alias reference, e.g. `$stdout`) provide a fluent syntax on top of these predicates. Example: `new_object('java.util.ArrayList', [], L), L.add(1 as 'java.lang.Long'), N := L.size, $stdout.println(N)`. Reflective invocation is only available on the JVM.";
|
|
261
261
|
}
|
|
262
|
-
protoOf(OOPLib).
|
|
262
|
+
protoOf(OOPLib).w2i = function () {
|
|
263
263
|
return 'prolog.oop';
|
|
264
264
|
};
|
|
265
|
-
protoOf(OOPLib).
|
|
266
|
-
return this.
|
|
265
|
+
protoOf(OOPLib).i1x = function () {
|
|
266
|
+
return this.h51_1;
|
|
267
267
|
};
|
|
268
|
-
protoOf(OOPLib).
|
|
268
|
+
protoOf(OOPLib).r2i = function () {
|
|
269
269
|
// Inline function 'kotlin.collections.map' call
|
|
270
270
|
var this_0 = listOf([ArrayItems_getInstance(), Assign_getInstance(), Cast_getInstance(), Type_getInstance(), InvokeMethod_getInstance(), InvokeStrict_getInstance(), ListItems_getInstance(), NewObject3_getInstance(), NullRef_getInstance(), ObjectRef_getInstance(), Ref_getInstance(), Register_getInstance(), SetItems_getInstance(), TypeRef_getInstance(), Unregister_getInstance()]);
|
|
271
271
|
// Inline function 'kotlin.collections.mapTo' call
|
|
272
272
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
273
|
-
var _iterator__ex2g4s = this_0.
|
|
274
|
-
while (_iterator__ex2g4s.
|
|
275
|
-
var item = _iterator__ex2g4s.
|
|
273
|
+
var _iterator__ex2g4s = this_0.n();
|
|
274
|
+
while (_iterator__ex2g4s.q()) {
|
|
275
|
+
var item = _iterator__ex2g4s.r();
|
|
276
276
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
277
|
-
var tmp$ret$2 = to(item.signature, item.
|
|
278
|
-
destination.
|
|
277
|
+
var tmp$ret$2 = to(item.signature, item.g1x());
|
|
278
|
+
destination.l(tmp$ret$2);
|
|
279
279
|
}
|
|
280
280
|
return toMap(destination);
|
|
281
281
|
};
|
|
282
|
-
protoOf(OOPLib).
|
|
282
|
+
protoOf(OOPLib).f1o = function () {
|
|
283
283
|
// Inline function 'kotlin.collections.map' call
|
|
284
284
|
var this_0 = _get_ruleWrappers__mybpf3(this);
|
|
285
285
|
// Inline function 'kotlin.collections.mapTo' call
|
|
286
286
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
287
|
-
var _iterator__ex2g4s = this_0.
|
|
288
|
-
while (_iterator__ex2g4s.
|
|
289
|
-
var item = _iterator__ex2g4s.
|
|
290
|
-
var tmp$ret$2 = item.
|
|
291
|
-
destination.
|
|
287
|
+
var _iterator__ex2g4s = this_0.n();
|
|
288
|
+
while (_iterator__ex2g4s.q()) {
|
|
289
|
+
var item = _iterator__ex2g4s.r();
|
|
290
|
+
var tmp$ret$2 = item.g1x();
|
|
291
|
+
destination.l(tmp$ret$2);
|
|
292
292
|
}
|
|
293
293
|
return destination;
|
|
294
294
|
};
|
|
295
|
-
protoOf(OOPLib).
|
|
295
|
+
protoOf(OOPLib).c1y = function () {
|
|
296
296
|
return OperatorSet_init_$Create$([new Operator('.', Specifier_XFY_getInstance(), 800), new Operator(':=', Specifier_XFX_getInstance(), 850), new Operator('as', Specifier_XFX_getInstance(), 200), new Operator('$', Specifier_FX_getInstance(), 100)]);
|
|
297
297
|
};
|
|
298
|
-
protoOf(OOPLib).
|
|
299
|
-
return mergeDocumentation([protoOf(AbstractLibrary).
|
|
298
|
+
protoOf(OOPLib).x2i = function () {
|
|
299
|
+
return mergeDocumentation([protoOf(AbstractLibrary).x2i.call(this), documentationOf(asSequence(_get_ruleWrappers__mybpf3(this))), _get_operatorDocumentation__vy55az(this)]);
|
|
300
300
|
};
|
|
301
301
|
var OOPLib_instance;
|
|
302
302
|
function OOPLib_getInstance() {
|
|
@@ -309,13 +309,13 @@
|
|
|
309
309
|
}
|
|
310
310
|
function Companion() {
|
|
311
311
|
Companion_instance_7 = this;
|
|
312
|
-
this.
|
|
312
|
+
this.i51_1 = NullRefImpl_getInstance();
|
|
313
313
|
}
|
|
314
|
-
protoOf(Companion).
|
|
315
|
-
return any == null ? nameOf(this, PrimitiveClasses_getInstance().
|
|
314
|
+
protoOf(Companion).j51 = function (any) {
|
|
315
|
+
return any == null ? nameOf(this, PrimitiveClasses_getInstance().z9(), 'null') : nameOf(this, getKClassFromExpression(any), get_identifier(any));
|
|
316
316
|
};
|
|
317
|
-
protoOf(Companion).
|
|
318
|
-
return any == null ? this.
|
|
317
|
+
protoOf(Companion).k51 = function (any) {
|
|
318
|
+
return any == null ? this.i51_1 : new ObjectRefImpl(any);
|
|
319
319
|
};
|
|
320
320
|
var Companion_instance_7;
|
|
321
321
|
function Companion_getInstance_10() {
|
|
@@ -327,7 +327,7 @@
|
|
|
327
327
|
}
|
|
328
328
|
function Companion_0() {
|
|
329
329
|
Companion_instance_8 = this;
|
|
330
|
-
this.
|
|
330
|
+
this.l51_1 = new ObjectToTermConverterImpl();
|
|
331
331
|
}
|
|
332
332
|
var Companion_instance_8;
|
|
333
333
|
function Companion_getInstance_11() {
|
|
@@ -337,7 +337,7 @@
|
|
|
337
337
|
}
|
|
338
338
|
function Companion_1() {
|
|
339
339
|
}
|
|
340
|
-
protoOf(Companion_1).
|
|
340
|
+
protoOf(Companion_1).m51 = function (type, termToObjectConverter) {
|
|
341
341
|
return overloadSelector(type, termToObjectConverter);
|
|
342
342
|
};
|
|
343
343
|
var Companion_instance_9;
|
|
@@ -347,22 +347,22 @@
|
|
|
347
347
|
function Ref() {
|
|
348
348
|
}
|
|
349
349
|
function _get_termValue__ikgccs($this) {
|
|
350
|
-
var tmp0 = $this.
|
|
350
|
+
var tmp0 = $this.o51_1;
|
|
351
351
|
var tmp = KProperty1;
|
|
352
352
|
// Inline function 'kotlin.getValue' call
|
|
353
353
|
getPropertyCallableRef('termValue', 1, tmp, Result$Value$_get_termValue_$ref_u3cirl(), null);
|
|
354
|
-
return tmp0.
|
|
354
|
+
return tmp0.f1();
|
|
355
355
|
}
|
|
356
356
|
function _get_objectRef__3zhern($this) {
|
|
357
|
-
var tmp0 = $this.
|
|
357
|
+
var tmp0 = $this.p51_1;
|
|
358
358
|
var tmp = KProperty1;
|
|
359
359
|
// Inline function 'kotlin.getValue' call
|
|
360
360
|
getPropertyCallableRef('objectRef', 1, tmp, Result$Value$_get_objectRef_$ref_8a6ozy(), null);
|
|
361
|
-
return tmp0.
|
|
361
|
+
return tmp0.f1();
|
|
362
362
|
}
|
|
363
363
|
function Result$Value$termValue$delegate$lambda(this$0) {
|
|
364
364
|
return function () {
|
|
365
|
-
return Companion_getInstance_11().
|
|
365
|
+
return Companion_getInstance_11().l51_1.q51(this$0.n51_1);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function Result$Value$_get_termValue_$ref_u3cirl() {
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
if (isInterface(it, ObjectRef)) {
|
|
379
379
|
tmp = it;
|
|
380
380
|
} else {
|
|
381
|
-
tmp = Companion_getInstance_10().
|
|
381
|
+
tmp = Companion_getInstance_10().k51(this$0.n51_1);
|
|
382
382
|
}
|
|
383
383
|
return tmp;
|
|
384
384
|
};
|
|
@@ -390,33 +390,33 @@
|
|
|
390
390
|
}
|
|
391
391
|
function Value(value) {
|
|
392
392
|
Result.call(this);
|
|
393
|
-
this.
|
|
393
|
+
this.n51_1 = value;
|
|
394
394
|
var tmp = this;
|
|
395
|
-
tmp.
|
|
395
|
+
tmp.o51_1 = lazy(Result$Value$termValue$delegate$lambda(this));
|
|
396
396
|
var tmp_0 = this;
|
|
397
|
-
tmp_0.
|
|
397
|
+
tmp_0.p51_1 = lazy(Result$Value$objectRef$delegate$lambda(this));
|
|
398
398
|
}
|
|
399
|
-
protoOf(Value).
|
|
399
|
+
protoOf(Value).t1j = function () {
|
|
400
400
|
return _get_termValue__ikgccs(this);
|
|
401
401
|
};
|
|
402
402
|
protoOf(Value).toTerm = function () {
|
|
403
|
-
return this.
|
|
403
|
+
return this.t1j();
|
|
404
404
|
};
|
|
405
|
-
protoOf(Value).
|
|
405
|
+
protoOf(Value).r51 = function () {
|
|
406
406
|
return _get_objectRef__3zhern(this);
|
|
407
407
|
};
|
|
408
408
|
protoOf(Value).toString = function () {
|
|
409
|
-
return 'Value(value=' + toString(this.
|
|
409
|
+
return 'Value(value=' + toString(this.n51_1) + ')';
|
|
410
410
|
};
|
|
411
411
|
protoOf(Value).hashCode = function () {
|
|
412
|
-
return this.
|
|
412
|
+
return this.n51_1 == null ? 0 : hashCode(this.n51_1);
|
|
413
413
|
};
|
|
414
414
|
protoOf(Value).equals = function (other) {
|
|
415
415
|
if (this === other)
|
|
416
416
|
return true;
|
|
417
417
|
if (!(other instanceof Value))
|
|
418
418
|
return false;
|
|
419
|
-
if (!equals(this.
|
|
419
|
+
if (!equals(this.n51_1, other.n51_1))
|
|
420
420
|
return false;
|
|
421
421
|
return true;
|
|
422
422
|
};
|
|
@@ -427,13 +427,13 @@
|
|
|
427
427
|
}
|
|
428
428
|
function Companion_2() {
|
|
429
429
|
Companion_instance_10 = this;
|
|
430
|
-
this.
|
|
430
|
+
this.s51_1 = this.t51();
|
|
431
431
|
}
|
|
432
|
-
protoOf(Companion_2).
|
|
432
|
+
protoOf(Companion_2).u51 = function (typeFactory, dealiaser) {
|
|
433
433
|
return new TermToObjectConverterImpl(typeFactory, dealiaser);
|
|
434
434
|
};
|
|
435
|
-
protoOf(Companion_2).
|
|
436
|
-
typeFactory = typeFactory === VOID ? Companion_getInstance_14().
|
|
435
|
+
protoOf(Companion_2).t51 = function (typeFactory, dealiaser, $super) {
|
|
436
|
+
typeFactory = typeFactory === VOID ? Companion_getInstance_14().v51_1 : typeFactory;
|
|
437
437
|
var tmp;
|
|
438
438
|
if (dealiaser === VOID) {
|
|
439
439
|
tmp = TermToObjectConverter$Companion$of$lambda;
|
|
@@ -441,7 +441,7 @@
|
|
|
441
441
|
tmp = dealiaser;
|
|
442
442
|
}
|
|
443
443
|
dealiaser = tmp;
|
|
444
|
-
return $super === VOID ? this.
|
|
444
|
+
return $super === VOID ? this.u51(typeFactory, dealiaser) : $super.u51.call(this, typeFactory, dealiaser);
|
|
445
445
|
};
|
|
446
446
|
var Companion_instance_10;
|
|
447
447
|
function Companion_getInstance_13() {
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
}
|
|
454
454
|
function Companion_3() {
|
|
455
455
|
Companion_instance_11 = this;
|
|
456
|
-
this.
|
|
456
|
+
this.v51_1 = new TypeFactoryImpl();
|
|
457
457
|
}
|
|
458
458
|
var Companion_instance_11;
|
|
459
459
|
function Companion_getInstance_14() {
|
|
@@ -462,13 +462,13 @@
|
|
|
462
462
|
return Companion_instance_11;
|
|
463
463
|
}
|
|
464
464
|
function TypeFactory$typeRefFromName$lambda(it) {
|
|
465
|
-
return Companion_instance_12.
|
|
465
|
+
return Companion_instance_12.a52(it);
|
|
466
466
|
}
|
|
467
467
|
function TypeFactory() {
|
|
468
468
|
}
|
|
469
469
|
function Companion_4() {
|
|
470
470
|
}
|
|
471
|
-
protoOf(Companion_4).
|
|
471
|
+
protoOf(Companion_4).a52 = function (type) {
|
|
472
472
|
return new TypeRefImpl(type);
|
|
473
473
|
};
|
|
474
474
|
var Companion_instance_12;
|
|
@@ -492,7 +492,7 @@
|
|
|
492
492
|
}
|
|
493
493
|
function create_0(_this__u8e3s4, objectConverter, arguments_0) {
|
|
494
494
|
_init_properties_TypeUtils_kt__wnsx0l();
|
|
495
|
-
var constructorRef = Companion_instance_9.
|
|
495
|
+
var constructorRef = Companion_instance_9.m51(_this__u8e3s4, objectConverter).f52(arguments_0);
|
|
496
496
|
return callWithPrologArguments(constructorRef, objectConverter, arguments_0);
|
|
497
497
|
}
|
|
498
498
|
function invoke_0(_this__u8e3s4, objectConverter, methodName, arguments_0) {
|
|
@@ -501,7 +501,7 @@
|
|
|
501
501
|
}
|
|
502
502
|
function invoke_1(_this__u8e3s4, objectConverter, methodName, arguments_0, instance) {
|
|
503
503
|
_init_properties_TypeUtils_kt__wnsx0l();
|
|
504
|
-
var methodRef = Companion_instance_9.
|
|
504
|
+
var methodRef = Companion_instance_9.m51(_this__u8e3s4, objectConverter).g52(methodName, arguments_0);
|
|
505
505
|
return callWithPrologArguments(methodRef, objectConverter, arguments_0, instance);
|
|
506
506
|
}
|
|
507
507
|
function assign_0(_this__u8e3s4, objectConverter, propertyName, value) {
|
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
}
|
|
511
511
|
function assign_1(_this__u8e3s4, objectConverter, propertyName, value, instance) {
|
|
512
512
|
_init_properties_TypeUtils_kt__wnsx0l();
|
|
513
|
-
var setterRef = get_setterMethod(Companion_instance_9.
|
|
513
|
+
var setterRef = get_setterMethod(Companion_instance_9.m51(_this__u8e3s4, objectConverter).h52(propertyName, value));
|
|
514
514
|
return callWithPrologArguments(setterRef, objectConverter, listOf_0(value), instance);
|
|
515
515
|
}
|
|
516
516
|
function isSubtypeOf_0(_this__u8e3s4, other, strict) {
|
|
@@ -525,14 +525,14 @@
|
|
|
525
525
|
// Inline function 'kotlin.collections.mapIndexedTo' call
|
|
526
526
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(arguments_0, 10));
|
|
527
527
|
var index = 0;
|
|
528
|
-
var _iterator__ex2g4s = arguments_0.
|
|
529
|
-
while (_iterator__ex2g4s.
|
|
530
|
-
var item = _iterator__ex2g4s.
|
|
528
|
+
var _iterator__ex2g4s = arguments_0.n();
|
|
529
|
+
while (_iterator__ex2g4s.q()) {
|
|
530
|
+
var item = _iterator__ex2g4s.r();
|
|
531
531
|
var _unary__edvuaz = index;
|
|
532
532
|
index = _unary__edvuaz + 1 | 0;
|
|
533
533
|
var i = checkIndexOverflow(_unary__edvuaz);
|
|
534
|
-
var tmp$ret$2 = converter.
|
|
535
|
-
destination.
|
|
534
|
+
var tmp$ret$2 = converter.w51(formalArgumentsTypes.x(i), item);
|
|
535
|
+
destination.l(tmp$ret$2);
|
|
536
536
|
}
|
|
537
537
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
538
538
|
var args = copyToArray(destination);
|
|
@@ -544,9 +544,9 @@
|
|
|
544
544
|
var tmp$ret$0;
|
|
545
545
|
$l$block: {
|
|
546
546
|
// Inline function 'kotlin.sequences.any' call
|
|
547
|
-
var _iterator__ex2g4s = tmp0.
|
|
548
|
-
while (_iterator__ex2g4s.
|
|
549
|
-
var element = _iterator__ex2g4s.
|
|
547
|
+
var _iterator__ex2g4s = tmp0.n();
|
|
548
|
+
while (_iterator__ex2g4s.q()) {
|
|
549
|
+
var element = _iterator__ex2g4s.r();
|
|
550
550
|
if (element.equals(_this__u8e3s4)) {
|
|
551
551
|
tmp$ret$0 = true;
|
|
552
552
|
break $l$block;
|
|
@@ -561,18 +561,18 @@
|
|
|
561
561
|
// Inline function 'kotlin.also' call
|
|
562
562
|
var this_0 = get_formalParameterTypes(_this__u8e3s4);
|
|
563
563
|
// Inline function 'kotlin.require' call
|
|
564
|
-
if (!(get_formalParameterTypes(_this__u8e3s4).
|
|
564
|
+
if (!(get_formalParameterTypes(_this__u8e3s4).s() === actualArguments.s())) {
|
|
565
565
|
var tmp = _this__u8e3s4.callableName;
|
|
566
566
|
// Inline function 'kotlin.collections.map' call
|
|
567
567
|
// Inline function 'kotlin.collections.mapTo' call
|
|
568
568
|
var destination = ArrayList_init_$Create$(collectionSizeOrDefault(this_0, 10));
|
|
569
|
-
var _iterator__ex2g4s = this_0.
|
|
570
|
-
while (_iterator__ex2g4s.
|
|
571
|
-
var item = _iterator__ex2g4s.
|
|
569
|
+
var _iterator__ex2g4s = this_0.n();
|
|
570
|
+
while (_iterator__ex2g4s.q()) {
|
|
571
|
+
var item = _iterator__ex2g4s.r();
|
|
572
572
|
var tmp$ret$6 = get_name(item);
|
|
573
|
-
destination.
|
|
573
|
+
destination.l(tmp$ret$6);
|
|
574
574
|
}
|
|
575
|
-
var message = trimMargin('\n |\n |Error while invoking ' + tmp + ' the expected argument types \n | ' + toString_0(destination) + ' \n |are not as many as the as the actual parameters (' + this_0.
|
|
575
|
+
var message = trimMargin('\n |\n |Error while invoking ' + tmp + ' the expected argument types \n | ' + toString_0(destination) + ' \n |are not as many as the as the actual parameters (' + this_0.s() + ' vs. ' + actualArguments.s() + '):\n | ' + toString_0(actualArguments) + '\n |\n ');
|
|
576
576
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
577
577
|
}
|
|
578
578
|
return this_0;
|
|
@@ -587,18 +587,18 @@
|
|
|
587
587
|
function _init_properties_TypeUtils_kt__wnsx0l() {
|
|
588
588
|
if (!properties_initialized_TypeUtils_kt_7pe6qv) {
|
|
589
589
|
properties_initialized_TypeUtils_kt_7pe6qv = true;
|
|
590
|
-
PRIMITIVE_TYPES = setOf([PrimitiveClasses_getInstance().
|
|
590
|
+
PRIMITIVE_TYPES = setOf([PrimitiveClasses_getInstance().ea(), PrimitiveClasses_getInstance().da(), PrimitiveClasses_getInstance().ca(), PrimitiveClasses_getInstance().ba(), getKClass(Char), PrimitiveClasses_getInstance().ga(), PrimitiveClasses_getInstance().fa()]);
|
|
591
591
|
}
|
|
592
592
|
}
|
|
593
593
|
function MalformedAliasException(dealiasingExpression) {
|
|
594
594
|
OopException_init_$Init$('This is not a dealiasing expression `' + dealiasingExpression.toString() + '` in the form ' + format(get_DEALIASING_TEMPLATE(), Companion_instance_0.prettyExpressionsPrettyVariablesDefaultOperators()), VOID, this);
|
|
595
595
|
captureStack(this, MalformedAliasException);
|
|
596
|
-
this.
|
|
596
|
+
this.i52_1 = dealiasingExpression;
|
|
597
597
|
}
|
|
598
|
-
protoOf(MalformedAliasException).
|
|
598
|
+
protoOf(MalformedAliasException).j52 = function (context, signature) {
|
|
599
599
|
var tmp = Companion_instance_1;
|
|
600
600
|
var tmp_0 = Expected_DEALIASING_EXPRESSION_getInstance();
|
|
601
|
-
var tmp_1 = this.
|
|
601
|
+
var tmp_1 = this.r28();
|
|
602
602
|
var tmp_2 = signature.toIndicator().toString();
|
|
603
603
|
var tmp0_safe_receiver = this.message;
|
|
604
604
|
var tmp_3;
|
|
@@ -622,20 +622,20 @@
|
|
|
622
622
|
}
|
|
623
623
|
return tmp.of(context, tmp_0, tmp_1, 'Error in ' + tmp_2 + ': ' + tmp_3);
|
|
624
624
|
};
|
|
625
|
-
protoOf(MalformedAliasException).
|
|
626
|
-
return this.
|
|
625
|
+
protoOf(MalformedAliasException).r28 = function () {
|
|
626
|
+
return this.i52_1;
|
|
627
627
|
};
|
|
628
628
|
function NoSuchAnAliasException(dealiasingExpression) {
|
|
629
629
|
OopException_init_$Init$('There exists no reference whose alias is `' + dealiasingExpression.get(0).toString() + '`', VOID, this);
|
|
630
630
|
captureStack(this, NoSuchAnAliasException);
|
|
631
|
-
this.
|
|
631
|
+
this.k52_1 = dealiasingExpression;
|
|
632
632
|
// Inline function 'kotlin.require' call
|
|
633
633
|
// Inline function 'kotlin.require' call
|
|
634
|
-
if (!Companion_getInstance().matches(this.
|
|
634
|
+
if (!Companion_getInstance().matches(this.k52_1, get_DEALIASING_TEMPLATE())) {
|
|
635
635
|
var message = 'Failed requirement.';
|
|
636
636
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
637
637
|
}
|
|
638
|
-
var tmp = this.
|
|
638
|
+
var tmp = this.k52_1.get(0);
|
|
639
639
|
// Inline function 'kotlin.require' call
|
|
640
640
|
// Inline function 'kotlin.require' call
|
|
641
641
|
if (!isInterface(tmp, Struct)) {
|
|
@@ -643,15 +643,15 @@
|
|
|
643
643
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
protoOf(NoSuchAnAliasException).
|
|
646
|
+
protoOf(NoSuchAnAliasException).j52 = function (context, signature) {
|
|
647
647
|
var tmp = Companion_instance_2;
|
|
648
648
|
var tmp_0 = ObjectType_OOP_ALIAS_getInstance();
|
|
649
|
-
var tmp_1 = this.
|
|
649
|
+
var tmp_1 = this.r28();
|
|
650
650
|
var tmp0_elvis_lhs = this.message;
|
|
651
651
|
return tmp.of(context, tmp_0, tmp_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
652
652
|
};
|
|
653
|
-
protoOf(NoSuchAnAliasException).
|
|
654
|
-
return this.
|
|
653
|
+
protoOf(NoSuchAnAliasException).r28 = function () {
|
|
654
|
+
return this.k52_1;
|
|
655
655
|
};
|
|
656
656
|
function OopException_init_$Init$(message, cause, $this) {
|
|
657
657
|
message = message === VOID ? null : message;
|
|
@@ -690,336 +690,336 @@
|
|
|
690
690
|
var tmp1_elvis_lhs = tmp;
|
|
691
691
|
OopException_init_$Init$(tmp1_elvis_lhs == null ? 'Term `' + term.toString() + '` cannot be converted into an object' : tmp1_elvis_lhs, VOID, this);
|
|
692
692
|
captureStack(this, TermToObjectConversionException);
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
693
|
+
this.l52_1 = term;
|
|
694
|
+
this.m52_1 = targetType;
|
|
695
695
|
}
|
|
696
|
-
protoOf(TermToObjectConversionException).
|
|
697
|
-
return Companion_instance_3.
|
|
696
|
+
protoOf(TermToObjectConversionException).j52 = function (context, signature) {
|
|
697
|
+
return Companion_instance_3.n2a(context, signature, Limit_OOP_OBJECT_getInstance(), this);
|
|
698
698
|
};
|
|
699
699
|
function NullRefImpl() {
|
|
700
700
|
NullRefImpl_instance = this;
|
|
701
|
-
this
|
|
701
|
+
this.n52_1 = Companion_getInstance_0().of(Companion_getInstance_10().j51(null));
|
|
702
702
|
}
|
|
703
|
-
protoOf(NullRefImpl).
|
|
703
|
+
protoOf(NullRefImpl).xx = function () {
|
|
704
704
|
return true;
|
|
705
705
|
};
|
|
706
|
-
protoOf(NullRefImpl).
|
|
706
|
+
protoOf(NullRefImpl).by = function () {
|
|
707
707
|
return this;
|
|
708
708
|
};
|
|
709
709
|
protoOf(NullRefImpl).asConstant = function () {
|
|
710
|
-
return this.
|
|
710
|
+
return this.by();
|
|
711
711
|
};
|
|
712
|
-
protoOf(NullRefImpl).
|
|
712
|
+
protoOf(NullRefImpl).bx = function () {
|
|
713
713
|
return this;
|
|
714
714
|
};
|
|
715
715
|
protoOf(NullRefImpl).freshCopy = function () {
|
|
716
|
-
return this.
|
|
716
|
+
return this.bx();
|
|
717
717
|
};
|
|
718
|
-
protoOf(NullRefImpl).
|
|
718
|
+
protoOf(NullRefImpl).cx = function (scope) {
|
|
719
719
|
return this;
|
|
720
720
|
};
|
|
721
721
|
protoOf(NullRefImpl).freshCopyFromScope = function (scope) {
|
|
722
|
-
return this.
|
|
722
|
+
return this.cx(scope);
|
|
723
723
|
};
|
|
724
|
-
protoOf(NullRefImpl).
|
|
724
|
+
protoOf(NullRefImpl).sx = function () {
|
|
725
725
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
726
726
|
};
|
|
727
|
-
protoOf(NullRefImpl).
|
|
728
|
-
return this.
|
|
727
|
+
protoOf(NullRefImpl).pr = function () {
|
|
728
|
+
return this.sx();
|
|
729
729
|
};
|
|
730
|
-
protoOf(NullRefImpl).
|
|
730
|
+
protoOf(NullRefImpl).r17 = function (substitution) {
|
|
731
731
|
return this;
|
|
732
732
|
};
|
|
733
733
|
protoOf(NullRefImpl).applySubstitution = function (substitution) {
|
|
734
|
-
return this.
|
|
734
|
+
return this.r17(substitution);
|
|
735
735
|
};
|
|
736
|
-
protoOf(NullRefImpl).
|
|
736
|
+
protoOf(NullRefImpl).g2u = function (substitution, substitutions) {
|
|
737
737
|
return this;
|
|
738
738
|
};
|
|
739
739
|
protoOf(NullRefImpl).apply = function (substitution, substitutions) {
|
|
740
|
-
return this.
|
|
740
|
+
return this.g2u(substitution, substitutions);
|
|
741
741
|
};
|
|
742
|
-
protoOf(NullRefImpl).
|
|
742
|
+
protoOf(NullRefImpl).f2u = function (substitution, substitutions) {
|
|
743
743
|
return this;
|
|
744
744
|
};
|
|
745
745
|
protoOf(NullRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
746
|
-
return this.
|
|
746
|
+
return this.f2u(substitution, substitutions);
|
|
747
747
|
};
|
|
748
|
-
protoOf(NullRefImpl).
|
|
748
|
+
protoOf(NullRefImpl).x16 = function (visitor) {
|
|
749
749
|
return visitor.visitAtom(this);
|
|
750
750
|
};
|
|
751
751
|
protoOf(NullRefImpl).accept = function (visitor) {
|
|
752
|
-
return this.
|
|
752
|
+
return this.x16(visitor);
|
|
753
753
|
};
|
|
754
|
-
protoOf(NullRefImpl).
|
|
755
|
-
return this
|
|
754
|
+
protoOf(NullRefImpl).dx = function () {
|
|
755
|
+
return this.n52_1.dx();
|
|
756
756
|
};
|
|
757
757
|
protoOf(NullRefImpl).asAtom = function () {
|
|
758
|
-
return this.
|
|
758
|
+
return this.dx();
|
|
759
759
|
};
|
|
760
|
-
protoOf(NullRefImpl).
|
|
761
|
-
return this
|
|
760
|
+
protoOf(NullRefImpl).sw = function () {
|
|
761
|
+
return this.n52_1.sw();
|
|
762
762
|
};
|
|
763
|
-
protoOf(NullRefImpl).
|
|
764
|
-
return this
|
|
763
|
+
protoOf(NullRefImpl).tw = function () {
|
|
764
|
+
return this.n52_1.tw();
|
|
765
765
|
};
|
|
766
|
-
protoOf(NullRefImpl).
|
|
767
|
-
return this
|
|
766
|
+
protoOf(NullRefImpl).uw = function () {
|
|
767
|
+
return this.n52_1.uw();
|
|
768
768
|
};
|
|
769
|
-
protoOf(NullRefImpl).
|
|
770
|
-
return this
|
|
769
|
+
protoOf(NullRefImpl).vw = function () {
|
|
770
|
+
return this.n52_1.vw();
|
|
771
771
|
};
|
|
772
|
-
protoOf(NullRefImpl).
|
|
773
|
-
return this
|
|
772
|
+
protoOf(NullRefImpl).ww = function () {
|
|
773
|
+
return this.n52_1.ww();
|
|
774
774
|
};
|
|
775
|
-
protoOf(NullRefImpl).
|
|
776
|
-
return this
|
|
775
|
+
protoOf(NullRefImpl).f1 = function () {
|
|
776
|
+
return this.n52_1.f1();
|
|
777
777
|
};
|
|
778
|
-
protoOf(NullRefImpl).
|
|
779
|
-
return this
|
|
778
|
+
protoOf(NullRefImpl).zw = function () {
|
|
779
|
+
return this.n52_1.zw();
|
|
780
780
|
};
|
|
781
|
-
protoOf(NullRefImpl).
|
|
782
|
-
return this
|
|
781
|
+
protoOf(NullRefImpl).ax = function () {
|
|
782
|
+
return this.n52_1.ax();
|
|
783
783
|
};
|
|
784
|
-
protoOf(NullRefImpl).
|
|
785
|
-
return this
|
|
784
|
+
protoOf(NullRefImpl).ox = function () {
|
|
785
|
+
return this.n52_1.ox();
|
|
786
786
|
};
|
|
787
787
|
protoOf(NullRefImpl).asStruct = function () {
|
|
788
|
-
return this.
|
|
788
|
+
return this.ox();
|
|
789
789
|
};
|
|
790
790
|
protoOf(NullRefImpl).append = function (argument) {
|
|
791
|
-
return this
|
|
791
|
+
return this.n52_1.append(argument);
|
|
792
792
|
};
|
|
793
793
|
protoOf(NullRefImpl).addLast = function (argument) {
|
|
794
|
-
return this
|
|
794
|
+
return this.n52_1.addLast(argument);
|
|
795
795
|
};
|
|
796
796
|
protoOf(NullRefImpl).addFirst = function (argument) {
|
|
797
|
-
return this
|
|
797
|
+
return this.n52_1.addFirst(argument);
|
|
798
798
|
};
|
|
799
799
|
protoOf(NullRefImpl).insertAt = function (index, argument) {
|
|
800
|
-
return this
|
|
800
|
+
return this.n52_1.insertAt(index, argument);
|
|
801
801
|
};
|
|
802
802
|
protoOf(NullRefImpl).setFunctor = function (functor) {
|
|
803
|
-
return this
|
|
803
|
+
return this.n52_1.setFunctor(functor);
|
|
804
804
|
};
|
|
805
805
|
protoOf(NullRefImpl).getArgAt = function (index) {
|
|
806
|
-
return this
|
|
806
|
+
return this.n52_1.getArgAt(index);
|
|
807
807
|
};
|
|
808
808
|
protoOf(NullRefImpl).setArgs = function (args) {
|
|
809
|
-
return this
|
|
809
|
+
return this.n52_1.setArgs(args);
|
|
810
810
|
};
|
|
811
811
|
protoOf(NullRefImpl).setArgsIterable = function (args) {
|
|
812
|
-
return this
|
|
812
|
+
return this.n52_1.setArgsIterable(args);
|
|
813
813
|
};
|
|
814
814
|
protoOf(NullRefImpl).setArgsSequence = function (args) {
|
|
815
|
-
return this
|
|
815
|
+
return this.n52_1.setArgsSequence(args);
|
|
816
816
|
};
|
|
817
817
|
protoOf(NullRefImpl).get = function (index) {
|
|
818
|
-
return this
|
|
818
|
+
return this.n52_1.get(index);
|
|
819
819
|
};
|
|
820
|
-
protoOf(NullRefImpl).
|
|
821
|
-
return this
|
|
820
|
+
protoOf(NullRefImpl).ex = function () {
|
|
821
|
+
return this.n52_1.ex();
|
|
822
822
|
};
|
|
823
|
-
protoOf(NullRefImpl).
|
|
824
|
-
return this
|
|
823
|
+
protoOf(NullRefImpl).fx = function () {
|
|
824
|
+
return this.n52_1.fx();
|
|
825
825
|
};
|
|
826
|
-
protoOf(NullRefImpl).
|
|
827
|
-
return this
|
|
826
|
+
protoOf(NullRefImpl).gx = function () {
|
|
827
|
+
return this.n52_1.gx();
|
|
828
828
|
};
|
|
829
|
-
protoOf(NullRefImpl).
|
|
830
|
-
return this
|
|
829
|
+
protoOf(NullRefImpl).jx = function () {
|
|
830
|
+
return this.n52_1.jx();
|
|
831
831
|
};
|
|
832
|
-
protoOf(NullRefImpl).
|
|
833
|
-
return this
|
|
832
|
+
protoOf(NullRefImpl).kx = function () {
|
|
833
|
+
return this.n52_1.kx();
|
|
834
834
|
};
|
|
835
|
-
protoOf(NullRefImpl).
|
|
836
|
-
return this
|
|
835
|
+
protoOf(NullRefImpl).lx = function () {
|
|
836
|
+
return this.n52_1.lx();
|
|
837
837
|
};
|
|
838
|
-
protoOf(NullRefImpl).
|
|
839
|
-
return this
|
|
838
|
+
protoOf(NullRefImpl).nx = function () {
|
|
839
|
+
return this.n52_1.nx();
|
|
840
840
|
};
|
|
841
|
-
protoOf(NullRefImpl).
|
|
842
|
-
return this
|
|
841
|
+
protoOf(NullRefImpl).yw = function () {
|
|
842
|
+
return this.n52_1.yw();
|
|
843
843
|
};
|
|
844
|
-
protoOf(NullRefImpl).
|
|
845
|
-
return this
|
|
844
|
+
protoOf(NullRefImpl).px = function () {
|
|
845
|
+
return this.n52_1.px();
|
|
846
846
|
};
|
|
847
|
-
protoOf(NullRefImpl).
|
|
848
|
-
return this
|
|
847
|
+
protoOf(NullRefImpl).qx = function () {
|
|
848
|
+
return this.n52_1.qx();
|
|
849
849
|
};
|
|
850
|
-
protoOf(NullRefImpl).
|
|
851
|
-
return this
|
|
850
|
+
protoOf(NullRefImpl).rx = function () {
|
|
851
|
+
return this.n52_1.rx();
|
|
852
852
|
};
|
|
853
|
-
protoOf(NullRefImpl).
|
|
854
|
-
return this
|
|
853
|
+
protoOf(NullRefImpl).tx = function (other) {
|
|
854
|
+
return this.n52_1.tx(other);
|
|
855
855
|
};
|
|
856
|
-
protoOf(NullRefImpl).
|
|
857
|
-
return this.
|
|
856
|
+
protoOf(NullRefImpl).d = function (other) {
|
|
857
|
+
return this.tx((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
858
858
|
};
|
|
859
859
|
protoOf(NullRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
860
|
-
return this
|
|
860
|
+
return this.n52_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
861
861
|
};
|
|
862
862
|
protoOf(NullRefImpl).equals = function (other) {
|
|
863
|
-
return this
|
|
863
|
+
return this.n52_1.equals(other);
|
|
864
864
|
};
|
|
865
865
|
protoOf(NullRefImpl).structurallyEquals = function (other) {
|
|
866
|
-
return this
|
|
866
|
+
return this.n52_1.structurallyEquals(other);
|
|
867
867
|
};
|
|
868
868
|
protoOf(NullRefImpl).castToAtom = function () {
|
|
869
|
-
return this
|
|
869
|
+
return this.n52_1.castToAtom();
|
|
870
870
|
};
|
|
871
871
|
protoOf(NullRefImpl).castToClause = function () {
|
|
872
|
-
return this
|
|
872
|
+
return this.n52_1.castToClause();
|
|
873
873
|
};
|
|
874
874
|
protoOf(NullRefImpl).castToCons = function () {
|
|
875
|
-
return this
|
|
875
|
+
return this.n52_1.castToCons();
|
|
876
876
|
};
|
|
877
877
|
protoOf(NullRefImpl).castToConstant = function () {
|
|
878
|
-
return this
|
|
878
|
+
return this.n52_1.castToConstant();
|
|
879
879
|
};
|
|
880
880
|
protoOf(NullRefImpl).castToDirective = function () {
|
|
881
|
-
return this
|
|
881
|
+
return this.n52_1.castToDirective();
|
|
882
882
|
};
|
|
883
883
|
protoOf(NullRefImpl).castToEmptyList = function () {
|
|
884
|
-
return this
|
|
884
|
+
return this.n52_1.castToEmptyList();
|
|
885
885
|
};
|
|
886
886
|
protoOf(NullRefImpl).castToEmptyBlock = function () {
|
|
887
|
-
return this
|
|
887
|
+
return this.n52_1.castToEmptyBlock();
|
|
888
888
|
};
|
|
889
889
|
protoOf(NullRefImpl).castToFact = function () {
|
|
890
|
-
return this
|
|
890
|
+
return this.n52_1.castToFact();
|
|
891
891
|
};
|
|
892
892
|
protoOf(NullRefImpl).castToIndicator = function () {
|
|
893
|
-
return this
|
|
893
|
+
return this.n52_1.castToIndicator();
|
|
894
894
|
};
|
|
895
895
|
protoOf(NullRefImpl).castToInteger = function () {
|
|
896
|
-
return this
|
|
896
|
+
return this.n52_1.castToInteger();
|
|
897
897
|
};
|
|
898
898
|
protoOf(NullRefImpl).castToList = function () {
|
|
899
|
-
return this
|
|
899
|
+
return this.n52_1.castToList();
|
|
900
900
|
};
|
|
901
901
|
protoOf(NullRefImpl).castToNumeric = function () {
|
|
902
|
-
return this
|
|
902
|
+
return this.n52_1.castToNumeric();
|
|
903
903
|
};
|
|
904
904
|
protoOf(NullRefImpl).castToReal = function () {
|
|
905
|
-
return this
|
|
905
|
+
return this.n52_1.castToReal();
|
|
906
906
|
};
|
|
907
907
|
protoOf(NullRefImpl).castToRule = function () {
|
|
908
|
-
return this
|
|
908
|
+
return this.n52_1.castToRule();
|
|
909
909
|
};
|
|
910
910
|
protoOf(NullRefImpl).castToBlock = function () {
|
|
911
|
-
return this
|
|
911
|
+
return this.n52_1.castToBlock();
|
|
912
912
|
};
|
|
913
913
|
protoOf(NullRefImpl).castToStruct = function () {
|
|
914
|
-
return this
|
|
914
|
+
return this.n52_1.castToStruct();
|
|
915
915
|
};
|
|
916
916
|
protoOf(NullRefImpl).castToRecursive = function () {
|
|
917
|
-
return this
|
|
917
|
+
return this.n52_1.castToRecursive();
|
|
918
918
|
};
|
|
919
919
|
protoOf(NullRefImpl).castToTerm = function () {
|
|
920
|
-
return this
|
|
920
|
+
return this.n52_1.castToTerm();
|
|
921
921
|
};
|
|
922
922
|
protoOf(NullRefImpl).castToTruth = function () {
|
|
923
|
-
return this
|
|
923
|
+
return this.n52_1.castToTruth();
|
|
924
924
|
};
|
|
925
925
|
protoOf(NullRefImpl).castToTuple = function () {
|
|
926
|
-
return this
|
|
926
|
+
return this.n52_1.castToTuple();
|
|
927
927
|
};
|
|
928
928
|
protoOf(NullRefImpl).castToVar = function () {
|
|
929
|
-
return this
|
|
929
|
+
return this.n52_1.castToVar();
|
|
930
930
|
};
|
|
931
931
|
protoOf(NullRefImpl).asClause = function () {
|
|
932
|
-
return this
|
|
932
|
+
return this.n52_1.asClause();
|
|
933
933
|
};
|
|
934
934
|
protoOf(NullRefImpl).asCons = function () {
|
|
935
|
-
return this
|
|
935
|
+
return this.n52_1.asCons();
|
|
936
936
|
};
|
|
937
937
|
protoOf(NullRefImpl).asDirective = function () {
|
|
938
|
-
return this
|
|
938
|
+
return this.n52_1.asDirective();
|
|
939
939
|
};
|
|
940
940
|
protoOf(NullRefImpl).asEmptyList = function () {
|
|
941
|
-
return this
|
|
941
|
+
return this.n52_1.asEmptyList();
|
|
942
942
|
};
|
|
943
943
|
protoOf(NullRefImpl).asEmptyBlock = function () {
|
|
944
|
-
return this
|
|
944
|
+
return this.n52_1.asEmptyBlock();
|
|
945
945
|
};
|
|
946
946
|
protoOf(NullRefImpl).asFact = function () {
|
|
947
|
-
return this
|
|
947
|
+
return this.n52_1.asFact();
|
|
948
948
|
};
|
|
949
949
|
protoOf(NullRefImpl).asIndicator = function () {
|
|
950
|
-
return this
|
|
950
|
+
return this.n52_1.asIndicator();
|
|
951
951
|
};
|
|
952
952
|
protoOf(NullRefImpl).asInteger = function () {
|
|
953
|
-
return this
|
|
953
|
+
return this.n52_1.asInteger();
|
|
954
954
|
};
|
|
955
955
|
protoOf(NullRefImpl).asList = function () {
|
|
956
|
-
return this
|
|
956
|
+
return this.n52_1.asList();
|
|
957
957
|
};
|
|
958
958
|
protoOf(NullRefImpl).asNumeric = function () {
|
|
959
|
-
return this
|
|
959
|
+
return this.n52_1.asNumeric();
|
|
960
960
|
};
|
|
961
961
|
protoOf(NullRefImpl).asReal = function () {
|
|
962
|
-
return this
|
|
962
|
+
return this.n52_1.asReal();
|
|
963
963
|
};
|
|
964
964
|
protoOf(NullRefImpl).asRule = function () {
|
|
965
|
-
return this
|
|
965
|
+
return this.n52_1.asRule();
|
|
966
966
|
};
|
|
967
967
|
protoOf(NullRefImpl).asBlock = function () {
|
|
968
|
-
return this
|
|
968
|
+
return this.n52_1.asBlock();
|
|
969
969
|
};
|
|
970
970
|
protoOf(NullRefImpl).asRecursive = function () {
|
|
971
|
-
return this
|
|
971
|
+
return this.n52_1.asRecursive();
|
|
972
972
|
};
|
|
973
973
|
protoOf(NullRefImpl).asTerm = function () {
|
|
974
|
-
return this
|
|
974
|
+
return this.n52_1.asTerm();
|
|
975
975
|
};
|
|
976
976
|
protoOf(NullRefImpl).asTruth = function () {
|
|
977
|
-
return this
|
|
977
|
+
return this.n52_1.asTruth();
|
|
978
978
|
};
|
|
979
979
|
protoOf(NullRefImpl).asTuple = function () {
|
|
980
|
-
return this
|
|
980
|
+
return this.n52_1.asTuple();
|
|
981
981
|
};
|
|
982
982
|
protoOf(NullRefImpl).asVar = function () {
|
|
983
|
-
return this
|
|
983
|
+
return this.n52_1.asVar();
|
|
984
984
|
};
|
|
985
985
|
protoOf(NullRefImpl).hashCode = function () {
|
|
986
|
-
return this
|
|
986
|
+
return this.n52_1.hashCode();
|
|
987
987
|
};
|
|
988
988
|
protoOf(NullRefImpl).toString = function () {
|
|
989
|
-
return this
|
|
989
|
+
return this.n52_1.toString();
|
|
990
990
|
};
|
|
991
|
-
protoOf(NullRefImpl).
|
|
992
|
-
return this
|
|
991
|
+
protoOf(NullRefImpl).ux = function () {
|
|
992
|
+
return this.n52_1.ux();
|
|
993
993
|
};
|
|
994
|
-
protoOf(NullRefImpl).
|
|
995
|
-
return this
|
|
994
|
+
protoOf(NullRefImpl).vx = function () {
|
|
995
|
+
return this.n52_1.vx();
|
|
996
996
|
};
|
|
997
|
-
protoOf(NullRefImpl).
|
|
998
|
-
return this
|
|
997
|
+
protoOf(NullRefImpl).wx = function () {
|
|
998
|
+
return this.n52_1.wx();
|
|
999
999
|
};
|
|
1000
|
-
protoOf(NullRefImpl).
|
|
1001
|
-
return this
|
|
1000
|
+
protoOf(NullRefImpl).yx = function () {
|
|
1001
|
+
return this.n52_1.yx();
|
|
1002
1002
|
};
|
|
1003
|
-
protoOf(NullRefImpl).
|
|
1004
|
-
return this
|
|
1003
|
+
protoOf(NullRefImpl).zx = function () {
|
|
1004
|
+
return this.n52_1.zx();
|
|
1005
1005
|
};
|
|
1006
|
-
protoOf(NullRefImpl).
|
|
1007
|
-
return this
|
|
1006
|
+
protoOf(NullRefImpl).ay = function () {
|
|
1007
|
+
return this.n52_1.ay();
|
|
1008
1008
|
};
|
|
1009
1009
|
protoOf(NullRefImpl).getTag = function (name) {
|
|
1010
|
-
return this
|
|
1010
|
+
return this.n52_1.getTag(name);
|
|
1011
1011
|
};
|
|
1012
1012
|
protoOf(NullRefImpl).resetTags = function (tags) {
|
|
1013
|
-
return this
|
|
1013
|
+
return this.n52_1.resetTags(tags);
|
|
1014
1014
|
};
|
|
1015
1015
|
protoOf(NullRefImpl).containsTag = function (name) {
|
|
1016
|
-
return this
|
|
1016
|
+
return this.n52_1.containsTag(name);
|
|
1017
1017
|
};
|
|
1018
|
-
protoOf(NullRefImpl).
|
|
1019
|
-
return this
|
|
1018
|
+
protoOf(NullRefImpl).du = function () {
|
|
1019
|
+
return this.n52_1.du();
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(NullRefImpl).
|
|
1022
|
-
return this
|
|
1021
|
+
protoOf(NullRefImpl).cy = function () {
|
|
1022
|
+
return this.n52_1.cy();
|
|
1023
1023
|
};
|
|
1024
1024
|
var NullRefImpl_instance;
|
|
1025
1025
|
function NullRefImpl_getInstance() {
|
|
@@ -1028,349 +1028,349 @@
|
|
|
1028
1028
|
return NullRefImpl_instance;
|
|
1029
1029
|
}
|
|
1030
1030
|
function ObjectRefImpl(object) {
|
|
1031
|
-
this
|
|
1032
|
-
this.
|
|
1031
|
+
this.o52_1 = Companion_getInstance_0().of(Companion_getInstance_10().j51(object));
|
|
1032
|
+
this.p52_1 = object;
|
|
1033
1033
|
}
|
|
1034
|
-
protoOf(ObjectRefImpl).
|
|
1035
|
-
return this.
|
|
1034
|
+
protoOf(ObjectRefImpl).b51 = function () {
|
|
1035
|
+
return this.p52_1;
|
|
1036
1036
|
};
|
|
1037
|
-
protoOf(ObjectRefImpl).
|
|
1037
|
+
protoOf(ObjectRefImpl).xx = function () {
|
|
1038
1038
|
return true;
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(ObjectRefImpl).
|
|
1040
|
+
protoOf(ObjectRefImpl).by = function () {
|
|
1041
1041
|
return this;
|
|
1042
1042
|
};
|
|
1043
1043
|
protoOf(ObjectRefImpl).asConstant = function () {
|
|
1044
|
-
return this.
|
|
1044
|
+
return this.by();
|
|
1045
1045
|
};
|
|
1046
|
-
protoOf(ObjectRefImpl).
|
|
1047
|
-
return invoke_0(this.
|
|
1046
|
+
protoOf(ObjectRefImpl).c51 = function (objectConverter, methodName, arguments_0) {
|
|
1047
|
+
return invoke_0(this.p52_1, objectConverter, methodName, arguments_0);
|
|
1048
1048
|
};
|
|
1049
|
-
protoOf(ObjectRefImpl).
|
|
1050
|
-
assign_0(this.
|
|
1049
|
+
protoOf(ObjectRefImpl).d51 = function (objectConverter, propertyName, value) {
|
|
1050
|
+
assign_0(this.p52_1, objectConverter, propertyName, value);
|
|
1051
1051
|
return true;
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(ObjectRefImpl).
|
|
1053
|
+
protoOf(ObjectRefImpl).bx = function () {
|
|
1054
1054
|
return this;
|
|
1055
1055
|
};
|
|
1056
1056
|
protoOf(ObjectRefImpl).freshCopy = function () {
|
|
1057
|
-
return this.
|
|
1057
|
+
return this.bx();
|
|
1058
1058
|
};
|
|
1059
|
-
protoOf(ObjectRefImpl).
|
|
1059
|
+
protoOf(ObjectRefImpl).cx = function (scope) {
|
|
1060
1060
|
return this;
|
|
1061
1061
|
};
|
|
1062
1062
|
protoOf(ObjectRefImpl).freshCopyFromScope = function (scope) {
|
|
1063
|
-
return this.
|
|
1063
|
+
return this.cx(scope);
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(ObjectRefImpl).
|
|
1065
|
+
protoOf(ObjectRefImpl).sx = function () {
|
|
1066
1066
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(ObjectRefImpl).
|
|
1069
|
-
return this.
|
|
1068
|
+
protoOf(ObjectRefImpl).pr = function () {
|
|
1069
|
+
return this.sx();
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(ObjectRefImpl).
|
|
1071
|
+
protoOf(ObjectRefImpl).r17 = function (substitution) {
|
|
1072
1072
|
return this;
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(ObjectRefImpl).applySubstitution = function (substitution) {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.r17(substitution);
|
|
1076
1076
|
};
|
|
1077
|
-
protoOf(ObjectRefImpl).
|
|
1077
|
+
protoOf(ObjectRefImpl).g2u = function (substitution, substitutions) {
|
|
1078
1078
|
return this;
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(ObjectRefImpl).apply = function (substitution, substitutions) {
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.g2u(substitution, substitutions);
|
|
1082
1082
|
};
|
|
1083
|
-
protoOf(ObjectRefImpl).
|
|
1083
|
+
protoOf(ObjectRefImpl).f2u = function (substitution, substitutions) {
|
|
1084
1084
|
return this;
|
|
1085
1085
|
};
|
|
1086
1086
|
protoOf(ObjectRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1087
|
-
return this.
|
|
1087
|
+
return this.f2u(substitution, substitutions);
|
|
1088
1088
|
};
|
|
1089
|
-
protoOf(ObjectRefImpl).
|
|
1089
|
+
protoOf(ObjectRefImpl).x16 = function (visitor) {
|
|
1090
1090
|
return visitor.visitAtom(this);
|
|
1091
1091
|
};
|
|
1092
1092
|
protoOf(ObjectRefImpl).accept = function (visitor) {
|
|
1093
|
-
return this.
|
|
1093
|
+
return this.x16(visitor);
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(ObjectRefImpl).
|
|
1096
|
-
return this
|
|
1095
|
+
protoOf(ObjectRefImpl).dx = function () {
|
|
1096
|
+
return this.o52_1.dx();
|
|
1097
1097
|
};
|
|
1098
1098
|
protoOf(ObjectRefImpl).asAtom = function () {
|
|
1099
|
-
return this.
|
|
1099
|
+
return this.dx();
|
|
1100
1100
|
};
|
|
1101
|
-
protoOf(ObjectRefImpl).
|
|
1102
|
-
return this
|
|
1101
|
+
protoOf(ObjectRefImpl).sw = function () {
|
|
1102
|
+
return this.o52_1.sw();
|
|
1103
1103
|
};
|
|
1104
|
-
protoOf(ObjectRefImpl).
|
|
1105
|
-
return this
|
|
1104
|
+
protoOf(ObjectRefImpl).tw = function () {
|
|
1105
|
+
return this.o52_1.tw();
|
|
1106
1106
|
};
|
|
1107
|
-
protoOf(ObjectRefImpl).
|
|
1108
|
-
return this
|
|
1107
|
+
protoOf(ObjectRefImpl).uw = function () {
|
|
1108
|
+
return this.o52_1.uw();
|
|
1109
1109
|
};
|
|
1110
|
-
protoOf(ObjectRefImpl).
|
|
1111
|
-
return this
|
|
1110
|
+
protoOf(ObjectRefImpl).vw = function () {
|
|
1111
|
+
return this.o52_1.vw();
|
|
1112
1112
|
};
|
|
1113
|
-
protoOf(ObjectRefImpl).
|
|
1114
|
-
return this
|
|
1113
|
+
protoOf(ObjectRefImpl).ww = function () {
|
|
1114
|
+
return this.o52_1.ww();
|
|
1115
1115
|
};
|
|
1116
|
-
protoOf(ObjectRefImpl).
|
|
1117
|
-
return this
|
|
1116
|
+
protoOf(ObjectRefImpl).f1 = function () {
|
|
1117
|
+
return this.o52_1.f1();
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf(ObjectRefImpl).
|
|
1120
|
-
return this
|
|
1119
|
+
protoOf(ObjectRefImpl).zw = function () {
|
|
1120
|
+
return this.o52_1.zw();
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf(ObjectRefImpl).
|
|
1123
|
-
return this
|
|
1122
|
+
protoOf(ObjectRefImpl).ax = function () {
|
|
1123
|
+
return this.o52_1.ax();
|
|
1124
1124
|
};
|
|
1125
|
-
protoOf(ObjectRefImpl).
|
|
1126
|
-
return this
|
|
1125
|
+
protoOf(ObjectRefImpl).ox = function () {
|
|
1126
|
+
return this.o52_1.ox();
|
|
1127
1127
|
};
|
|
1128
1128
|
protoOf(ObjectRefImpl).asStruct = function () {
|
|
1129
|
-
return this.
|
|
1129
|
+
return this.ox();
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(ObjectRefImpl).append = function (argument) {
|
|
1132
|
-
return this
|
|
1132
|
+
return this.o52_1.append(argument);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(ObjectRefImpl).addLast = function (argument) {
|
|
1135
|
-
return this
|
|
1135
|
+
return this.o52_1.addLast(argument);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(ObjectRefImpl).addFirst = function (argument) {
|
|
1138
|
-
return this
|
|
1138
|
+
return this.o52_1.addFirst(argument);
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(ObjectRefImpl).insertAt = function (index, argument) {
|
|
1141
|
-
return this
|
|
1141
|
+
return this.o52_1.insertAt(index, argument);
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(ObjectRefImpl).setFunctor = function (functor) {
|
|
1144
|
-
return this
|
|
1144
|
+
return this.o52_1.setFunctor(functor);
|
|
1145
1145
|
};
|
|
1146
1146
|
protoOf(ObjectRefImpl).getArgAt = function (index) {
|
|
1147
|
-
return this
|
|
1147
|
+
return this.o52_1.getArgAt(index);
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(ObjectRefImpl).setArgs = function (args) {
|
|
1150
|
-
return this
|
|
1150
|
+
return this.o52_1.setArgs(args);
|
|
1151
1151
|
};
|
|
1152
1152
|
protoOf(ObjectRefImpl).setArgsIterable = function (args) {
|
|
1153
|
-
return this
|
|
1153
|
+
return this.o52_1.setArgsIterable(args);
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(ObjectRefImpl).setArgsSequence = function (args) {
|
|
1156
|
-
return this
|
|
1156
|
+
return this.o52_1.setArgsSequence(args);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(ObjectRefImpl).get = function (index) {
|
|
1159
|
-
return this
|
|
1159
|
+
return this.o52_1.get(index);
|
|
1160
1160
|
};
|
|
1161
|
-
protoOf(ObjectRefImpl).
|
|
1162
|
-
return this
|
|
1161
|
+
protoOf(ObjectRefImpl).ex = function () {
|
|
1162
|
+
return this.o52_1.ex();
|
|
1163
1163
|
};
|
|
1164
|
-
protoOf(ObjectRefImpl).
|
|
1165
|
-
return this
|
|
1164
|
+
protoOf(ObjectRefImpl).fx = function () {
|
|
1165
|
+
return this.o52_1.fx();
|
|
1166
1166
|
};
|
|
1167
|
-
protoOf(ObjectRefImpl).
|
|
1168
|
-
return this
|
|
1167
|
+
protoOf(ObjectRefImpl).gx = function () {
|
|
1168
|
+
return this.o52_1.gx();
|
|
1169
1169
|
};
|
|
1170
|
-
protoOf(ObjectRefImpl).
|
|
1171
|
-
return this
|
|
1170
|
+
protoOf(ObjectRefImpl).jx = function () {
|
|
1171
|
+
return this.o52_1.jx();
|
|
1172
1172
|
};
|
|
1173
|
-
protoOf(ObjectRefImpl).
|
|
1174
|
-
return this
|
|
1173
|
+
protoOf(ObjectRefImpl).kx = function () {
|
|
1174
|
+
return this.o52_1.kx();
|
|
1175
1175
|
};
|
|
1176
|
-
protoOf(ObjectRefImpl).
|
|
1177
|
-
return this
|
|
1176
|
+
protoOf(ObjectRefImpl).lx = function () {
|
|
1177
|
+
return this.o52_1.lx();
|
|
1178
1178
|
};
|
|
1179
|
-
protoOf(ObjectRefImpl).
|
|
1180
|
-
return this
|
|
1179
|
+
protoOf(ObjectRefImpl).nx = function () {
|
|
1180
|
+
return this.o52_1.nx();
|
|
1181
1181
|
};
|
|
1182
|
-
protoOf(ObjectRefImpl).
|
|
1183
|
-
return this
|
|
1182
|
+
protoOf(ObjectRefImpl).yw = function () {
|
|
1183
|
+
return this.o52_1.yw();
|
|
1184
1184
|
};
|
|
1185
|
-
protoOf(ObjectRefImpl).
|
|
1186
|
-
return this
|
|
1185
|
+
protoOf(ObjectRefImpl).px = function () {
|
|
1186
|
+
return this.o52_1.px();
|
|
1187
1187
|
};
|
|
1188
|
-
protoOf(ObjectRefImpl).
|
|
1189
|
-
return this
|
|
1188
|
+
protoOf(ObjectRefImpl).qx = function () {
|
|
1189
|
+
return this.o52_1.qx();
|
|
1190
1190
|
};
|
|
1191
|
-
protoOf(ObjectRefImpl).
|
|
1192
|
-
return this
|
|
1191
|
+
protoOf(ObjectRefImpl).rx = function () {
|
|
1192
|
+
return this.o52_1.rx();
|
|
1193
1193
|
};
|
|
1194
|
-
protoOf(ObjectRefImpl).
|
|
1195
|
-
return this
|
|
1194
|
+
protoOf(ObjectRefImpl).tx = function (other) {
|
|
1195
|
+
return this.o52_1.tx(other);
|
|
1196
1196
|
};
|
|
1197
|
-
protoOf(ObjectRefImpl).
|
|
1198
|
-
return this.
|
|
1197
|
+
protoOf(ObjectRefImpl).d = function (other) {
|
|
1198
|
+
return this.tx((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1199
1199
|
};
|
|
1200
1200
|
protoOf(ObjectRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1201
|
-
return this
|
|
1201
|
+
return this.o52_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1202
1202
|
};
|
|
1203
1203
|
protoOf(ObjectRefImpl).equals = function (other) {
|
|
1204
|
-
return this
|
|
1204
|
+
return this.o52_1.equals(other);
|
|
1205
1205
|
};
|
|
1206
1206
|
protoOf(ObjectRefImpl).structurallyEquals = function (other) {
|
|
1207
|
-
return this
|
|
1207
|
+
return this.o52_1.structurallyEquals(other);
|
|
1208
1208
|
};
|
|
1209
1209
|
protoOf(ObjectRefImpl).castToAtom = function () {
|
|
1210
|
-
return this
|
|
1210
|
+
return this.o52_1.castToAtom();
|
|
1211
1211
|
};
|
|
1212
1212
|
protoOf(ObjectRefImpl).castToClause = function () {
|
|
1213
|
-
return this
|
|
1213
|
+
return this.o52_1.castToClause();
|
|
1214
1214
|
};
|
|
1215
1215
|
protoOf(ObjectRefImpl).castToCons = function () {
|
|
1216
|
-
return this
|
|
1216
|
+
return this.o52_1.castToCons();
|
|
1217
1217
|
};
|
|
1218
1218
|
protoOf(ObjectRefImpl).castToConstant = function () {
|
|
1219
|
-
return this
|
|
1219
|
+
return this.o52_1.castToConstant();
|
|
1220
1220
|
};
|
|
1221
1221
|
protoOf(ObjectRefImpl).castToDirective = function () {
|
|
1222
|
-
return this
|
|
1222
|
+
return this.o52_1.castToDirective();
|
|
1223
1223
|
};
|
|
1224
1224
|
protoOf(ObjectRefImpl).castToEmptyList = function () {
|
|
1225
|
-
return this
|
|
1225
|
+
return this.o52_1.castToEmptyList();
|
|
1226
1226
|
};
|
|
1227
1227
|
protoOf(ObjectRefImpl).castToEmptyBlock = function () {
|
|
1228
|
-
return this
|
|
1228
|
+
return this.o52_1.castToEmptyBlock();
|
|
1229
1229
|
};
|
|
1230
1230
|
protoOf(ObjectRefImpl).castToFact = function () {
|
|
1231
|
-
return this
|
|
1231
|
+
return this.o52_1.castToFact();
|
|
1232
1232
|
};
|
|
1233
1233
|
protoOf(ObjectRefImpl).castToIndicator = function () {
|
|
1234
|
-
return this
|
|
1234
|
+
return this.o52_1.castToIndicator();
|
|
1235
1235
|
};
|
|
1236
1236
|
protoOf(ObjectRefImpl).castToInteger = function () {
|
|
1237
|
-
return this
|
|
1237
|
+
return this.o52_1.castToInteger();
|
|
1238
1238
|
};
|
|
1239
1239
|
protoOf(ObjectRefImpl).castToList = function () {
|
|
1240
|
-
return this
|
|
1240
|
+
return this.o52_1.castToList();
|
|
1241
1241
|
};
|
|
1242
1242
|
protoOf(ObjectRefImpl).castToNumeric = function () {
|
|
1243
|
-
return this
|
|
1243
|
+
return this.o52_1.castToNumeric();
|
|
1244
1244
|
};
|
|
1245
1245
|
protoOf(ObjectRefImpl).castToReal = function () {
|
|
1246
|
-
return this
|
|
1246
|
+
return this.o52_1.castToReal();
|
|
1247
1247
|
};
|
|
1248
1248
|
protoOf(ObjectRefImpl).castToRule = function () {
|
|
1249
|
-
return this
|
|
1249
|
+
return this.o52_1.castToRule();
|
|
1250
1250
|
};
|
|
1251
1251
|
protoOf(ObjectRefImpl).castToBlock = function () {
|
|
1252
|
-
return this
|
|
1252
|
+
return this.o52_1.castToBlock();
|
|
1253
1253
|
};
|
|
1254
1254
|
protoOf(ObjectRefImpl).castToStruct = function () {
|
|
1255
|
-
return this
|
|
1255
|
+
return this.o52_1.castToStruct();
|
|
1256
1256
|
};
|
|
1257
1257
|
protoOf(ObjectRefImpl).castToRecursive = function () {
|
|
1258
|
-
return this
|
|
1258
|
+
return this.o52_1.castToRecursive();
|
|
1259
1259
|
};
|
|
1260
1260
|
protoOf(ObjectRefImpl).castToTerm = function () {
|
|
1261
|
-
return this
|
|
1261
|
+
return this.o52_1.castToTerm();
|
|
1262
1262
|
};
|
|
1263
1263
|
protoOf(ObjectRefImpl).castToTruth = function () {
|
|
1264
|
-
return this
|
|
1264
|
+
return this.o52_1.castToTruth();
|
|
1265
1265
|
};
|
|
1266
1266
|
protoOf(ObjectRefImpl).castToTuple = function () {
|
|
1267
|
-
return this
|
|
1267
|
+
return this.o52_1.castToTuple();
|
|
1268
1268
|
};
|
|
1269
1269
|
protoOf(ObjectRefImpl).castToVar = function () {
|
|
1270
|
-
return this
|
|
1270
|
+
return this.o52_1.castToVar();
|
|
1271
1271
|
};
|
|
1272
1272
|
protoOf(ObjectRefImpl).asClause = function () {
|
|
1273
|
-
return this
|
|
1273
|
+
return this.o52_1.asClause();
|
|
1274
1274
|
};
|
|
1275
1275
|
protoOf(ObjectRefImpl).asCons = function () {
|
|
1276
|
-
return this
|
|
1276
|
+
return this.o52_1.asCons();
|
|
1277
1277
|
};
|
|
1278
1278
|
protoOf(ObjectRefImpl).asDirective = function () {
|
|
1279
|
-
return this
|
|
1279
|
+
return this.o52_1.asDirective();
|
|
1280
1280
|
};
|
|
1281
1281
|
protoOf(ObjectRefImpl).asEmptyList = function () {
|
|
1282
|
-
return this
|
|
1282
|
+
return this.o52_1.asEmptyList();
|
|
1283
1283
|
};
|
|
1284
1284
|
protoOf(ObjectRefImpl).asEmptyBlock = function () {
|
|
1285
|
-
return this
|
|
1285
|
+
return this.o52_1.asEmptyBlock();
|
|
1286
1286
|
};
|
|
1287
1287
|
protoOf(ObjectRefImpl).asFact = function () {
|
|
1288
|
-
return this
|
|
1288
|
+
return this.o52_1.asFact();
|
|
1289
1289
|
};
|
|
1290
1290
|
protoOf(ObjectRefImpl).asIndicator = function () {
|
|
1291
|
-
return this
|
|
1291
|
+
return this.o52_1.asIndicator();
|
|
1292
1292
|
};
|
|
1293
1293
|
protoOf(ObjectRefImpl).asInteger = function () {
|
|
1294
|
-
return this
|
|
1294
|
+
return this.o52_1.asInteger();
|
|
1295
1295
|
};
|
|
1296
1296
|
protoOf(ObjectRefImpl).asList = function () {
|
|
1297
|
-
return this
|
|
1297
|
+
return this.o52_1.asList();
|
|
1298
1298
|
};
|
|
1299
1299
|
protoOf(ObjectRefImpl).asNumeric = function () {
|
|
1300
|
-
return this
|
|
1300
|
+
return this.o52_1.asNumeric();
|
|
1301
1301
|
};
|
|
1302
1302
|
protoOf(ObjectRefImpl).asReal = function () {
|
|
1303
|
-
return this
|
|
1303
|
+
return this.o52_1.asReal();
|
|
1304
1304
|
};
|
|
1305
1305
|
protoOf(ObjectRefImpl).asRule = function () {
|
|
1306
|
-
return this
|
|
1306
|
+
return this.o52_1.asRule();
|
|
1307
1307
|
};
|
|
1308
1308
|
protoOf(ObjectRefImpl).asBlock = function () {
|
|
1309
|
-
return this
|
|
1309
|
+
return this.o52_1.asBlock();
|
|
1310
1310
|
};
|
|
1311
1311
|
protoOf(ObjectRefImpl).asRecursive = function () {
|
|
1312
|
-
return this
|
|
1312
|
+
return this.o52_1.asRecursive();
|
|
1313
1313
|
};
|
|
1314
1314
|
protoOf(ObjectRefImpl).asTerm = function () {
|
|
1315
|
-
return this
|
|
1315
|
+
return this.o52_1.asTerm();
|
|
1316
1316
|
};
|
|
1317
1317
|
protoOf(ObjectRefImpl).asTruth = function () {
|
|
1318
|
-
return this
|
|
1318
|
+
return this.o52_1.asTruth();
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf(ObjectRefImpl).asTuple = function () {
|
|
1321
|
-
return this
|
|
1321
|
+
return this.o52_1.asTuple();
|
|
1322
1322
|
};
|
|
1323
1323
|
protoOf(ObjectRefImpl).asVar = function () {
|
|
1324
|
-
return this
|
|
1324
|
+
return this.o52_1.asVar();
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(ObjectRefImpl).hashCode = function () {
|
|
1327
|
-
return this
|
|
1327
|
+
return this.o52_1.hashCode();
|
|
1328
1328
|
};
|
|
1329
1329
|
protoOf(ObjectRefImpl).toString = function () {
|
|
1330
|
-
return this
|
|
1330
|
+
return this.o52_1.toString();
|
|
1331
1331
|
};
|
|
1332
|
-
protoOf(ObjectRefImpl).
|
|
1333
|
-
return this
|
|
1332
|
+
protoOf(ObjectRefImpl).ux = function () {
|
|
1333
|
+
return this.o52_1.ux();
|
|
1334
1334
|
};
|
|
1335
|
-
protoOf(ObjectRefImpl).
|
|
1336
|
-
return this
|
|
1335
|
+
protoOf(ObjectRefImpl).vx = function () {
|
|
1336
|
+
return this.o52_1.vx();
|
|
1337
1337
|
};
|
|
1338
|
-
protoOf(ObjectRefImpl).
|
|
1339
|
-
return this
|
|
1338
|
+
protoOf(ObjectRefImpl).wx = function () {
|
|
1339
|
+
return this.o52_1.wx();
|
|
1340
1340
|
};
|
|
1341
|
-
protoOf(ObjectRefImpl).
|
|
1342
|
-
return this
|
|
1341
|
+
protoOf(ObjectRefImpl).yx = function () {
|
|
1342
|
+
return this.o52_1.yx();
|
|
1343
1343
|
};
|
|
1344
|
-
protoOf(ObjectRefImpl).
|
|
1345
|
-
return this
|
|
1344
|
+
protoOf(ObjectRefImpl).zx = function () {
|
|
1345
|
+
return this.o52_1.zx();
|
|
1346
1346
|
};
|
|
1347
|
-
protoOf(ObjectRefImpl).
|
|
1348
|
-
return this
|
|
1347
|
+
protoOf(ObjectRefImpl).ay = function () {
|
|
1348
|
+
return this.o52_1.ay();
|
|
1349
1349
|
};
|
|
1350
1350
|
protoOf(ObjectRefImpl).getTag = function (name) {
|
|
1351
|
-
return this
|
|
1351
|
+
return this.o52_1.getTag(name);
|
|
1352
1352
|
};
|
|
1353
1353
|
protoOf(ObjectRefImpl).resetTags = function (tags) {
|
|
1354
|
-
return this
|
|
1354
|
+
return this.o52_1.resetTags(tags);
|
|
1355
1355
|
};
|
|
1356
1356
|
protoOf(ObjectRefImpl).containsTag = function (name) {
|
|
1357
|
-
return this
|
|
1357
|
+
return this.o52_1.containsTag(name);
|
|
1358
1358
|
};
|
|
1359
|
-
protoOf(ObjectRefImpl).
|
|
1360
|
-
return this
|
|
1359
|
+
protoOf(ObjectRefImpl).du = function () {
|
|
1360
|
+
return this.o52_1.du();
|
|
1361
1361
|
};
|
|
1362
|
-
protoOf(ObjectRefImpl).
|
|
1363
|
-
return this
|
|
1362
|
+
protoOf(ObjectRefImpl).cy = function () {
|
|
1363
|
+
return this.o52_1.cy();
|
|
1364
1364
|
};
|
|
1365
1365
|
function ObjectToTermConverterImpl() {
|
|
1366
|
-
this.
|
|
1366
|
+
this.q52_1 = new NumberTypeTester();
|
|
1367
1367
|
}
|
|
1368
|
-
protoOf(ObjectToTermConverterImpl).
|
|
1368
|
+
protoOf(ObjectToTermConverterImpl).q51 = function (source) {
|
|
1369
1369
|
// Inline function 'kotlin.with' call
|
|
1370
|
-
var $this$with = this.
|
|
1370
|
+
var $this$with = this.q52_1;
|
|
1371
1371
|
var tmp;
|
|
1372
1372
|
if (source == null) {
|
|
1373
|
-
tmp = Companion_getInstance_10().
|
|
1373
|
+
tmp = Companion_getInstance_10().i51_1;
|
|
1374
1374
|
} else {
|
|
1375
1375
|
if (typeof source === 'string') {
|
|
1376
1376
|
tmp = Companion_getInstance_0().of(source);
|
|
@@ -1382,18 +1382,18 @@
|
|
|
1382
1382
|
tmp = Companion_getInstance_2().ofBigDecimal(source);
|
|
1383
1383
|
} else {
|
|
1384
1384
|
if (isNumber(source)) {
|
|
1385
|
-
tmp = $this$with.
|
|
1385
|
+
tmp = $this$with.vt(source) ? Companion_getInstance_3().ofBigInteger($this$with.wt(source)) : Companion_getInstance_2().ofBigDecimal($this$with.xt(source));
|
|
1386
1386
|
} else {
|
|
1387
1387
|
if (source instanceof Char) {
|
|
1388
1388
|
var tmp_0 = Companion_getInstance_0();
|
|
1389
1389
|
// Inline function 'kotlin.charArrayOf' call
|
|
1390
|
-
var tmp$ret$2 = charArrayOf([source.
|
|
1390
|
+
var tmp$ret$2 = charArrayOf([source.r1_1]);
|
|
1391
1391
|
tmp = tmp_0.of(concatToString(tmp$ret$2));
|
|
1392
1392
|
} else {
|
|
1393
1393
|
if (typeof source === 'boolean') {
|
|
1394
1394
|
tmp = Companion_getInstance_1().of(source);
|
|
1395
1395
|
} else {
|
|
1396
|
-
tmp = Companion_getInstance_10().
|
|
1396
|
+
tmp = Companion_getInstance_10().k51(source);
|
|
1397
1397
|
}
|
|
1398
1398
|
}
|
|
1399
1399
|
}
|
|
@@ -1406,7 +1406,7 @@
|
|
|
1406
1406
|
function explicitConversion($this, castExpression, term, type) {
|
|
1407
1407
|
var targetType = getType($this, castExpression, type);
|
|
1408
1408
|
try {
|
|
1409
|
-
return $this.
|
|
1409
|
+
return $this.w51(targetType, term);
|
|
1410
1410
|
} catch ($p) {
|
|
1411
1411
|
if ($p instanceof TermToObjectConversionException) {
|
|
1412
1412
|
var e = $p;
|
|
@@ -1424,10 +1424,10 @@
|
|
|
1424
1424
|
function getType($this, castExpression, typeTerm) {
|
|
1425
1425
|
var tmp;
|
|
1426
1426
|
if (isInterface(typeTerm, TypeRef)) {
|
|
1427
|
-
tmp = typeTerm.
|
|
1427
|
+
tmp = typeTerm.u27();
|
|
1428
1428
|
} else {
|
|
1429
1429
|
if (isInterface(typeTerm, Atom)) {
|
|
1430
|
-
var tmp1_elvis_lhs = $this.
|
|
1430
|
+
var tmp1_elvis_lhs = $this.r52_1.b52(typeTerm.f1());
|
|
1431
1431
|
var tmp_0;
|
|
1432
1432
|
if (tmp1_elvis_lhs == null) {
|
|
1433
1433
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
@@ -1439,10 +1439,10 @@
|
|
|
1439
1439
|
if (isInterface(typeTerm, Struct)) {
|
|
1440
1440
|
var tmp_1;
|
|
1441
1441
|
if (Companion_getInstance().matches(typeTerm, get_DEALIASING_TEMPLATE())) {
|
|
1442
|
-
var ref = $this.
|
|
1442
|
+
var ref = $this.s52_1(typeTerm);
|
|
1443
1443
|
var tmp_2;
|
|
1444
1444
|
if (!(ref == null) ? isInterface(ref, TypeRef) : false) {
|
|
1445
|
-
tmp_2 = ref.
|
|
1445
|
+
tmp_2 = ref.u27();
|
|
1446
1446
|
} else {
|
|
1447
1447
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1448
1448
|
}
|
|
@@ -1467,50 +1467,50 @@
|
|
|
1467
1467
|
tmp_0 = isInterface(term, Var);
|
|
1468
1468
|
}
|
|
1469
1469
|
if (tmp_0) {
|
|
1470
|
-
tmp = sequenceOf(PrimitiveClasses_getInstance().
|
|
1470
|
+
tmp = sequenceOf(PrimitiveClasses_getInstance().z9());
|
|
1471
1471
|
} else {
|
|
1472
1472
|
if (isInterface(term, ObjectRef)) {
|
|
1473
|
-
tmp = sequenceOf(getKClassFromExpression(term.
|
|
1473
|
+
tmp = sequenceOf(getKClassFromExpression(term.b51()));
|
|
1474
1474
|
} else {
|
|
1475
1475
|
if (isInterface(term, Truth)) {
|
|
1476
|
-
tmp = sequenceOf_0([PrimitiveClasses_getInstance().
|
|
1476
|
+
tmp = sequenceOf_0([PrimitiveClasses_getInstance().aa(), PrimitiveClasses_getInstance().ia()]);
|
|
1477
1477
|
} else {
|
|
1478
1478
|
if (isInterface(term, Atom)) {
|
|
1479
|
-
var admissible = sequenceOf(PrimitiveClasses_getInstance().
|
|
1480
|
-
if (term.
|
|
1479
|
+
var admissible = sequenceOf(PrimitiveClasses_getInstance().ia());
|
|
1480
|
+
if (term.f1().length === 1) {
|
|
1481
1481
|
admissible = plus(admissible, sequenceOf(getKClass(Char)));
|
|
1482
1482
|
}
|
|
1483
1483
|
tmp = admissible;
|
|
1484
1484
|
} else {
|
|
1485
1485
|
if (isInterface(term, Real)) {
|
|
1486
|
-
tmp = sequenceOf_0([getKClass(BigDecimal), PrimitiveClasses_getInstance().
|
|
1486
|
+
tmp = sequenceOf_0([getKClass(BigDecimal), PrimitiveClasses_getInstance().ga(), PrimitiveClasses_getInstance().fa()]);
|
|
1487
1487
|
} else {
|
|
1488
1488
|
if (isInterface(term, Integer)) {
|
|
1489
1489
|
var admissible_0 = sequenceOf(getKClass(BigInteger));
|
|
1490
|
-
if (Companion_getInstance_4().ofLong(-9223372036854775808n).rangeTo(Companion_getInstance_4().ofLong(9223372036854775807n)).
|
|
1491
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1490
|
+
if (Companion_getInstance_4().ofLong(-9223372036854775808n).rangeTo(Companion_getInstance_4().ofLong(9223372036854775807n)).i1(term.g11())) {
|
|
1491
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ea()));
|
|
1492
1492
|
}
|
|
1493
|
-
if (Companion_getInstance_4().of(-2147483648).rangeTo(Companion_getInstance_4().of(2147483647)).
|
|
1494
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1493
|
+
if (Companion_getInstance_4().of(-2147483648).rangeTo(Companion_getInstance_4().of(2147483647)).i1(term.g11())) {
|
|
1494
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().da()));
|
|
1495
1495
|
}
|
|
1496
|
-
if (Companion_getInstance_4().of(-32768).rangeTo(Companion_getInstance_4().of(32767)).
|
|
1497
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1496
|
+
if (Companion_getInstance_4().of(-32768).rangeTo(Companion_getInstance_4().of(32767)).i1(term.g11())) {
|
|
1497
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ca()));
|
|
1498
1498
|
}
|
|
1499
|
-
if (Companion_getInstance_4().of(-128).rangeTo(Companion_getInstance_4().of(127)).
|
|
1500
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1499
|
+
if (Companion_getInstance_4().of(-128).rangeTo(Companion_getInstance_4().of(127)).i1(term.g11())) {
|
|
1500
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ba()));
|
|
1501
1501
|
}
|
|
1502
1502
|
admissible_0 = plus(admissible_0, sequenceOf(getKClass(BigDecimal)));
|
|
1503
1503
|
var containsLower = Companion_getInstance_5().ofDouble(4.9E-324);
|
|
1504
1504
|
var containsUpper = Companion_getInstance_5().ofDouble(1.7976931348623157E308);
|
|
1505
|
-
var containsArg = term.
|
|
1505
|
+
var containsArg = term.o11();
|
|
1506
1506
|
if (0 <= compareTo(containsArg, containsLower) ? compareTo(containsArg, containsUpper) <= 0 : false) {
|
|
1507
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1507
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ga()));
|
|
1508
1508
|
}
|
|
1509
1509
|
var containsLower_0 = Companion_getInstance_5().ofFloat(1.4E-45);
|
|
1510
1510
|
var containsUpper_0 = Companion_getInstance_5().ofFloat(3.4028235E38);
|
|
1511
|
-
var containsArg_0 = term.
|
|
1511
|
+
var containsArg_0 = term.o11();
|
|
1512
1512
|
if (0 <= compareTo(containsArg_0, containsLower_0) ? compareTo(containsArg_0, containsUpper_0) <= 0 : false) {
|
|
1513
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1513
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().fa()));
|
|
1514
1514
|
}
|
|
1515
1515
|
tmp = admissible_0;
|
|
1516
1516
|
} else {
|
|
@@ -1519,7 +1519,7 @@
|
|
|
1519
1519
|
if (Companion_getInstance().matches(term, get_CAST_TEMPLATE())) {
|
|
1520
1520
|
tmp_1 = sequenceOf(getType($this, term, term.get(1)));
|
|
1521
1521
|
} else if (Companion_getInstance().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1522
|
-
var ref = $this.
|
|
1522
|
+
var ref = $this.s52_1(term);
|
|
1523
1523
|
var tmp_2;
|
|
1524
1524
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1525
1525
|
tmp_2 = admissibleTypesByPriority($this, ref);
|
|
@@ -1543,10 +1543,10 @@
|
|
|
1543
1543
|
return tmp;
|
|
1544
1544
|
}
|
|
1545
1545
|
function TermToObjectConverterImpl(typeFactory, dealiaser) {
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1546
|
+
this.r52_1 = typeFactory;
|
|
1547
|
+
this.s52_1 = dealiaser;
|
|
1548
1548
|
}
|
|
1549
|
-
protoOf(TermToObjectConverterImpl).
|
|
1549
|
+
protoOf(TermToObjectConverterImpl).w51 = function (type, term) {
|
|
1550
1550
|
var tmp;
|
|
1551
1551
|
var tmp_0;
|
|
1552
1552
|
if (isInterface(term, NullRef)) {
|
|
@@ -1565,8 +1565,8 @@
|
|
|
1565
1565
|
} else {
|
|
1566
1566
|
if (isInterface(term, ObjectRef)) {
|
|
1567
1567
|
var tmp_2;
|
|
1568
|
-
if (isSubtypeOf(getKClassFromExpression(term.
|
|
1569
|
-
tmp_2 = term.
|
|
1568
|
+
if (isSubtypeOf(getKClassFromExpression(term.b51()), type)) {
|
|
1569
|
+
tmp_2 = term.b51();
|
|
1570
1570
|
} else {
|
|
1571
1571
|
throw new TermToObjectConversionException(term, type);
|
|
1572
1572
|
}
|
|
@@ -1574,10 +1574,10 @@
|
|
|
1574
1574
|
} else {
|
|
1575
1575
|
if (isInterface(term, Truth)) {
|
|
1576
1576
|
var tmp_3;
|
|
1577
|
-
if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1578
|
-
tmp_3 = term.
|
|
1579
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1580
|
-
tmp_3 = term.
|
|
1577
|
+
if (isSubtypeOf(PrimitiveClasses_getInstance().aa(), type)) {
|
|
1578
|
+
tmp_3 = term.ww();
|
|
1579
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ia(), type)) {
|
|
1580
|
+
tmp_3 = term.f1();
|
|
1581
1581
|
} else {
|
|
1582
1582
|
throw new TermToObjectConversionException(term, type);
|
|
1583
1583
|
}
|
|
@@ -1585,12 +1585,12 @@
|
|
|
1585
1585
|
} else {
|
|
1586
1586
|
if (isInterface(term, Atom)) {
|
|
1587
1587
|
var tmp_4;
|
|
1588
|
-
if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1589
|
-
tmp_4 = term.
|
|
1588
|
+
if (isSubtypeOf(PrimitiveClasses_getInstance().ia(), type)) {
|
|
1589
|
+
tmp_4 = term.f1();
|
|
1590
1590
|
} else if (isSubtypeOf(getKClass(Char), type)) {
|
|
1591
1591
|
var tmp_5;
|
|
1592
|
-
if (term.
|
|
1593
|
-
tmp_5 = charCodeAt(term.
|
|
1592
|
+
if (term.f1().length === 1) {
|
|
1593
|
+
tmp_5 = charCodeAt(term.f1(), 0);
|
|
1594
1594
|
} else {
|
|
1595
1595
|
throw new TermToObjectConversionException(term, type);
|
|
1596
1596
|
}
|
|
@@ -1603,11 +1603,11 @@
|
|
|
1603
1603
|
if (isInterface(term, Real)) {
|
|
1604
1604
|
var tmp_6;
|
|
1605
1605
|
if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1606
|
-
tmp_6 = term.
|
|
1607
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1608
|
-
tmp_6 = term.
|
|
1609
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1610
|
-
tmp_6 = term.
|
|
1606
|
+
tmp_6 = term.o11();
|
|
1607
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ga(), type)) {
|
|
1608
|
+
tmp_6 = term.o11().toDouble();
|
|
1609
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().fa(), type)) {
|
|
1610
|
+
tmp_6 = term.o11().toFloat();
|
|
1611
1611
|
} else {
|
|
1612
1612
|
throw new TermToObjectConversionException(term, type);
|
|
1613
1613
|
}
|
|
@@ -1616,21 +1616,21 @@
|
|
|
1616
1616
|
if (isInterface(term, Integer)) {
|
|
1617
1617
|
var tmp_7;
|
|
1618
1618
|
if (isSubtypeOf(getKClass(BigInteger), type)) {
|
|
1619
|
-
tmp_7 = term.
|
|
1620
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1621
|
-
tmp_7 = term.
|
|
1622
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1623
|
-
tmp_7 = term.
|
|
1624
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1625
|
-
tmp_7 = term.
|
|
1626
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1627
|
-
tmp_7 = term.
|
|
1619
|
+
tmp_7 = term.g11();
|
|
1620
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ea(), type)) {
|
|
1621
|
+
tmp_7 = term.g11().toLongExact();
|
|
1622
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().da(), type)) {
|
|
1623
|
+
tmp_7 = term.g11().toIntExact();
|
|
1624
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ca(), type)) {
|
|
1625
|
+
tmp_7 = term.g11().toShortExact();
|
|
1626
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ba(), type)) {
|
|
1627
|
+
tmp_7 = term.g11().toByteExact();
|
|
1628
1628
|
} else if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1629
|
-
tmp_7 = term.
|
|
1630
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1631
|
-
tmp_7 = term.
|
|
1632
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1633
|
-
tmp_7 = term.
|
|
1629
|
+
tmp_7 = term.o11();
|
|
1630
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ga(), type)) {
|
|
1631
|
+
tmp_7 = term.o11().toDouble();
|
|
1632
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().fa(), type)) {
|
|
1633
|
+
tmp_7 = term.o11().toFloat();
|
|
1634
1634
|
} else {
|
|
1635
1635
|
throw new TermToObjectConversionException(term, type);
|
|
1636
1636
|
}
|
|
@@ -1641,10 +1641,10 @@
|
|
|
1641
1641
|
if (Companion_getInstance().matches(term, get_CAST_TEMPLATE())) {
|
|
1642
1642
|
tmp_8 = explicitConversion(this, term, term.get(0), term.get(1));
|
|
1643
1643
|
} else if (Companion_getInstance().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1644
|
-
var ref = this.
|
|
1644
|
+
var ref = this.s52_1(term);
|
|
1645
1645
|
var tmp_9;
|
|
1646
1646
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1647
|
-
tmp_9 = this.
|
|
1647
|
+
tmp_9 = this.w51(type, ref);
|
|
1648
1648
|
} else {
|
|
1649
1649
|
throw TermToObjectConversionException_init_$Create$(term);
|
|
1650
1650
|
}
|
|
@@ -1669,16 +1669,16 @@
|
|
|
1669
1669
|
}
|
|
1670
1670
|
return tmp;
|
|
1671
1671
|
};
|
|
1672
|
-
protoOf(TermToObjectConverterImpl).
|
|
1672
|
+
protoOf(TermToObjectConverterImpl).y51 = function (term) {
|
|
1673
1673
|
return first(admissibleTypesByPriority(this, term));
|
|
1674
1674
|
};
|
|
1675
|
-
protoOf(TermToObjectConverterImpl).
|
|
1675
|
+
protoOf(TermToObjectConverterImpl).x51 = function (term) {
|
|
1676
1676
|
return toSet(admissibleTypesByPriority(this, term));
|
|
1677
1677
|
};
|
|
1678
1678
|
function TypeFactoryImpl() {
|
|
1679
1679
|
}
|
|
1680
|
-
protoOf(TypeFactoryImpl).
|
|
1681
|
-
return kClassFromName(typeName).
|
|
1680
|
+
protoOf(TypeFactoryImpl).b52 = function (typeName) {
|
|
1681
|
+
return kClassFromName(typeName).f1();
|
|
1682
1682
|
};
|
|
1683
1683
|
function nameOf_0($this, type) {
|
|
1684
1684
|
return '<type:' + get_fullName(type) + '>';
|
|
@@ -1690,360 +1690,360 @@
|
|
|
1690
1690
|
return Companion_instance_14;
|
|
1691
1691
|
}
|
|
1692
1692
|
function TypeRefImpl(type) {
|
|
1693
|
-
this
|
|
1694
|
-
this.
|
|
1693
|
+
this.t52_1 = Companion_getInstance_0().of(nameOf_0(Companion_instance_14, type));
|
|
1694
|
+
this.u52_1 = type;
|
|
1695
1695
|
}
|
|
1696
|
-
protoOf(TypeRefImpl).
|
|
1697
|
-
return this.
|
|
1696
|
+
protoOf(TypeRefImpl).u27 = function () {
|
|
1697
|
+
return this.u52_1;
|
|
1698
1698
|
};
|
|
1699
|
-
protoOf(TypeRefImpl).
|
|
1700
|
-
return create_0(this.
|
|
1699
|
+
protoOf(TypeRefImpl).e52 = function (objectConverter, arguments_0) {
|
|
1700
|
+
return create_0(this.u52_1, objectConverter, arguments_0);
|
|
1701
1701
|
};
|
|
1702
|
-
protoOf(TypeRefImpl).
|
|
1703
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
1702
|
+
protoOf(TypeRefImpl).c51 = function (objectConverter, methodName, arguments_0) {
|
|
1703
|
+
var companionObjectRef = get_companionObjectRef(this.u52_1);
|
|
1704
1704
|
var tmp;
|
|
1705
1705
|
if (companionObjectRef instanceof Some) {
|
|
1706
|
-
tmp = invoke_0(companionObjectRef.
|
|
1706
|
+
tmp = invoke_0(companionObjectRef.hr_1, objectConverter, methodName, arguments_0);
|
|
1707
1707
|
} else {
|
|
1708
|
-
tmp = invoke_1(this.
|
|
1708
|
+
tmp = invoke_1(this.u52_1, objectConverter, methodName, arguments_0, null);
|
|
1709
1709
|
}
|
|
1710
1710
|
return tmp;
|
|
1711
1711
|
};
|
|
1712
|
-
protoOf(TypeRefImpl).
|
|
1712
|
+
protoOf(TypeRefImpl).xx = function () {
|
|
1713
1713
|
return true;
|
|
1714
1714
|
};
|
|
1715
|
-
protoOf(TypeRefImpl).
|
|
1715
|
+
protoOf(TypeRefImpl).by = function () {
|
|
1716
1716
|
return this;
|
|
1717
1717
|
};
|
|
1718
1718
|
protoOf(TypeRefImpl).asConstant = function () {
|
|
1719
|
-
return this.
|
|
1719
|
+
return this.by();
|
|
1720
1720
|
};
|
|
1721
|
-
protoOf(TypeRefImpl).
|
|
1721
|
+
protoOf(TypeRefImpl).bx = function () {
|
|
1722
1722
|
return this;
|
|
1723
1723
|
};
|
|
1724
1724
|
protoOf(TypeRefImpl).freshCopy = function () {
|
|
1725
|
-
return this.
|
|
1725
|
+
return this.bx();
|
|
1726
1726
|
};
|
|
1727
|
-
protoOf(TypeRefImpl).
|
|
1727
|
+
protoOf(TypeRefImpl).cx = function (scope) {
|
|
1728
1728
|
return this;
|
|
1729
1729
|
};
|
|
1730
1730
|
protoOf(TypeRefImpl).freshCopyFromScope = function (scope) {
|
|
1731
|
-
return this.
|
|
1731
|
+
return this.cx(scope);
|
|
1732
1732
|
};
|
|
1733
|
-
protoOf(TypeRefImpl).
|
|
1733
|
+
protoOf(TypeRefImpl).sx = function () {
|
|
1734
1734
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1735
1735
|
};
|
|
1736
|
-
protoOf(TypeRefImpl).
|
|
1737
|
-
return this.
|
|
1736
|
+
protoOf(TypeRefImpl).pr = function () {
|
|
1737
|
+
return this.sx();
|
|
1738
1738
|
};
|
|
1739
|
-
protoOf(TypeRefImpl).
|
|
1739
|
+
protoOf(TypeRefImpl).r17 = function (substitution) {
|
|
1740
1740
|
return this;
|
|
1741
1741
|
};
|
|
1742
1742
|
protoOf(TypeRefImpl).applySubstitution = function (substitution) {
|
|
1743
|
-
return this.
|
|
1743
|
+
return this.r17(substitution);
|
|
1744
1744
|
};
|
|
1745
|
-
protoOf(TypeRefImpl).
|
|
1745
|
+
protoOf(TypeRefImpl).g2u = function (substitution, substitutions) {
|
|
1746
1746
|
return this;
|
|
1747
1747
|
};
|
|
1748
1748
|
protoOf(TypeRefImpl).apply = function (substitution, substitutions) {
|
|
1749
|
-
return this.
|
|
1749
|
+
return this.g2u(substitution, substitutions);
|
|
1750
1750
|
};
|
|
1751
|
-
protoOf(TypeRefImpl).
|
|
1751
|
+
protoOf(TypeRefImpl).f2u = function (substitution, substitutions) {
|
|
1752
1752
|
return this;
|
|
1753
1753
|
};
|
|
1754
1754
|
protoOf(TypeRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1755
|
-
return this.
|
|
1755
|
+
return this.f2u(substitution, substitutions);
|
|
1756
1756
|
};
|
|
1757
|
-
protoOf(TypeRefImpl).
|
|
1757
|
+
protoOf(TypeRefImpl).x16 = function (visitor) {
|
|
1758
1758
|
return visitor.visitAtom(this);
|
|
1759
1759
|
};
|
|
1760
1760
|
protoOf(TypeRefImpl).accept = function (visitor) {
|
|
1761
|
-
return this.
|
|
1761
|
+
return this.x16(visitor);
|
|
1762
1762
|
};
|
|
1763
|
-
protoOf(TypeRefImpl).
|
|
1764
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
1763
|
+
protoOf(TypeRefImpl).d51 = function (objectConverter, propertyName, value) {
|
|
1764
|
+
var companionObjectRef = get_companionObjectRef(this.u52_1);
|
|
1765
1765
|
if (companionObjectRef instanceof Some)
|
|
1766
|
-
assign_0(companionObjectRef.
|
|
1766
|
+
assign_0(companionObjectRef.hr_1, objectConverter, propertyName, value);
|
|
1767
1767
|
else {
|
|
1768
|
-
assign_1(this.
|
|
1768
|
+
assign_1(this.u52_1, objectConverter, propertyName, value, null);
|
|
1769
1769
|
}
|
|
1770
1770
|
return true;
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(TypeRefImpl).
|
|
1773
|
-
return this
|
|
1772
|
+
protoOf(TypeRefImpl).dx = function () {
|
|
1773
|
+
return this.t52_1.dx();
|
|
1774
1774
|
};
|
|
1775
1775
|
protoOf(TypeRefImpl).asAtom = function () {
|
|
1776
|
-
return this.
|
|
1776
|
+
return this.dx();
|
|
1777
1777
|
};
|
|
1778
|
-
protoOf(TypeRefImpl).
|
|
1779
|
-
return this
|
|
1778
|
+
protoOf(TypeRefImpl).sw = function () {
|
|
1779
|
+
return this.t52_1.sw();
|
|
1780
1780
|
};
|
|
1781
|
-
protoOf(TypeRefImpl).
|
|
1782
|
-
return this
|
|
1781
|
+
protoOf(TypeRefImpl).tw = function () {
|
|
1782
|
+
return this.t52_1.tw();
|
|
1783
1783
|
};
|
|
1784
|
-
protoOf(TypeRefImpl).
|
|
1785
|
-
return this
|
|
1784
|
+
protoOf(TypeRefImpl).uw = function () {
|
|
1785
|
+
return this.t52_1.uw();
|
|
1786
1786
|
};
|
|
1787
|
-
protoOf(TypeRefImpl).
|
|
1788
|
-
return this
|
|
1787
|
+
protoOf(TypeRefImpl).vw = function () {
|
|
1788
|
+
return this.t52_1.vw();
|
|
1789
1789
|
};
|
|
1790
|
-
protoOf(TypeRefImpl).
|
|
1791
|
-
return this
|
|
1790
|
+
protoOf(TypeRefImpl).ww = function () {
|
|
1791
|
+
return this.t52_1.ww();
|
|
1792
1792
|
};
|
|
1793
|
-
protoOf(TypeRefImpl).
|
|
1794
|
-
return this
|
|
1793
|
+
protoOf(TypeRefImpl).f1 = function () {
|
|
1794
|
+
return this.t52_1.f1();
|
|
1795
1795
|
};
|
|
1796
|
-
protoOf(TypeRefImpl).
|
|
1797
|
-
return this
|
|
1796
|
+
protoOf(TypeRefImpl).zw = function () {
|
|
1797
|
+
return this.t52_1.zw();
|
|
1798
1798
|
};
|
|
1799
|
-
protoOf(TypeRefImpl).
|
|
1800
|
-
return this
|
|
1799
|
+
protoOf(TypeRefImpl).ax = function () {
|
|
1800
|
+
return this.t52_1.ax();
|
|
1801
1801
|
};
|
|
1802
|
-
protoOf(TypeRefImpl).
|
|
1803
|
-
return this
|
|
1802
|
+
protoOf(TypeRefImpl).ox = function () {
|
|
1803
|
+
return this.t52_1.ox();
|
|
1804
1804
|
};
|
|
1805
1805
|
protoOf(TypeRefImpl).asStruct = function () {
|
|
1806
|
-
return this.
|
|
1806
|
+
return this.ox();
|
|
1807
1807
|
};
|
|
1808
1808
|
protoOf(TypeRefImpl).append = function (argument) {
|
|
1809
|
-
return this
|
|
1809
|
+
return this.t52_1.append(argument);
|
|
1810
1810
|
};
|
|
1811
1811
|
protoOf(TypeRefImpl).addLast = function (argument) {
|
|
1812
|
-
return this
|
|
1812
|
+
return this.t52_1.addLast(argument);
|
|
1813
1813
|
};
|
|
1814
1814
|
protoOf(TypeRefImpl).addFirst = function (argument) {
|
|
1815
|
-
return this
|
|
1815
|
+
return this.t52_1.addFirst(argument);
|
|
1816
1816
|
};
|
|
1817
1817
|
protoOf(TypeRefImpl).insertAt = function (index, argument) {
|
|
1818
|
-
return this
|
|
1818
|
+
return this.t52_1.insertAt(index, argument);
|
|
1819
1819
|
};
|
|
1820
1820
|
protoOf(TypeRefImpl).setFunctor = function (functor) {
|
|
1821
|
-
return this
|
|
1821
|
+
return this.t52_1.setFunctor(functor);
|
|
1822
1822
|
};
|
|
1823
1823
|
protoOf(TypeRefImpl).getArgAt = function (index) {
|
|
1824
|
-
return this
|
|
1824
|
+
return this.t52_1.getArgAt(index);
|
|
1825
1825
|
};
|
|
1826
1826
|
protoOf(TypeRefImpl).setArgs = function (args) {
|
|
1827
|
-
return this
|
|
1827
|
+
return this.t52_1.setArgs(args);
|
|
1828
1828
|
};
|
|
1829
1829
|
protoOf(TypeRefImpl).setArgsIterable = function (args) {
|
|
1830
|
-
return this
|
|
1830
|
+
return this.t52_1.setArgsIterable(args);
|
|
1831
1831
|
};
|
|
1832
1832
|
protoOf(TypeRefImpl).setArgsSequence = function (args) {
|
|
1833
|
-
return this
|
|
1833
|
+
return this.t52_1.setArgsSequence(args);
|
|
1834
1834
|
};
|
|
1835
1835
|
protoOf(TypeRefImpl).get = function (index) {
|
|
1836
|
-
return this
|
|
1836
|
+
return this.t52_1.get(index);
|
|
1837
1837
|
};
|
|
1838
|
-
protoOf(TypeRefImpl).
|
|
1839
|
-
return this
|
|
1838
|
+
protoOf(TypeRefImpl).ex = function () {
|
|
1839
|
+
return this.t52_1.ex();
|
|
1840
1840
|
};
|
|
1841
|
-
protoOf(TypeRefImpl).
|
|
1842
|
-
return this
|
|
1841
|
+
protoOf(TypeRefImpl).fx = function () {
|
|
1842
|
+
return this.t52_1.fx();
|
|
1843
1843
|
};
|
|
1844
|
-
protoOf(TypeRefImpl).
|
|
1845
|
-
return this
|
|
1844
|
+
protoOf(TypeRefImpl).gx = function () {
|
|
1845
|
+
return this.t52_1.gx();
|
|
1846
1846
|
};
|
|
1847
|
-
protoOf(TypeRefImpl).
|
|
1848
|
-
return this
|
|
1847
|
+
protoOf(TypeRefImpl).jx = function () {
|
|
1848
|
+
return this.t52_1.jx();
|
|
1849
1849
|
};
|
|
1850
|
-
protoOf(TypeRefImpl).
|
|
1851
|
-
return this
|
|
1850
|
+
protoOf(TypeRefImpl).kx = function () {
|
|
1851
|
+
return this.t52_1.kx();
|
|
1852
1852
|
};
|
|
1853
|
-
protoOf(TypeRefImpl).
|
|
1854
|
-
return this
|
|
1853
|
+
protoOf(TypeRefImpl).lx = function () {
|
|
1854
|
+
return this.t52_1.lx();
|
|
1855
1855
|
};
|
|
1856
|
-
protoOf(TypeRefImpl).
|
|
1857
|
-
return this
|
|
1856
|
+
protoOf(TypeRefImpl).nx = function () {
|
|
1857
|
+
return this.t52_1.nx();
|
|
1858
1858
|
};
|
|
1859
|
-
protoOf(TypeRefImpl).
|
|
1860
|
-
return this
|
|
1859
|
+
protoOf(TypeRefImpl).yw = function () {
|
|
1860
|
+
return this.t52_1.yw();
|
|
1861
1861
|
};
|
|
1862
|
-
protoOf(TypeRefImpl).
|
|
1863
|
-
return this
|
|
1862
|
+
protoOf(TypeRefImpl).px = function () {
|
|
1863
|
+
return this.t52_1.px();
|
|
1864
1864
|
};
|
|
1865
|
-
protoOf(TypeRefImpl).
|
|
1866
|
-
return this
|
|
1865
|
+
protoOf(TypeRefImpl).qx = function () {
|
|
1866
|
+
return this.t52_1.qx();
|
|
1867
1867
|
};
|
|
1868
|
-
protoOf(TypeRefImpl).
|
|
1869
|
-
return this
|
|
1868
|
+
protoOf(TypeRefImpl).rx = function () {
|
|
1869
|
+
return this.t52_1.rx();
|
|
1870
1870
|
};
|
|
1871
|
-
protoOf(TypeRefImpl).
|
|
1872
|
-
return this
|
|
1871
|
+
protoOf(TypeRefImpl).tx = function (other) {
|
|
1872
|
+
return this.t52_1.tx(other);
|
|
1873
1873
|
};
|
|
1874
|
-
protoOf(TypeRefImpl).
|
|
1875
|
-
return this.
|
|
1874
|
+
protoOf(TypeRefImpl).d = function (other) {
|
|
1875
|
+
return this.tx((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1876
1876
|
};
|
|
1877
1877
|
protoOf(TypeRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1878
|
-
return this
|
|
1878
|
+
return this.t52_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1879
1879
|
};
|
|
1880
1880
|
protoOf(TypeRefImpl).equals = function (other) {
|
|
1881
|
-
return this
|
|
1881
|
+
return this.t52_1.equals(other);
|
|
1882
1882
|
};
|
|
1883
1883
|
protoOf(TypeRefImpl).structurallyEquals = function (other) {
|
|
1884
|
-
return this
|
|
1884
|
+
return this.t52_1.structurallyEquals(other);
|
|
1885
1885
|
};
|
|
1886
1886
|
protoOf(TypeRefImpl).castToAtom = function () {
|
|
1887
|
-
return this
|
|
1887
|
+
return this.t52_1.castToAtom();
|
|
1888
1888
|
};
|
|
1889
1889
|
protoOf(TypeRefImpl).castToClause = function () {
|
|
1890
|
-
return this
|
|
1890
|
+
return this.t52_1.castToClause();
|
|
1891
1891
|
};
|
|
1892
1892
|
protoOf(TypeRefImpl).castToCons = function () {
|
|
1893
|
-
return this
|
|
1893
|
+
return this.t52_1.castToCons();
|
|
1894
1894
|
};
|
|
1895
1895
|
protoOf(TypeRefImpl).castToConstant = function () {
|
|
1896
|
-
return this
|
|
1896
|
+
return this.t52_1.castToConstant();
|
|
1897
1897
|
};
|
|
1898
1898
|
protoOf(TypeRefImpl).castToDirective = function () {
|
|
1899
|
-
return this
|
|
1899
|
+
return this.t52_1.castToDirective();
|
|
1900
1900
|
};
|
|
1901
1901
|
protoOf(TypeRefImpl).castToEmptyList = function () {
|
|
1902
|
-
return this
|
|
1902
|
+
return this.t52_1.castToEmptyList();
|
|
1903
1903
|
};
|
|
1904
1904
|
protoOf(TypeRefImpl).castToEmptyBlock = function () {
|
|
1905
|
-
return this
|
|
1905
|
+
return this.t52_1.castToEmptyBlock();
|
|
1906
1906
|
};
|
|
1907
1907
|
protoOf(TypeRefImpl).castToFact = function () {
|
|
1908
|
-
return this
|
|
1908
|
+
return this.t52_1.castToFact();
|
|
1909
1909
|
};
|
|
1910
1910
|
protoOf(TypeRefImpl).castToIndicator = function () {
|
|
1911
|
-
return this
|
|
1911
|
+
return this.t52_1.castToIndicator();
|
|
1912
1912
|
};
|
|
1913
1913
|
protoOf(TypeRefImpl).castToInteger = function () {
|
|
1914
|
-
return this
|
|
1914
|
+
return this.t52_1.castToInteger();
|
|
1915
1915
|
};
|
|
1916
1916
|
protoOf(TypeRefImpl).castToList = function () {
|
|
1917
|
-
return this
|
|
1917
|
+
return this.t52_1.castToList();
|
|
1918
1918
|
};
|
|
1919
1919
|
protoOf(TypeRefImpl).castToNumeric = function () {
|
|
1920
|
-
return this
|
|
1920
|
+
return this.t52_1.castToNumeric();
|
|
1921
1921
|
};
|
|
1922
1922
|
protoOf(TypeRefImpl).castToReal = function () {
|
|
1923
|
-
return this
|
|
1923
|
+
return this.t52_1.castToReal();
|
|
1924
1924
|
};
|
|
1925
1925
|
protoOf(TypeRefImpl).castToRule = function () {
|
|
1926
|
-
return this
|
|
1926
|
+
return this.t52_1.castToRule();
|
|
1927
1927
|
};
|
|
1928
1928
|
protoOf(TypeRefImpl).castToBlock = function () {
|
|
1929
|
-
return this
|
|
1929
|
+
return this.t52_1.castToBlock();
|
|
1930
1930
|
};
|
|
1931
1931
|
protoOf(TypeRefImpl).castToStruct = function () {
|
|
1932
|
-
return this
|
|
1932
|
+
return this.t52_1.castToStruct();
|
|
1933
1933
|
};
|
|
1934
1934
|
protoOf(TypeRefImpl).castToRecursive = function () {
|
|
1935
|
-
return this
|
|
1935
|
+
return this.t52_1.castToRecursive();
|
|
1936
1936
|
};
|
|
1937
1937
|
protoOf(TypeRefImpl).castToTerm = function () {
|
|
1938
|
-
return this
|
|
1938
|
+
return this.t52_1.castToTerm();
|
|
1939
1939
|
};
|
|
1940
1940
|
protoOf(TypeRefImpl).castToTruth = function () {
|
|
1941
|
-
return this
|
|
1941
|
+
return this.t52_1.castToTruth();
|
|
1942
1942
|
};
|
|
1943
1943
|
protoOf(TypeRefImpl).castToTuple = function () {
|
|
1944
|
-
return this
|
|
1944
|
+
return this.t52_1.castToTuple();
|
|
1945
1945
|
};
|
|
1946
1946
|
protoOf(TypeRefImpl).castToVar = function () {
|
|
1947
|
-
return this
|
|
1947
|
+
return this.t52_1.castToVar();
|
|
1948
1948
|
};
|
|
1949
1949
|
protoOf(TypeRefImpl).asClause = function () {
|
|
1950
|
-
return this
|
|
1950
|
+
return this.t52_1.asClause();
|
|
1951
1951
|
};
|
|
1952
1952
|
protoOf(TypeRefImpl).asCons = function () {
|
|
1953
|
-
return this
|
|
1953
|
+
return this.t52_1.asCons();
|
|
1954
1954
|
};
|
|
1955
1955
|
protoOf(TypeRefImpl).asDirective = function () {
|
|
1956
|
-
return this
|
|
1956
|
+
return this.t52_1.asDirective();
|
|
1957
1957
|
};
|
|
1958
1958
|
protoOf(TypeRefImpl).asEmptyList = function () {
|
|
1959
|
-
return this
|
|
1959
|
+
return this.t52_1.asEmptyList();
|
|
1960
1960
|
};
|
|
1961
1961
|
protoOf(TypeRefImpl).asEmptyBlock = function () {
|
|
1962
|
-
return this
|
|
1962
|
+
return this.t52_1.asEmptyBlock();
|
|
1963
1963
|
};
|
|
1964
1964
|
protoOf(TypeRefImpl).asFact = function () {
|
|
1965
|
-
return this
|
|
1965
|
+
return this.t52_1.asFact();
|
|
1966
1966
|
};
|
|
1967
1967
|
protoOf(TypeRefImpl).asIndicator = function () {
|
|
1968
|
-
return this
|
|
1968
|
+
return this.t52_1.asIndicator();
|
|
1969
1969
|
};
|
|
1970
1970
|
protoOf(TypeRefImpl).asInteger = function () {
|
|
1971
|
-
return this
|
|
1971
|
+
return this.t52_1.asInteger();
|
|
1972
1972
|
};
|
|
1973
1973
|
protoOf(TypeRefImpl).asList = function () {
|
|
1974
|
-
return this
|
|
1974
|
+
return this.t52_1.asList();
|
|
1975
1975
|
};
|
|
1976
1976
|
protoOf(TypeRefImpl).asNumeric = function () {
|
|
1977
|
-
return this
|
|
1977
|
+
return this.t52_1.asNumeric();
|
|
1978
1978
|
};
|
|
1979
1979
|
protoOf(TypeRefImpl).asReal = function () {
|
|
1980
|
-
return this
|
|
1980
|
+
return this.t52_1.asReal();
|
|
1981
1981
|
};
|
|
1982
1982
|
protoOf(TypeRefImpl).asRule = function () {
|
|
1983
|
-
return this
|
|
1983
|
+
return this.t52_1.asRule();
|
|
1984
1984
|
};
|
|
1985
1985
|
protoOf(TypeRefImpl).asBlock = function () {
|
|
1986
|
-
return this
|
|
1986
|
+
return this.t52_1.asBlock();
|
|
1987
1987
|
};
|
|
1988
1988
|
protoOf(TypeRefImpl).asRecursive = function () {
|
|
1989
|
-
return this
|
|
1989
|
+
return this.t52_1.asRecursive();
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(TypeRefImpl).asTerm = function () {
|
|
1992
|
-
return this
|
|
1992
|
+
return this.t52_1.asTerm();
|
|
1993
1993
|
};
|
|
1994
1994
|
protoOf(TypeRefImpl).asTruth = function () {
|
|
1995
|
-
return this
|
|
1995
|
+
return this.t52_1.asTruth();
|
|
1996
1996
|
};
|
|
1997
1997
|
protoOf(TypeRefImpl).asTuple = function () {
|
|
1998
|
-
return this
|
|
1998
|
+
return this.t52_1.asTuple();
|
|
1999
1999
|
};
|
|
2000
2000
|
protoOf(TypeRefImpl).asVar = function () {
|
|
2001
|
-
return this
|
|
2001
|
+
return this.t52_1.asVar();
|
|
2002
2002
|
};
|
|
2003
2003
|
protoOf(TypeRefImpl).hashCode = function () {
|
|
2004
|
-
return this
|
|
2004
|
+
return this.t52_1.hashCode();
|
|
2005
2005
|
};
|
|
2006
2006
|
protoOf(TypeRefImpl).toString = function () {
|
|
2007
|
-
return this
|
|
2007
|
+
return this.t52_1.toString();
|
|
2008
2008
|
};
|
|
2009
|
-
protoOf(TypeRefImpl).
|
|
2010
|
-
return this
|
|
2009
|
+
protoOf(TypeRefImpl).ux = function () {
|
|
2010
|
+
return this.t52_1.ux();
|
|
2011
2011
|
};
|
|
2012
|
-
protoOf(TypeRefImpl).
|
|
2013
|
-
return this
|
|
2012
|
+
protoOf(TypeRefImpl).vx = function () {
|
|
2013
|
+
return this.t52_1.vx();
|
|
2014
2014
|
};
|
|
2015
|
-
protoOf(TypeRefImpl).
|
|
2016
|
-
return this
|
|
2015
|
+
protoOf(TypeRefImpl).wx = function () {
|
|
2016
|
+
return this.t52_1.wx();
|
|
2017
2017
|
};
|
|
2018
|
-
protoOf(TypeRefImpl).
|
|
2019
|
-
return this
|
|
2018
|
+
protoOf(TypeRefImpl).yx = function () {
|
|
2019
|
+
return this.t52_1.yx();
|
|
2020
2020
|
};
|
|
2021
|
-
protoOf(TypeRefImpl).
|
|
2022
|
-
return this
|
|
2021
|
+
protoOf(TypeRefImpl).zx = function () {
|
|
2022
|
+
return this.t52_1.zx();
|
|
2023
2023
|
};
|
|
2024
|
-
protoOf(TypeRefImpl).
|
|
2025
|
-
return this
|
|
2024
|
+
protoOf(TypeRefImpl).ay = function () {
|
|
2025
|
+
return this.t52_1.ay();
|
|
2026
2026
|
};
|
|
2027
2027
|
protoOf(TypeRefImpl).getTag = function (name) {
|
|
2028
|
-
return this
|
|
2028
|
+
return this.t52_1.getTag(name);
|
|
2029
2029
|
};
|
|
2030
2030
|
protoOf(TypeRefImpl).resetTags = function (tags) {
|
|
2031
|
-
return this
|
|
2031
|
+
return this.t52_1.resetTags(tags);
|
|
2032
2032
|
};
|
|
2033
2033
|
protoOf(TypeRefImpl).containsTag = function (name) {
|
|
2034
|
-
return this
|
|
2034
|
+
return this.t52_1.containsTag(name);
|
|
2035
2035
|
};
|
|
2036
|
-
protoOf(TypeRefImpl).
|
|
2037
|
-
return this
|
|
2036
|
+
protoOf(TypeRefImpl).du = function () {
|
|
2037
|
+
return this.t52_1.du();
|
|
2038
2038
|
};
|
|
2039
|
-
protoOf(TypeRefImpl).
|
|
2040
|
-
return this
|
|
2039
|
+
protoOf(TypeRefImpl).cy = function () {
|
|
2040
|
+
return this.t52_1.cy();
|
|
2041
2041
|
};
|
|
2042
2042
|
function actuallyInvoke($this, $receiver, ref, method, resultTerm) {
|
|
2043
|
-
var result = ref.
|
|
2043
|
+
var result = ref.c51(get_termToObjectConverter($receiver), method.yw(), method.zw());
|
|
2044
2044
|
var tmp;
|
|
2045
2045
|
if (result instanceof Value) {
|
|
2046
|
-
tmp = Companion_getInstance_7().
|
|
2046
|
+
tmp = Companion_getInstance_7().i2l($receiver, resultTerm, $this.w52(result));
|
|
2047
2047
|
} else {
|
|
2048
2048
|
tmp = Companion_getInstance_6().failed();
|
|
2049
2049
|
}
|
|
@@ -2052,9 +2052,9 @@
|
|
|
2052
2052
|
function AbstractInvoke(suffix) {
|
|
2053
2053
|
Functional.call(this, 'invoke_' + suffix);
|
|
2054
2054
|
}
|
|
2055
|
-
protoOf(AbstractInvoke).
|
|
2056
|
-
Companion_getInstance_7().
|
|
2057
|
-
Companion_getInstance_7().
|
|
2055
|
+
protoOf(AbstractInvoke).j2w = function (_this__u8e3s4, first, second, third) {
|
|
2056
|
+
Companion_getInstance_7().s2l(_this__u8e3s4, 0);
|
|
2057
|
+
Companion_getInstance_7().s2l(_this__u8e3s4, 1);
|
|
2058
2058
|
var method = isInterface(second, Struct) ? second : THROW_CCE();
|
|
2059
2059
|
var tmp$ret$0;
|
|
2060
2060
|
$l$block: {
|
|
@@ -2076,7 +2076,7 @@
|
|
|
2076
2076
|
} catch ($p) {
|
|
2077
2077
|
if ($p instanceof OopException) {
|
|
2078
2078
|
var e = $p;
|
|
2079
|
-
throw e.
|
|
2079
|
+
throw e.j52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2080
2080
|
} else {
|
|
2081
2081
|
if ($p instanceof ResolutionException) {
|
|
2082
2082
|
var e_0 = $p;
|
|
@@ -2094,22 +2094,22 @@
|
|
|
2094
2094
|
}
|
|
2095
2095
|
return tmp$ret$0;
|
|
2096
2096
|
};
|
|
2097
|
-
protoOf(AbstractInvoke).
|
|
2098
|
-
return this.
|
|
2097
|
+
protoOf(AbstractInvoke).t2n = function (_this__u8e3s4, first, second, third) {
|
|
2098
|
+
return this.j2w(_this__u8e3s4, first, second, third);
|
|
2099
2099
|
};
|
|
2100
2100
|
function AbstractIterableItems$computeOneSubstitution$lambda($converter) {
|
|
2101
2101
|
return function (it) {
|
|
2102
|
-
return $converter.
|
|
2102
|
+
return $converter.z51(it);
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
2105
|
function AbstractIterableItems$computeOneSubstitution$lambda_0(it) {
|
|
2106
|
-
return Companion_getInstance_11().
|
|
2106
|
+
return Companion_getInstance_11().l51_1.q51(it);
|
|
2107
2107
|
}
|
|
2108
2108
|
function AbstractIterableItems(iterable, target) {
|
|
2109
2109
|
Functional_0.call(this, iterable + '_items');
|
|
2110
|
-
this.
|
|
2110
|
+
this.y52_1 = target;
|
|
2111
2111
|
}
|
|
2112
|
-
protoOf(AbstractIterableItems).
|
|
2112
|
+
protoOf(AbstractIterableItems).e2w = function (_this__u8e3s4, first, second) {
|
|
2113
2113
|
var tmp;
|
|
2114
2114
|
var tmp_0;
|
|
2115
2115
|
if (isInterface(first, Var)) {
|
|
@@ -2119,58 +2119,58 @@
|
|
|
2119
2119
|
}
|
|
2120
2120
|
if (tmp_0) {
|
|
2121
2121
|
// Inline function 'kotlin.let' call
|
|
2122
|
-
Companion_getInstance_7().
|
|
2122
|
+
Companion_getInstance_7().l2k(_this__u8e3s4);
|
|
2123
2123
|
tmp = Companion_getInstance_6().failed();
|
|
2124
2124
|
} else {
|
|
2125
2125
|
if (isInterface(second, List)) {
|
|
2126
2126
|
var converter = get_termToObjectConverter(_this__u8e3s4);
|
|
2127
|
-
var tmp_1 = second.
|
|
2128
|
-
var items = this.
|
|
2129
|
-
var objectRef = Companion_getInstance_10().
|
|
2130
|
-
tmp = Companion_getInstance_7().
|
|
2127
|
+
var tmp_1 = second.cv();
|
|
2128
|
+
var items = this.z52(map(tmp_1, AbstractIterableItems$computeOneSubstitution$lambda(converter)));
|
|
2129
|
+
var objectRef = Companion_getInstance_10().k51(items);
|
|
2130
|
+
tmp = Companion_getInstance_7().i2l(_this__u8e3s4, first, objectRef);
|
|
2131
2131
|
} else {
|
|
2132
2132
|
if (isInterface(first, ObjectRef)) {
|
|
2133
|
-
var obj = first.
|
|
2133
|
+
var obj = first.b51();
|
|
2134
2134
|
var tmp_2;
|
|
2135
|
-
if (this.
|
|
2136
|
-
var tmp_3 = this.
|
|
2135
|
+
if (this.a53(obj)) {
|
|
2136
|
+
var tmp_3 = this.b53(!(obj == null) ? obj : THROW_CCE());
|
|
2137
2137
|
var items_0 = map(tmp_3, AbstractIterableItems$computeOneSubstitution$lambda_0);
|
|
2138
|
-
tmp_2 = Companion_getInstance_7().
|
|
2138
|
+
tmp_2 = Companion_getInstance_7().i2l(_this__u8e3s4, second, Companion_instance_5.ofSequence(items_0));
|
|
2139
2139
|
} else {
|
|
2140
2140
|
tmp_2 = Companion_getInstance_6().failed();
|
|
2141
2141
|
}
|
|
2142
2142
|
tmp = tmp_2;
|
|
2143
2143
|
} else {
|
|
2144
|
-
throw Companion_instance_1.
|
|
2144
|
+
throw Companion_instance_1.g2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_OBJECT_REFERENCE_getInstance(), first, 0);
|
|
2145
2145
|
}
|
|
2146
2146
|
}
|
|
2147
2147
|
}
|
|
2148
2148
|
return tmp;
|
|
2149
2149
|
};
|
|
2150
|
-
protoOf(AbstractIterableItems).
|
|
2151
|
-
return this.
|
|
2150
|
+
protoOf(AbstractIterableItems).w2k = function (_this__u8e3s4, first, second) {
|
|
2151
|
+
return this.e2w(_this__u8e3s4, first, second);
|
|
2152
2152
|
};
|
|
2153
2153
|
function ArrayItems() {
|
|
2154
2154
|
ArrayItems_instance = this;
|
|
2155
|
-
AbstractIterableItems.call(this, 'array', PrimitiveClasses_getInstance().
|
|
2156
|
-
this.
|
|
2155
|
+
AbstractIterableItems.call(this, 'array', PrimitiveClasses_getInstance().ha());
|
|
2156
|
+
this.e53_1 = "`array_items(?ArrayRef, ?Items)`\n\nConverts between a Prolog list `Items` and an object reference `ArrayRef` wrapping a JVM/Kotlin array (`Object[]`) with the same elements. If `Items` is a list, each item is converted to an object (respecting `as` casts and `$Alias` references) and `ArrayRef` is unified with a reference to a fresh array; otherwise, if `ArrayRef` references an array, `Items` is unified with the list of its elements converted back to terms: strings become atoms, numbers become Prolog numbers, and other objects stay object references. Deterministic. Raises an instantiation error if both arguments are unbound, and a type error if `ArrayRef` is neither unbound nor an object reference; fails if it references something that is not an array.\n\n**Examples**\n\n```prolog\n?- array_items(A, [a, b, c]), array_items(A, L).\nL = [a, b, c].\n\n?- array_items(A, [1, 2.5]), array_items(A, L).\nL = [1, 2.5].\n\n?- new_object('java.util.ArrayList', [], L), array_items(L, Items).\nno.\n\n?- array_items(A, L).\nthrows error(instantiation_error, _).\n```";
|
|
2157
2157
|
}
|
|
2158
|
-
protoOf(ArrayItems).
|
|
2159
|
-
return this.
|
|
2158
|
+
protoOf(ArrayItems).i1x = function () {
|
|
2159
|
+
return this.e53_1;
|
|
2160
2160
|
};
|
|
2161
|
-
protoOf(ArrayItems).
|
|
2161
|
+
protoOf(ArrayItems).z52 = function (_this__u8e3s4) {
|
|
2162
2162
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2163
2163
|
var this_0 = toList(_this__u8e3s4);
|
|
2164
2164
|
return copyToArray(this_0);
|
|
2165
2165
|
};
|
|
2166
|
-
protoOf(ArrayItems).
|
|
2166
|
+
protoOf(ArrayItems).a53 = function (_this__u8e3s4) {
|
|
2167
2167
|
return !(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false;
|
|
2168
2168
|
};
|
|
2169
|
-
protoOf(ArrayItems).
|
|
2169
|
+
protoOf(ArrayItems).f53 = function (_this__u8e3s4) {
|
|
2170
2170
|
return asSequence_0(_this__u8e3s4);
|
|
2171
2171
|
};
|
|
2172
|
-
protoOf(ArrayItems).
|
|
2173
|
-
return this.
|
|
2172
|
+
protoOf(ArrayItems).b53 = function (_this__u8e3s4) {
|
|
2173
|
+
return this.f53(isArray(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE());
|
|
2174
2174
|
};
|
|
2175
2175
|
var ArrayItems_instance;
|
|
2176
2176
|
function ArrayItems_getInstance() {
|
|
@@ -2181,14 +2181,14 @@
|
|
|
2181
2181
|
function Assign() {
|
|
2182
2182
|
Assign_instance = this;
|
|
2183
2183
|
Predicative.call(this, 'assign');
|
|
2184
|
-
this.
|
|
2184
|
+
this.h53_1 = "`assign(+Ref, +Property, +Value)`\n\nWrites `Value` into the public mutable property named `Property` of the object (or, for a type reference, the static/companion member) referenced by `Ref`. `Ref` must be an object or type reference (not a `$Alias` term); `Value` is converted to the property's type (it may use `as` casts or be a `$Alias` reference). If several properties share the name, the one whose type best fits `Value` is chosen. Succeeds once. Raises a type error if `Ref` is not a reference or `Property` is not an atom, an existence error if no suitable mutable property exists, and a representation error if `Value` cannot be converted. This is what `Obj.prop := Value` (see `:=/2`) lowers to.\n\n**Examples**\n\n```prolog\n?- new_object('java.awt.Point', [1, 2], P), assign(P, x, 5), X := P.x.\nX = 5.\n\n?- new_object('java.awt.Point', [1, 2], P), assign(P, nope, 5).\nthrows error(existence_error(_, _), _).\n\n?- assign(foo, x, 5).\nthrows error(type_error(_, foo), _).\n```";
|
|
2185
2185
|
}
|
|
2186
|
-
protoOf(Assign).
|
|
2187
|
-
return this.
|
|
2186
|
+
protoOf(Assign).i1x = function () {
|
|
2187
|
+
return this.h53_1;
|
|
2188
2188
|
};
|
|
2189
|
-
protoOf(Assign).
|
|
2190
|
-
Companion_getInstance_7().
|
|
2191
|
-
Companion_getInstance_7().
|
|
2189
|
+
protoOf(Assign).i53 = function (_this__u8e3s4, first, second, third) {
|
|
2190
|
+
Companion_getInstance_7().x2l(_this__u8e3s4, 0);
|
|
2191
|
+
Companion_getInstance_7().x2l(_this__u8e3s4, 1);
|
|
2192
2192
|
var tmp$ret$0;
|
|
2193
2193
|
$l$block: {
|
|
2194
2194
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2201,19 +2201,19 @@
|
|
|
2201
2201
|
}
|
|
2202
2202
|
var ref = tmp;
|
|
2203
2203
|
var tmp_0;
|
|
2204
|
-
if (Companion_getInstance_7().
|
|
2204
|
+
if (Companion_getInstance_7().j2l(_this__u8e3s4, third, get_DEALIASING_TEMPLATE())) {
|
|
2205
2205
|
tmp_0 = findRefFromAlias(_this__u8e3s4, isInterface(third, Struct) ? third : THROW_CCE());
|
|
2206
2206
|
} else {
|
|
2207
2207
|
tmp_0 = third;
|
|
2208
2208
|
}
|
|
2209
2209
|
var value = tmp_0;
|
|
2210
2210
|
var tmp_1 = get_termToObjectConverter(_this__u8e3s4);
|
|
2211
|
-
tmp$ret$0 = ref.
|
|
2211
|
+
tmp$ret$0 = ref.d51(tmp_1, (isInterface(second, Atom) ? second : THROW_CCE()).f1(), value);
|
|
2212
2212
|
break $l$block;
|
|
2213
2213
|
} catch ($p) {
|
|
2214
2214
|
if ($p instanceof OopException) {
|
|
2215
2215
|
var e = $p;
|
|
2216
|
-
throw e.
|
|
2216
|
+
throw e.j52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2217
2217
|
} else {
|
|
2218
2218
|
if ($p instanceof ResolutionException) {
|
|
2219
2219
|
var e_0 = $p;
|
|
@@ -2231,8 +2231,8 @@
|
|
|
2231
2231
|
}
|
|
2232
2232
|
return tmp$ret$0;
|
|
2233
2233
|
};
|
|
2234
|
-
protoOf(Assign).
|
|
2235
|
-
return this.
|
|
2234
|
+
protoOf(Assign).v2n = function (_this__u8e3s4, first, second, third) {
|
|
2235
|
+
return this.i53(_this__u8e3s4, first, second, third);
|
|
2236
2236
|
};
|
|
2237
2237
|
var Assign_instance;
|
|
2238
2238
|
function Assign_getInstance() {
|
|
@@ -2245,8 +2245,8 @@
|
|
|
2245
2245
|
if (type == null) {
|
|
2246
2246
|
tmp = Companion_getInstance_6().failed();
|
|
2247
2247
|
} else {
|
|
2248
|
-
var casted = get_termToObjectConverter($receiver).
|
|
2249
|
-
tmp = Companion_getInstance_7().
|
|
2248
|
+
var casted = get_termToObjectConverter($receiver).w51(type, term);
|
|
2249
|
+
tmp = Companion_getInstance_7().i2l($receiver, result, Companion_getInstance_10().k51(casted));
|
|
2250
2250
|
}
|
|
2251
2251
|
return tmp;
|
|
2252
2252
|
}
|
|
@@ -2255,7 +2255,7 @@
|
|
|
2255
2255
|
}
|
|
2256
2256
|
function Cast$computeAll$lambda_0($$this$catchingOopExceptions, $first, $third, $second) {
|
|
2257
2257
|
return function (it) {
|
|
2258
|
-
return cast(Cast_getInstance(), $$this$catchingOopExceptions, $first, it, $third).plus(Companion_getInstance_7().
|
|
2258
|
+
return cast(Cast_getInstance(), $$this$catchingOopExceptions, $first, it, $third).plus(Companion_getInstance_7().i2l($$this$catchingOopExceptions, $second, Companion_instance_12.a52(it)));
|
|
2259
2259
|
};
|
|
2260
2260
|
}
|
|
2261
2261
|
function Cast$computeAll$lambda_1($$this$catchingOopExceptions) {
|
|
@@ -2266,12 +2266,12 @@
|
|
|
2266
2266
|
function Cast() {
|
|
2267
2267
|
Cast_instance = this;
|
|
2268
2268
|
TernaryRelation.call(this, 'cast');
|
|
2269
|
-
this.
|
|
2269
|
+
this.k53_1 = '`cast(+Term, ?Type, ?ObjectRef)`\n\nConverts `Term` into an instance of `Type` and unifies `ObjectRef` with a reference to the resulting object. `Type` must be a type reference or a `$Alias` reference to a type (e.g. `$long`); any other bound value raises a type error, and an unregistered alias raises an existence error. Fails if `Term` cannot be converted into `Type`. If `Type` is unbound, it enumerates on backtracking every type `Term` can be converted into (and all their supertypes), binding `Type` to a type reference each time. Use it to force a specific representation, e.g. `cast(1, $long, L)` yields a reference to a `Long` rather than an `Int`; inside method or constructor arguments, the `X as Type` notation (`as/2`) forces a conversion inline.\n\n**Examples**\n\n```prolog\n?- cast(1, $long, R), object_ref(R).\nyes.\n\n?- cast(abc, $int, R).\nno.\n```';
|
|
2270
2270
|
}
|
|
2271
|
-
protoOf(Cast).
|
|
2272
|
-
return this.
|
|
2271
|
+
protoOf(Cast).i1x = function () {
|
|
2272
|
+
return this.k53_1;
|
|
2273
2273
|
};
|
|
2274
|
-
protoOf(Cast).
|
|
2274
|
+
protoOf(Cast).l53 = function (_this__u8e3s4, first, second, third) {
|
|
2275
2275
|
var tmp$ret$0;
|
|
2276
2276
|
$l$block: {
|
|
2277
2277
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2283,7 +2283,7 @@
|
|
|
2283
2283
|
var tmp_0;
|
|
2284
2284
|
try {
|
|
2285
2285
|
var tmp_1 = Cast_getInstance();
|
|
2286
|
-
tmp_0 = sequenceOf(_this__u8e3s4.replyWith(cast(tmp_1, _this__u8e3s4, first, type == null ? null : type.
|
|
2286
|
+
tmp_0 = sequenceOf(_this__u8e3s4.replyWith(cast(tmp_1, _this__u8e3s4, first, type == null ? null : type.u27(), third), VOID, []));
|
|
2287
2287
|
} catch ($p) {
|
|
2288
2288
|
var tmp_2;
|
|
2289
2289
|
if ($p instanceof TermToObjectConversionException) {
|
|
@@ -2297,7 +2297,7 @@
|
|
|
2297
2297
|
tmp = tmp_0;
|
|
2298
2298
|
} else {
|
|
2299
2299
|
if (isInterface(second, Var)) {
|
|
2300
|
-
var tmp_3 = asSequence(get_termToObjectConverter(_this__u8e3s4).
|
|
2300
|
+
var tmp_3 = asSequence(get_termToObjectConverter(_this__u8e3s4).x51(first));
|
|
2301
2301
|
var tmp_4 = distinct(flatMap(tmp_3, Cast$computeAll$lambda));
|
|
2302
2302
|
var tmp_5 = map(tmp_4, Cast$computeAll$lambda_0(_this__u8e3s4, first, third, second));
|
|
2303
2303
|
tmp = map(tmp_5, Cast$computeAll$lambda_1(_this__u8e3s4));
|
|
@@ -2311,7 +2311,7 @@
|
|
|
2311
2311
|
} catch ($p_0) {
|
|
2312
2312
|
if ($p_0 instanceof OopException) {
|
|
2313
2313
|
var e = $p_0;
|
|
2314
|
-
throw e.
|
|
2314
|
+
throw e.j52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2315
2315
|
} else {
|
|
2316
2316
|
if ($p_0 instanceof ResolutionException) {
|
|
2317
2317
|
var e_0 = $p_0;
|
|
@@ -2329,8 +2329,8 @@
|
|
|
2329
2329
|
}
|
|
2330
2330
|
return tmp$ret$0;
|
|
2331
2331
|
};
|
|
2332
|
-
protoOf(Cast).
|
|
2333
|
-
return this.
|
|
2332
|
+
protoOf(Cast).o2n = function (_this__u8e3s4, first, second, third) {
|
|
2333
|
+
return this.l53(_this__u8e3s4, first, second, third);
|
|
2334
2334
|
};
|
|
2335
2335
|
var Cast_instance;
|
|
2336
2336
|
function Cast_getInstance() {
|
|
@@ -2341,13 +2341,13 @@
|
|
|
2341
2341
|
function InvokeMethod() {
|
|
2342
2342
|
InvokeMethod_instance = this;
|
|
2343
2343
|
AbstractInvoke.call(this, 'method');
|
|
2344
|
-
this.
|
|
2344
|
+
this.n53_1 = "`invoke_method(+Ref, +Method, ?Result)`\n\nInvokes a public member of the object referenced by `Ref` and unifies `Result` with the returned value, converted to a plain term when possible: strings and characters become atoms, numbers become numbers, booleans become `true`/`false`, `null` becomes the null reference, and any other object stays an object reference. `Ref` may be an object reference, a type reference (to call static or companion-object members) or a `$Alias` reference; `Method` is an atom (no arguments; also reads a property) or a compound `name(Arg1, ..., ArgN)`. Arguments are converted to objects and the best-matching overload is selected; use `as` casts to steer the choice. Succeeds once. Raises a type error if `Ref` is neither a reference nor a `$Alias` term, an existence error if the alias is not registered or no suitable method exists, a representation error if an argument cannot be converted, and a system error if the method itself throws. This is what `Obj.method(...)` (see `./2`) lowers to.\n\n**Examples**\n\n```prolog\n?- invoke_method($math, max(1, 2), M).\nM = 2.\n\n?- new_object('java.lang.StringBuilder', [abc], B), invoke_method(B, reverse, R), invoke_method(R, toString, S).\nS = cba.\n\n?- invoke_method($math, nope, M).\nthrows error(existence_error(_, _), _).\n\n?- invoke_method(foo, toString, R).\nthrows error(type_error(_, foo), _).\n```";
|
|
2345
2345
|
}
|
|
2346
|
-
protoOf(InvokeMethod).
|
|
2347
|
-
return this.
|
|
2346
|
+
protoOf(InvokeMethod).i1x = function () {
|
|
2347
|
+
return this.n53_1;
|
|
2348
2348
|
};
|
|
2349
|
-
protoOf(InvokeMethod).
|
|
2350
|
-
return _this__u8e3s4.
|
|
2349
|
+
protoOf(InvokeMethod).w52 = function (_this__u8e3s4) {
|
|
2350
|
+
return _this__u8e3s4.t1j();
|
|
2351
2351
|
};
|
|
2352
2352
|
var InvokeMethod_instance;
|
|
2353
2353
|
function InvokeMethod_getInstance() {
|
|
@@ -2358,13 +2358,13 @@
|
|
|
2358
2358
|
function InvokeStrict() {
|
|
2359
2359
|
InvokeStrict_instance = this;
|
|
2360
2360
|
AbstractInvoke.call(this, 'strict');
|
|
2361
|
-
this.
|
|
2361
|
+
this.p53_1 = "`invoke_strict(+Ref, +Method, ?Result)`\n\nLike `invoke_method/3`, but `Result` is always unified with an object reference wrapping the returned value, even when it could be converted to a plain term (e.g. a string or number stays a reference). Useful to keep calling methods on the result with its exact runtime type preserved, e.g. a `String` you want to keep manipulating as a JVM object. Accepts the same `Ref` and `Method` shapes, and raises the same errors, as `invoke_method/3`.\n\n**Examples**\n\n```prolog\n?- new_object('java.lang.StringBuilder', [abc], B), invoke_strict(B, toString, S), object_ref(S), N := S.length.\nN = 3.\n\n?- new_object('java.lang.StringBuilder', [abc], B), invoke_method(B, toString, S).\nS = abc.\n\n?- invoke_strict($math, nope, R).\nthrows error(existence_error(_, _), _).\n```";
|
|
2362
2362
|
}
|
|
2363
|
-
protoOf(InvokeStrict).
|
|
2364
|
-
return this.
|
|
2363
|
+
protoOf(InvokeStrict).i1x = function () {
|
|
2364
|
+
return this.p53_1;
|
|
2365
2365
|
};
|
|
2366
|
-
protoOf(InvokeStrict).
|
|
2367
|
-
return _this__u8e3s4.
|
|
2366
|
+
protoOf(InvokeStrict).w52 = function (_this__u8e3s4) {
|
|
2367
|
+
return _this__u8e3s4.r51();
|
|
2368
2368
|
};
|
|
2369
2369
|
var InvokeStrict_instance;
|
|
2370
2370
|
function InvokeStrict_getInstance() {
|
|
@@ -2375,22 +2375,22 @@
|
|
|
2375
2375
|
function ListItems() {
|
|
2376
2376
|
ListItems_instance = this;
|
|
2377
2377
|
AbstractIterableItems.call(this, 'list', getKClass(KtList));
|
|
2378
|
-
this.
|
|
2378
|
+
this.s53_1 = "`list_items(?ListRef, ?Items)`\n\nConverts between a Prolog list `Items` and an object reference `ListRef` wrapping a JVM/Kotlin `List` with the same elements. If `Items` is a list, each item is converted to an object (respecting `as` casts and `$Alias` references) and `ListRef` is unified with a reference to a fresh list; otherwise, if `ListRef` references a `List`, `Items` is unified with its elements converted back to terms. Deterministic. Raises an instantiation error if both arguments are unbound, and a type error if `ListRef` is neither unbound nor an object reference; fails if it references something that is not a `List`.\n\n**Examples**\n\n```prolog\n?- list_items(L, [a, b]), N := L.size.\nN = 2.\n\n?- list_items(L, [1, 2.5]), list_items(L, Items).\nItems = [1, 2.5].\n\n?- new_object('java.util.ArrayList', [], L), L.add(x), L.add(y), list_items(L, Items).\nItems = [x, y].\n\n?- list_items(L, Items).\nthrows error(instantiation_error, _).\n```";
|
|
2379
2379
|
}
|
|
2380
|
-
protoOf(ListItems).
|
|
2381
|
-
return this.
|
|
2380
|
+
protoOf(ListItems).i1x = function () {
|
|
2381
|
+
return this.s53_1;
|
|
2382
2382
|
};
|
|
2383
|
-
protoOf(ListItems).
|
|
2383
|
+
protoOf(ListItems).z52 = function (_this__u8e3s4) {
|
|
2384
2384
|
return toList(_this__u8e3s4);
|
|
2385
2385
|
};
|
|
2386
|
-
protoOf(ListItems).
|
|
2386
|
+
protoOf(ListItems).a53 = function (_this__u8e3s4) {
|
|
2387
2387
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtList) : false;
|
|
2388
2388
|
};
|
|
2389
|
-
protoOf(ListItems).
|
|
2389
|
+
protoOf(ListItems).t53 = function (_this__u8e3s4) {
|
|
2390
2390
|
return asSequence(_this__u8e3s4);
|
|
2391
2391
|
};
|
|
2392
|
-
protoOf(ListItems).
|
|
2393
|
-
return this.
|
|
2392
|
+
protoOf(ListItems).b53 = function (_this__u8e3s4) {
|
|
2393
|
+
return this.t53(isInterface(_this__u8e3s4, KtList) ? _this__u8e3s4 : THROW_CCE());
|
|
2394
2394
|
};
|
|
2395
2395
|
var ListItems_instance;
|
|
2396
2396
|
function ListItems_getInstance() {
|
|
@@ -2401,28 +2401,28 @@
|
|
|
2401
2401
|
function NewObject3() {
|
|
2402
2402
|
NewObject3_instance = this;
|
|
2403
2403
|
Functional.call(this, 'new_object');
|
|
2404
|
-
this.
|
|
2404
|
+
this.v53_1 = "`new_object(+Type, +Arguments, -ObjectRef)`\n\nInstantiates `Type` by calling its public constructor that best matches the list `Arguments`, and unifies `ObjectRef` with a reference to the new object. `Type` may be an atom holding a fully qualified type name (e.g. `'java.util.ArrayList'`), a type reference, or a `$Alias` reference to a type (e.g. `$arraylist`). Arguments are converted to objects as in `invoke_method/3`; use `as` casts to disambiguate overloaded constructors. Fails if the type name cannot be resolved. Raises a type error if `Type` is not callable or `Arguments` is not a list, an existence error if no constructor accepts the arguments, and a system error if the constructor throws.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.ArrayList', [], L), L.add(a), N := L.size.\nN = 1.\n\n?- new_object($arraylist, [], L), list_items(L, Items).\nItems = [].\n\n?- new_object('no.such.Type', [], L).\nno.\n\n?- new_object('java.util.ArrayList', [a], L).\nthrows error(representation_error(_), _).\n\n?- new_object('java.util.ArrayList', [a, b, c], L).\nthrows error(existence_error(oop_constructor, _), _).\n```";
|
|
2405
2405
|
}
|
|
2406
|
-
protoOf(NewObject3).
|
|
2407
|
-
return this.
|
|
2406
|
+
protoOf(NewObject3).i1x = function () {
|
|
2407
|
+
return this.v53_1;
|
|
2408
2408
|
};
|
|
2409
|
-
protoOf(NewObject3).
|
|
2410
|
-
Companion_getInstance_7().
|
|
2411
|
-
Companion_getInstance_7().
|
|
2409
|
+
protoOf(NewObject3).j2w = function (_this__u8e3s4, first, second, third) {
|
|
2410
|
+
Companion_getInstance_7().s2l(_this__u8e3s4, 0);
|
|
2411
|
+
Companion_getInstance_7().c2m(_this__u8e3s4, 1);
|
|
2412
2412
|
var tmp$ret$0;
|
|
2413
2413
|
$l$block: {
|
|
2414
2414
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2415
2415
|
try {
|
|
2416
2416
|
var type = getArgumentAsTypeRef(_this__u8e3s4, 0);
|
|
2417
2417
|
var arguments_0 = (isInterface(second, List) ? second : THROW_CCE()).toArray();
|
|
2418
|
-
var tmp1_safe_receiver = type == null ? null : type.
|
|
2419
|
-
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2418
|
+
var tmp1_safe_receiver = type == null ? null : type.d52(get_termToObjectConverter(_this__u8e3s4), arguments_0.slice());
|
|
2419
|
+
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.r51();
|
|
2420
2420
|
var tmp;
|
|
2421
2421
|
if (objectReference == null) {
|
|
2422
2422
|
tmp = null;
|
|
2423
2423
|
} else {
|
|
2424
2424
|
// Inline function 'kotlin.let' call
|
|
2425
|
-
tmp = Companion_getInstance_7().
|
|
2425
|
+
tmp = Companion_getInstance_7().i2l(_this__u8e3s4, third, objectReference);
|
|
2426
2426
|
}
|
|
2427
2427
|
var tmp3_elvis_lhs = tmp;
|
|
2428
2428
|
tmp$ret$0 = tmp3_elvis_lhs == null ? Companion_getInstance_6().failed() : tmp3_elvis_lhs;
|
|
@@ -2430,7 +2430,7 @@
|
|
|
2430
2430
|
} catch ($p) {
|
|
2431
2431
|
if ($p instanceof OopException) {
|
|
2432
2432
|
var e = $p;
|
|
2433
|
-
throw e.
|
|
2433
|
+
throw e.j52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2434
2434
|
} else {
|
|
2435
2435
|
if ($p instanceof ResolutionException) {
|
|
2436
2436
|
var e_0 = $p;
|
|
@@ -2448,8 +2448,8 @@
|
|
|
2448
2448
|
}
|
|
2449
2449
|
return tmp$ret$0;
|
|
2450
2450
|
};
|
|
2451
|
-
protoOf(NewObject3).
|
|
2452
|
-
return this.
|
|
2451
|
+
protoOf(NewObject3).t2n = function (_this__u8e3s4, first, second, third) {
|
|
2452
|
+
return this.j2w(_this__u8e3s4, first, second, third);
|
|
2453
2453
|
};
|
|
2454
2454
|
var NewObject3_instance;
|
|
2455
2455
|
function NewObject3_getInstance() {
|
|
@@ -2460,12 +2460,12 @@
|
|
|
2460
2460
|
function NullRef_0() {
|
|
2461
2461
|
NullRef_instance = this;
|
|
2462
2462
|
TypeTester.call(this, 'null_ref');
|
|
2463
|
-
this.
|
|
2463
|
+
this.x53_1 = "`null_ref(@Term)`\n\nSucceeds if `Term` is the null reference, i.e. the term representing a JVM/Kotlin `null` value (as returned, for instance, by a method returning `null`). Fails otherwise, including when `Term` is unbound.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.HashMap', [], M), invoke_method(M, get(k), V), null_ref(V).\nyes.\n\n?- null_ref(foo).\nno.\n\n?- null_ref(X).\nno.\n```";
|
|
2464
2464
|
}
|
|
2465
|
-
protoOf(NullRef_0).
|
|
2466
|
-
return this.
|
|
2465
|
+
protoOf(NullRef_0).i1x = function () {
|
|
2466
|
+
return this.x53_1;
|
|
2467
2467
|
};
|
|
2468
|
-
protoOf(NullRef_0).
|
|
2468
|
+
protoOf(NullRef_0).f2o = function (term) {
|
|
2469
2469
|
return isInterface(term, NullRef);
|
|
2470
2470
|
};
|
|
2471
2471
|
var NullRef_instance;
|
|
@@ -2477,12 +2477,12 @@
|
|
|
2477
2477
|
function ObjectRef_0() {
|
|
2478
2478
|
ObjectRef_instance = this;
|
|
2479
2479
|
TypeTester.call(this, 'object_ref');
|
|
2480
|
-
this.
|
|
2480
|
+
this.z53_1 = "`object_ref(@Term)`\n\nSucceeds if `Term` is an object reference, i.e. a term wrapping a JVM/Kotlin object (rendered like `<object:java.util.ArrayList#123>`), as produced by `new_object/3`, `cast/3`, `invoke_strict/3` and friends. The null reference counts as an object reference. Fails otherwise, including when `Term` is unbound.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.ArrayList', [], L), object_ref(L).\nyes.\n\n?- type('java.lang.String', T), object_ref(T).\nno.\n\n?- object_ref(X).\nno.\n```";
|
|
2481
2481
|
}
|
|
2482
|
-
protoOf(ObjectRef_0).
|
|
2483
|
-
return this.
|
|
2482
|
+
protoOf(ObjectRef_0).i1x = function () {
|
|
2483
|
+
return this.z53_1;
|
|
2484
2484
|
};
|
|
2485
|
-
protoOf(ObjectRef_0).
|
|
2485
|
+
protoOf(ObjectRef_0).f2o = function (term) {
|
|
2486
2486
|
return isInterface(term, ObjectRef);
|
|
2487
2487
|
};
|
|
2488
2488
|
var ObjectRef_instance;
|
|
@@ -2515,11 +2515,11 @@
|
|
|
2515
2515
|
function get_termToObjectConverter(_this__u8e3s4) {
|
|
2516
2516
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2517
2517
|
var tmp = Companion_getInstance_13();
|
|
2518
|
-
return tmp.
|
|
2518
|
+
return tmp.t51(VOID, _get_termToObjectConverter_$lambda_4bacq4(_this__u8e3s4));
|
|
2519
2519
|
}
|
|
2520
2520
|
function ensuringArgumentIsTypeRef(_this__u8e3s4, index) {
|
|
2521
2521
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2522
|
-
var arg = _this__u8e3s4.arguments.
|
|
2522
|
+
var arg = _this__u8e3s4.arguments.x(index);
|
|
2523
2523
|
var tmp;
|
|
2524
2524
|
var tmp_0;
|
|
2525
2525
|
if (matchesDealiasingTemplate(_this__u8e3s4, arg)) {
|
|
@@ -2532,7 +2532,7 @@
|
|
|
2532
2532
|
tmp = _this__u8e3s4;
|
|
2533
2533
|
} else {
|
|
2534
2534
|
if (!isInterface(arg, TypeRef)) {
|
|
2535
|
-
throw Companion_instance_1.
|
|
2535
|
+
throw Companion_instance_1.g2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_TYPE_REFERENCE_getInstance(), arg, index);
|
|
2536
2536
|
} else {
|
|
2537
2537
|
tmp = _this__u8e3s4;
|
|
2538
2538
|
}
|
|
@@ -2541,14 +2541,14 @@
|
|
|
2541
2541
|
}
|
|
2542
2542
|
function getArgumentAsTypeRef(_this__u8e3s4, index) {
|
|
2543
2543
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2544
|
-
Companion_getInstance_7().
|
|
2545
|
-
var arg = _this__u8e3s4.arguments.
|
|
2544
|
+
Companion_getInstance_7().s2l(_this__u8e3s4, index);
|
|
2545
|
+
var arg = _this__u8e3s4.arguments.x(index);
|
|
2546
2546
|
var tmp;
|
|
2547
2547
|
if (isInterface(arg, TypeRef)) {
|
|
2548
2548
|
tmp = arg;
|
|
2549
2549
|
} else {
|
|
2550
2550
|
if (isInterface(arg, Atom)) {
|
|
2551
|
-
tmp = Companion_getInstance_14().
|
|
2551
|
+
tmp = Companion_getInstance_14().v51_1.c52(arg.f1());
|
|
2552
2552
|
} else {
|
|
2553
2553
|
if (isDealiasingExpression(_this__u8e3s4, arg)) {
|
|
2554
2554
|
var tmp_0 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
@@ -2563,13 +2563,13 @@
|
|
|
2563
2563
|
}
|
|
2564
2564
|
function ensuringArgumentIsRef(_this__u8e3s4, index) {
|
|
2565
2565
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2566
|
-
var arg = _this__u8e3s4.arguments.
|
|
2566
|
+
var arg = _this__u8e3s4.arguments.x(index);
|
|
2567
2567
|
var tmp;
|
|
2568
2568
|
if (matchesDealiasingTemplate(_this__u8e3s4, arg) && ensureAliasIsRegistered(_this__u8e3s4, arg.castToStruct())) {
|
|
2569
2569
|
tmp = _this__u8e3s4;
|
|
2570
2570
|
} else {
|
|
2571
2571
|
if (!isInterface(arg, Ref)) {
|
|
2572
|
-
throw Companion_instance_1.
|
|
2572
|
+
throw Companion_instance_1.g2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_REFERENCE_getInstance(), arg, index);
|
|
2573
2573
|
} else {
|
|
2574
2574
|
tmp = _this__u8e3s4;
|
|
2575
2575
|
}
|
|
@@ -2592,15 +2592,15 @@
|
|
|
2592
2592
|
var tmp_1 = filter(this_0, findRefFromAliasOrNull$lambda);
|
|
2593
2593
|
var tmp$ret$0 = isInterface(tmp_1, Sequence) ? tmp_1 : THROW_CCE();
|
|
2594
2594
|
var tmp0_safe_receiver = firstOrNull(tmp$ret$0);
|
|
2595
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2595
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1y();
|
|
2596
2596
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get(1);
|
|
2597
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2597
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.sx();
|
|
2598
2598
|
}
|
|
2599
2599
|
function matchesDealiasingTemplate(_this__u8e3s4, term) {
|
|
2600
2600
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2601
2601
|
var tmp;
|
|
2602
2602
|
if (isInterface(term, Struct)) {
|
|
2603
|
-
tmp = Companion_getInstance_7().
|
|
2603
|
+
tmp = Companion_getInstance_7().j2l(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2604
2604
|
} else {
|
|
2605
2605
|
tmp = false;
|
|
2606
2606
|
}
|
|
@@ -2611,12 +2611,12 @@
|
|
|
2611
2611
|
var tmp;
|
|
2612
2612
|
var tmp_0;
|
|
2613
2613
|
if (isInterface(term, Struct)) {
|
|
2614
|
-
tmp_0 = Companion_getInstance_7().
|
|
2614
|
+
tmp_0 = Companion_getInstance_7().j2l(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2615
2615
|
} else {
|
|
2616
2616
|
tmp_0 = false;
|
|
2617
2617
|
}
|
|
2618
2618
|
if (tmp_0) {
|
|
2619
|
-
var tmp_1 = term.
|
|
2619
|
+
var tmp_1 = term.zw().x(0);
|
|
2620
2620
|
tmp = isInterface(tmp_1, Atom);
|
|
2621
2621
|
} else {
|
|
2622
2622
|
tmp = false;
|
|
@@ -2657,12 +2657,12 @@
|
|
|
2657
2657
|
function Ref_0() {
|
|
2658
2658
|
Ref_instance = this;
|
|
2659
2659
|
TypeTester.call(this, 'ref');
|
|
2660
|
-
this.
|
|
2660
|
+
this.b54_1 = "`ref(@Term)`\n\nSucceeds if `Term` is a reference of any kind: either an object reference (see `object_ref/1`, including the null reference) or a type reference (see `type_ref/1`). Fails otherwise, including when `Term` is unbound. References are opaque atomic terms that can be passed around, unified, and used as receivers of method calls.\n\n**Examples**\n\n```prolog\n?- type('java.lang.String', T), ref(T).\nyes.\n\n?- new_object('java.util.ArrayList', [], L), ref(L).\nyes.\n\n?- ref(hello).\nno.\n```";
|
|
2661
2661
|
}
|
|
2662
|
-
protoOf(Ref_0).
|
|
2663
|
-
return this.
|
|
2662
|
+
protoOf(Ref_0).i1x = function () {
|
|
2663
|
+
return this.b54_1;
|
|
2664
2664
|
};
|
|
2665
|
-
protoOf(Ref_0).
|
|
2665
|
+
protoOf(Ref_0).f2o = function (term) {
|
|
2666
2666
|
return isInterface(term, Ref);
|
|
2667
2667
|
};
|
|
2668
2668
|
var Ref_instance;
|
|
@@ -2675,29 +2675,29 @@
|
|
|
2675
2675
|
return function ($this$replySuccess) {
|
|
2676
2676
|
var tmp = Companion_instance_15;
|
|
2677
2677
|
var tmp_0 = isInterface($second, Struct) ? $second : THROW_CCE();
|
|
2678
|
-
$this$replySuccess.
|
|
2678
|
+
$this$replySuccess.v2q([tmp.c54(tmp_0, isInterface($first, Ref) ? $first : THROW_CCE()).g1x()]);
|
|
2679
2679
|
return Unit_instance;
|
|
2680
2680
|
};
|
|
2681
2681
|
}
|
|
2682
2682
|
function Register() {
|
|
2683
2683
|
Register_instance = this;
|
|
2684
2684
|
NonBacktrackable.call(this, 'register');
|
|
2685
|
-
this.
|
|
2685
|
+
this.e54_1 = "`register(+Ref, +Alias)`\n\nRegisters the object or type reference `Ref` under the ground term `Alias`, by adding an `alias(Alias, Ref)` fact to the static knowledge base. Afterwards `$Alias` can be used wherever a reference is expected, e.g. as the receiver of a method call. Registering an already-used alias adds another fact, so the earliest registration keeps taking precedence until removed with `unregister/1`. Raises an instantiation error if an argument is unbound or `Alias` is not ground, and a type error if `Ref` is not a reference or `Alias` is not callable.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.ArrayList', [], L), register(L, my_list).\nyes.\n\n?- $my_list.add(a), N := $my_list.size.\nN = 1.\n\n?- register(X, my_alias).\nthrows error(instantiation_error, _).\n```";
|
|
2686
2686
|
}
|
|
2687
|
-
protoOf(Register).
|
|
2688
|
-
return this.
|
|
2687
|
+
protoOf(Register).i1x = function () {
|
|
2688
|
+
return this.e54_1;
|
|
2689
2689
|
};
|
|
2690
|
-
protoOf(Register).
|
|
2691
|
-
Companion_getInstance_7().
|
|
2690
|
+
protoOf(Register).c2v = function (_this__u8e3s4, first_0, second) {
|
|
2691
|
+
Companion_getInstance_7().l2k(_this__u8e3s4);
|
|
2692
2692
|
ensuringArgumentIsRef(_this__u8e3s4, 0);
|
|
2693
|
-
Companion_getInstance_7().
|
|
2694
|
-
if (!second.
|
|
2695
|
-
throw Companion_instance_6.
|
|
2693
|
+
Companion_getInstance_7().s2l(_this__u8e3s4, 1);
|
|
2694
|
+
if (!second.cy()) {
|
|
2695
|
+
throw Companion_instance_6.k29(_this__u8e3s4.context, _this__u8e3s4.signature, first(second.ax()), 0);
|
|
2696
2696
|
}
|
|
2697
2697
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Register$computeOne$lambda(second, first_0));
|
|
2698
2698
|
};
|
|
2699
|
-
protoOf(Register).
|
|
2700
|
-
return this.
|
|
2699
|
+
protoOf(Register).n2k = function (_this__u8e3s4, first, second) {
|
|
2700
|
+
return this.c2v(_this__u8e3s4, first, second);
|
|
2701
2701
|
};
|
|
2702
2702
|
var Register_instance;
|
|
2703
2703
|
function Register_getInstance() {
|
|
@@ -2708,22 +2708,22 @@
|
|
|
2708
2708
|
function SetItems() {
|
|
2709
2709
|
SetItems_instance = this;
|
|
2710
2710
|
AbstractIterableItems.call(this, 'set', getKClass(KtSet));
|
|
2711
|
-
this.
|
|
2711
|
+
this.h54_1 = '`set_items(?SetRef, ?Items)`\n\nConverts between a Prolog list `Items` and an object reference `SetRef` wrapping a JVM/Kotlin `Set` with the same elements (duplicates are dropped, insertion order is kept). If `Items` is a list, each item is converted to an object (respecting `as` casts and `$Alias` references) and `SetRef` is unified with a reference to a fresh set; otherwise, if `SetRef` references a `Set`, `Items` is unified with its elements converted back to terms: strings become atoms, numbers become Prolog numbers, and other objects stay object references. Deterministic. Raises an instantiation error if both arguments are unbound, and a type error if `SetRef` is neither unbound nor an object reference; fails if it references something that is not a `Set`.\n\n**Examples**\n\n```prolog\n?- set_items(S, [a, b, b]), set_items(S, L).\nL = [a, b].\n\n?- set_items(S, [1, 1, 2.5]), set_items(S, L).\nL = [1, 2.5].\n\n?- set_items(S, [a, b]), N := S.size.\nN = 2.\n\n?- list_items(L, [a]), set_items(L, Items).\nno.\n```';
|
|
2712
2712
|
}
|
|
2713
|
-
protoOf(SetItems).
|
|
2714
|
-
return this.
|
|
2713
|
+
protoOf(SetItems).i1x = function () {
|
|
2714
|
+
return this.h54_1;
|
|
2715
2715
|
};
|
|
2716
|
-
protoOf(SetItems).
|
|
2716
|
+
protoOf(SetItems).z52 = function (_this__u8e3s4) {
|
|
2717
2717
|
return toSet(_this__u8e3s4);
|
|
2718
2718
|
};
|
|
2719
|
-
protoOf(SetItems).
|
|
2719
|
+
protoOf(SetItems).a53 = function (_this__u8e3s4) {
|
|
2720
2720
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtSet) : false;
|
|
2721
2721
|
};
|
|
2722
|
-
protoOf(SetItems).
|
|
2722
|
+
protoOf(SetItems).i54 = function (_this__u8e3s4) {
|
|
2723
2723
|
return asSequence(_this__u8e3s4);
|
|
2724
2724
|
};
|
|
2725
|
-
protoOf(SetItems).
|
|
2726
|
-
return this.
|
|
2725
|
+
protoOf(SetItems).b53 = function (_this__u8e3s4) {
|
|
2726
|
+
return this.i54(isInterface(_this__u8e3s4, KtSet) ? _this__u8e3s4 : THROW_CCE());
|
|
2727
2727
|
};
|
|
2728
2728
|
var SetItems_instance;
|
|
2729
2729
|
function SetItems_getInstance() {
|
|
@@ -2734,13 +2734,13 @@
|
|
|
2734
2734
|
function Type() {
|
|
2735
2735
|
Type_instance = this;
|
|
2736
2736
|
Functional_0.call(this, 'type');
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2737
|
+
this.k54_1 = "`type(?TypeName, ?TypeRef)`\n\nConverts between an atom `TypeName` and a type reference `TypeRef` to the class it names. Given an atom holding a fully qualified type name (e.g. `'java.lang.String'`), unifies `TypeRef` with a reference to that class, failing if no such class exists; given a type reference, unifies `TypeName` with the name of its class. Deterministic. Raises an instantiation error if both arguments are unbound and a type error if the bound argument has the wrong shape.\n\n**Examples**\n\n```prolog\n?- type('java.util.ArrayList', T), new_object(T, [], L), N := L.size.\nN = 0.\n\n?- type('java.util.ArrayList', T), type(Name, T).\nName = 'ArrayList'.\n\n?- type('no.such.Type', T).\nno.\n\n?- type(Name, 'java.lang.String').\nthrows error(type_error(type_reference, 'java.lang.String'), _).\n```";
|
|
2738
|
+
this.l54_1 = Companion_getInstance_14().v51_1;
|
|
2739
2739
|
}
|
|
2740
|
-
protoOf(Type).
|
|
2741
|
-
return this.
|
|
2740
|
+
protoOf(Type).i1x = function () {
|
|
2741
|
+
return this.k54_1;
|
|
2742
2742
|
};
|
|
2743
|
-
protoOf(Type).
|
|
2743
|
+
protoOf(Type).e2w = function (_this__u8e3s4, first, second) {
|
|
2744
2744
|
var tmp$ret$0;
|
|
2745
2745
|
$l$block: {
|
|
2746
2746
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2753,31 +2753,31 @@
|
|
|
2753
2753
|
tmp_0 = false;
|
|
2754
2754
|
}
|
|
2755
2755
|
if (tmp_0) {
|
|
2756
|
-
Companion_getInstance_7().
|
|
2756
|
+
Companion_getInstance_7().o2l(_this__u8e3s4, 0);
|
|
2757
2757
|
tmp = Companion_getInstance_6().failed();
|
|
2758
2758
|
} else {
|
|
2759
2759
|
if (isInterface(first, Var)) {
|
|
2760
|
-
Companion_getInstance_7().
|
|
2760
|
+
Companion_getInstance_7().x2l(_this__u8e3s4, 1);
|
|
2761
2761
|
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2762
2762
|
var tmp_1 = Companion_getInstance_7();
|
|
2763
2763
|
var tmp_2 = Companion_getInstance_0();
|
|
2764
|
-
tmp = tmp_1.
|
|
2764
|
+
tmp = tmp_1.i2l(_this__u8e3s4, first, tmp_2.of(get_name((isInterface(second, TypeRef) ? second : THROW_CCE()).u27())));
|
|
2765
2765
|
} else {
|
|
2766
2766
|
if (isInterface(second, Var)) {
|
|
2767
|
-
Companion_getInstance_7().
|
|
2768
|
-
var tmp_3 = Type_getInstance().
|
|
2769
|
-
var tmp0_safe_receiver = tmp_3.
|
|
2767
|
+
Companion_getInstance_7().x2l(_this__u8e3s4, 0);
|
|
2768
|
+
var tmp_3 = Type_getInstance().l54_1;
|
|
2769
|
+
var tmp0_safe_receiver = tmp_3.c52((isInterface(first, Atom) ? first : THROW_CCE()).f1());
|
|
2770
2770
|
var tmp_4;
|
|
2771
2771
|
if (tmp0_safe_receiver == null) {
|
|
2772
2772
|
tmp_4 = null;
|
|
2773
2773
|
} else {
|
|
2774
2774
|
// Inline function 'kotlin.let' call
|
|
2775
|
-
tmp_4 = Companion_getInstance_7().
|
|
2775
|
+
tmp_4 = Companion_getInstance_7().i2l(_this__u8e3s4, second, tmp0_safe_receiver);
|
|
2776
2776
|
}
|
|
2777
2777
|
var tmp1_elvis_lhs = tmp_4;
|
|
2778
2778
|
tmp = tmp1_elvis_lhs == null ? Companion_getInstance_6().failed() : tmp1_elvis_lhs;
|
|
2779
2779
|
} else {
|
|
2780
|
-
Companion_getInstance_7().
|
|
2780
|
+
Companion_getInstance_7().x2l(_this__u8e3s4, 0);
|
|
2781
2781
|
tmp = Companion_getInstance_6().failed();
|
|
2782
2782
|
}
|
|
2783
2783
|
}
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
} catch ($p) {
|
|
2788
2788
|
if ($p instanceof OopException) {
|
|
2789
2789
|
var e = $p;
|
|
2790
|
-
throw e.
|
|
2790
|
+
throw e.j52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2791
2791
|
} else {
|
|
2792
2792
|
if ($p instanceof ResolutionException) {
|
|
2793
2793
|
var e_0 = $p;
|
|
@@ -2805,8 +2805,8 @@
|
|
|
2805
2805
|
}
|
|
2806
2806
|
return tmp$ret$0;
|
|
2807
2807
|
};
|
|
2808
|
-
protoOf(Type).
|
|
2809
|
-
return this.
|
|
2808
|
+
protoOf(Type).w2k = function (_this__u8e3s4, first, second) {
|
|
2809
|
+
return this.e2w(_this__u8e3s4, first, second);
|
|
2810
2810
|
};
|
|
2811
2811
|
var Type_instance;
|
|
2812
2812
|
function Type_getInstance() {
|
|
@@ -2817,12 +2817,12 @@
|
|
|
2817
2817
|
function TypeRef_0() {
|
|
2818
2818
|
TypeRef_instance = this;
|
|
2819
2819
|
TypeTester.call(this, 'type_ref');
|
|
2820
|
-
this.
|
|
2820
|
+
this.n54_1 = "`type_ref(@Term)`\n\nSucceeds if `Term` is a type reference, i.e. a term wrapping a JVM/Kotlin class (rendered like `<type:java.lang.String>`), as produced by `type/2` or by `$Alias` references to types such as `$string`. Type references can be used to instantiate a class (`new_object/3`) or to invoke its static members. Fails otherwise, including when `Term` is unbound.\n\n**Examples**\n\n```prolog\n?- alias(string, T), type_ref(T).\nyes.\n\n?- type_ref('java.lang.String').\nno.\n\n?- new_object('java.util.ArrayList', [], L), type_ref(L).\nno.\n```";
|
|
2821
2821
|
}
|
|
2822
|
-
protoOf(TypeRef_0).
|
|
2823
|
-
return this.
|
|
2822
|
+
protoOf(TypeRef_0).i1x = function () {
|
|
2823
|
+
return this.n54_1;
|
|
2824
2824
|
};
|
|
2825
|
-
protoOf(TypeRef_0).
|
|
2825
|
+
protoOf(TypeRef_0).f2o = function (term) {
|
|
2826
2826
|
return isInterface(term, TypeRef);
|
|
2827
2827
|
};
|
|
2828
2828
|
var TypeRef_instance;
|
|
@@ -2833,41 +2833,41 @@
|
|
|
2833
2833
|
}
|
|
2834
2834
|
function Unregister$computeOne$lambda($first) {
|
|
2835
2835
|
return function (it) {
|
|
2836
|
-
return it.
|
|
2836
|
+
return it.ez().get(0).equals($first);
|
|
2837
2837
|
};
|
|
2838
2838
|
}
|
|
2839
2839
|
function Unregister$computeOne$lambda_0($toBeRemoved) {
|
|
2840
2840
|
return function ($this$replySuccess) {
|
|
2841
|
-
$this$replySuccess.
|
|
2841
|
+
$this$replySuccess.w2q($toBeRemoved);
|
|
2842
2842
|
return Unit_instance;
|
|
2843
2843
|
};
|
|
2844
2844
|
}
|
|
2845
2845
|
function Unregister() {
|
|
2846
2846
|
Unregister_instance = this;
|
|
2847
2847
|
NonBacktrackable_0.call(this, 'unregister');
|
|
2848
|
-
this.
|
|
2848
|
+
this.p54_1 = "`unregister(+Alias)`\n\nRemoves every `alias(Alias, _)` fact for the ground term `Alias` from the static knowledge base, undoing `register/2` (it can also remove the library's default aliases, such as `string` or `stdout`). Fails if no such alias is registered. Raises a type error if `Alias` is unbound or not callable, and an instantiation error if it is not ground.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.ArrayList', [], L), register(L, my_list).\nyes.\n\n?- unregister(my_list).\nyes.\n\n?- alias(my_list, R).\nno.\n\n?- unregister(my_list).\nno.\n```";
|
|
2849
2849
|
}
|
|
2850
|
-
protoOf(Unregister).
|
|
2851
|
-
return this.
|
|
2850
|
+
protoOf(Unregister).i1x = function () {
|
|
2851
|
+
return this.p54_1;
|
|
2852
2852
|
};
|
|
2853
|
-
protoOf(Unregister).
|
|
2854
|
-
Companion_getInstance_7().
|
|
2855
|
-
if (!first_0.
|
|
2856
|
-
throw Companion_instance_6.
|
|
2853
|
+
protoOf(Unregister).l2u = function (_this__u8e3s4, first_0) {
|
|
2854
|
+
Companion_getInstance_7().s2l(_this__u8e3s4, 0);
|
|
2855
|
+
if (!first_0.cy()) {
|
|
2856
|
+
throw Companion_instance_6.k29(_this__u8e3s4.context, _this__u8e3s4.signature, first(first_0.ax()), 0);
|
|
2857
2857
|
}
|
|
2858
2858
|
var pattern = Companion_getInstance_9().of('alias', [first_0, Companion_getInstance_8().anonymous()]);
|
|
2859
|
-
var tmp = _this__u8e3s4.context.
|
|
2859
|
+
var tmp = _this__u8e3s4.context.v1x().getByHead(pattern);
|
|
2860
2860
|
var toBeRemoved = toList(filter(tmp, Unregister$computeOne$lambda(first_0)));
|
|
2861
2861
|
var tmp_0;
|
|
2862
|
-
if (toBeRemoved.
|
|
2862
|
+
if (toBeRemoved.i()) {
|
|
2863
2863
|
tmp_0 = _this__u8e3s4.replyFail(VOID, []);
|
|
2864
2864
|
} else {
|
|
2865
2865
|
tmp_0 = _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Unregister$computeOne$lambda_0(toBeRemoved));
|
|
2866
2866
|
}
|
|
2867
2867
|
return tmp_0;
|
|
2868
2868
|
};
|
|
2869
|
-
protoOf(Unregister).
|
|
2870
|
-
return this.
|
|
2869
|
+
protoOf(Unregister).a2o = function (_this__u8e3s4, first) {
|
|
2870
|
+
return this.l2u(_this__u8e3s4, first);
|
|
2871
2871
|
};
|
|
2872
2872
|
var Unregister_instance;
|
|
2873
2873
|
function Unregister_getInstance() {
|
|
@@ -2876,12 +2876,12 @@
|
|
|
2876
2876
|
return Unregister_instance;
|
|
2877
2877
|
}
|
|
2878
2878
|
function Companion_7() {
|
|
2879
|
-
this.
|
|
2879
|
+
this.e51_1 = 'alias';
|
|
2880
2880
|
}
|
|
2881
|
-
protoOf(Companion_7).
|
|
2882
|
-
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.
|
|
2881
|
+
protoOf(Companion_7).f51 = function (alias, type) {
|
|
2882
|
+
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.a52(type));
|
|
2883
2883
|
};
|
|
2884
|
-
protoOf(Companion_7).
|
|
2884
|
+
protoOf(Companion_7).c54 = function (alias, ref) {
|
|
2885
2885
|
return new Alias(alias, ref);
|
|
2886
2886
|
};
|
|
2887
2887
|
var Companion_instance_15;
|
|
@@ -2890,36 +2890,36 @@
|
|
|
2890
2890
|
}
|
|
2891
2891
|
function Alias(alias, ref) {
|
|
2892
2892
|
RuleWrapper_init_$Init$('alias', 2, VOID, this);
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2893
|
+
this.t54_1 = alias;
|
|
2894
|
+
this.u54_1 = ref;
|
|
2895
|
+
this.v54_1 = "`alias(?Alias, ?Ref)`\n\nAssociates a ground term `Alias` with an object or type reference `Ref`, so that `$Alias` can stand for `Ref` wherever a reference is expected (as a method receiver, as a constructor or method argument, or as the type in `as` casts and `cast/3`). The library ships facts for common types (`string`, `array`, `list`, `arraylist`, `map`, `hashmap`, `int`, `integer`, `double`, `float`, `long`, `short`, `byte`, `char`, `bool`, `boolean`, `any`, `nothing`, `big_integer`, `big_decimal`) and, on the JVM, `system` and `math` (types) plus `stdout`, `stderr` and `stdin` (objects). Querying it enumerates the registered aliases on backtracking; add or remove aliases with `register/2` and `unregister/1`.\n\n**Examples**\n\n```prolog\n?- alias(A, _).\nA = string ; A = array ; A = list.\n\n?- alias(string, T), type(Name, T).\nName = 'String'.\n\n?- alias(nope, R).\nno.\n```";
|
|
2896
2896
|
// Inline function 'kotlin.require' call
|
|
2897
|
-
if (!this.
|
|
2898
|
-
var message = 'Alias must be a ground term, got: ' + this.
|
|
2897
|
+
if (!this.t54_1.cy()) {
|
|
2898
|
+
var message = 'Alias must be a ground term, got: ' + this.t54_1.toString();
|
|
2899
2899
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2900
2900
|
}
|
|
2901
2901
|
}
|
|
2902
|
-
protoOf(Alias).
|
|
2903
|
-
return this.
|
|
2902
|
+
protoOf(Alias).i1x = function () {
|
|
2903
|
+
return this.v54_1;
|
|
2904
2904
|
};
|
|
2905
|
-
protoOf(Alias).
|
|
2906
|
-
return toList(sequenceOf_0([this.
|
|
2905
|
+
protoOf(Alias).g2o = function (_this__u8e3s4) {
|
|
2906
|
+
return toList(sequenceOf_0([this.t54_1, this.u54_1]));
|
|
2907
2907
|
};
|
|
2908
2908
|
function _get_R__7mlo3j($this) {
|
|
2909
2909
|
var tmp = KProperty1;
|
|
2910
|
-
return $this.
|
|
2910
|
+
return $this.a55_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Cast$_get_R_$ref_879xch(), null));
|
|
2911
2911
|
}
|
|
2912
2912
|
function _get_X__7mlo8p($this) {
|
|
2913
2913
|
var tmp = KProperty1;
|
|
2914
|
-
return $this.
|
|
2914
|
+
return $this.b55_1.getValue($this, getPropertyCallableRef('X', 1, tmp, ColonEquals$Cast$_get_X_$ref_5d06zb(), null));
|
|
2915
2915
|
}
|
|
2916
2916
|
function _get_Y__7mlo9k($this) {
|
|
2917
2917
|
var tmp = KProperty1;
|
|
2918
|
-
return $this.
|
|
2918
|
+
return $this.c55_1.getValue($this, getPropertyCallableRef('Y', 1, tmp, ColonEquals$Cast$_get_Y_$ref_4vykl4(), null));
|
|
2919
2919
|
}
|
|
2920
2920
|
function _get_T__7mlo59($this) {
|
|
2921
2921
|
var tmp = KProperty1;
|
|
2922
|
-
return $this.
|
|
2922
|
+
return $this.d55_1.getValue($this, getPropertyCallableRef('T', 1, tmp, ColonEquals$Cast$_get_T_$ref_796ok3(), null));
|
|
2923
2923
|
}
|
|
2924
2924
|
function ColonEquals$Cast$_get_R_$ref_879xch() {
|
|
2925
2925
|
return constructCallableReference(function (p0) {
|
|
@@ -2943,11 +2943,11 @@
|
|
|
2943
2943
|
}
|
|
2944
2944
|
function _get_R__7mlo3j_0($this) {
|
|
2945
2945
|
var tmp = KProperty1;
|
|
2946
|
-
return $this.
|
|
2946
|
+
return $this.i55_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Invocation$_get_R_$ref_tlu5kw(), null));
|
|
2947
2947
|
}
|
|
2948
2948
|
function _get_M__7mlnz8($this) {
|
|
2949
2949
|
var tmp = KProperty1;
|
|
2950
|
-
return $this.
|
|
2950
|
+
return $this.j55_1.getValue($this, getPropertyCallableRef('M', 1, tmp, ColonEquals$Invocation$_get_M_$ref_vz29jv(), null));
|
|
2951
2951
|
}
|
|
2952
2952
|
function ColonEquals$Invocation$_get_R_$ref_tlu5kw() {
|
|
2953
2953
|
return constructCallableReference(function (p0) {
|
|
@@ -2961,19 +2961,19 @@
|
|
|
2961
2961
|
}
|
|
2962
2962
|
function _get_C__7mlnqm($this) {
|
|
2963
2963
|
var tmp = KProperty1;
|
|
2964
|
-
return $this.
|
|
2964
|
+
return $this.o55_1.getValue($this, getPropertyCallableRef('C', 1, tmp, ColonEquals$Assignment$_get_C_$ref_kw9fvw(), null));
|
|
2965
2965
|
}
|
|
2966
2966
|
function _get_P__7mlo1t($this) {
|
|
2967
2967
|
var tmp = KProperty1;
|
|
2968
|
-
return $this.
|
|
2968
|
+
return $this.p55_1.getValue($this, getPropertyCallableRef('P', 1, tmp, ColonEquals$Assignment$_get_P_$ref_r1uj0f(), null));
|
|
2969
2969
|
}
|
|
2970
2970
|
function _get_R__7mlo3j_1($this) {
|
|
2971
2971
|
var tmp = KProperty1;
|
|
2972
|
-
return $this.
|
|
2972
|
+
return $this.q55_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Assignment$_get_R_$ref_rzxrst(), null));
|
|
2973
2973
|
}
|
|
2974
2974
|
function _get_V__7mlo6z($this) {
|
|
2975
2975
|
var tmp = KProperty1;
|
|
2976
|
-
return $this.
|
|
2976
|
+
return $this.r55_1.getValue($this, getPropertyCallableRef('V', 1, tmp, ColonEquals$Assignment$_get_V_$ref_tw49dl(), null));
|
|
2977
2977
|
}
|
|
2978
2978
|
function ColonEquals$Assignment$_get_C_$ref_kw9fvw() {
|
|
2979
2979
|
return constructCallableReference(function (p0) {
|
|
@@ -2998,15 +2998,15 @@
|
|
|
2998
2998
|
function Cast_0() {
|
|
2999
2999
|
Cast_instance_0 = this;
|
|
3000
3000
|
ColonEquals.call(this);
|
|
3001
|
-
this.
|
|
3002
|
-
this.
|
|
3003
|
-
this.
|
|
3004
|
-
this.
|
|
3001
|
+
this.a55_1 = this.y21_1;
|
|
3002
|
+
this.b55_1 = this.y21_1;
|
|
3003
|
+
this.c55_1 = this.y21_1;
|
|
3004
|
+
this.d55_1 = this.y21_1;
|
|
3005
3005
|
}
|
|
3006
|
-
protoOf(Cast_0).
|
|
3006
|
+
protoOf(Cast_0).g2o = function (_this__u8e3s4) {
|
|
3007
3007
|
return listOf([_get_R__7mlo3j(this), _this__u8e3s4.structOf('as', [_get_X__7mlo8p(this), _get_T__7mlo59(this)])]);
|
|
3008
3008
|
};
|
|
3009
|
-
protoOf(Cast_0).
|
|
3009
|
+
protoOf(Cast_0).h2o = function (_this__u8e3s4) {
|
|
3010
3010
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3011
3011
|
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
3012
3012
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j(this)]);
|
|
@@ -3025,13 +3025,13 @@
|
|
|
3025
3025
|
function Invocation() {
|
|
3026
3026
|
Invocation_instance = this;
|
|
3027
3027
|
ColonEquals.call(this);
|
|
3028
|
-
this.
|
|
3029
|
-
this.
|
|
3028
|
+
this.i55_1 = this.y21_1;
|
|
3029
|
+
this.j55_1 = this.y21_1;
|
|
3030
3030
|
}
|
|
3031
|
-
protoOf(Invocation).
|
|
3031
|
+
protoOf(Invocation).g2o = function (_this__u8e3s4) {
|
|
3032
3032
|
return listOf([_get_R__7mlo3j_0(this), _get_M__7mlnz8(this)]);
|
|
3033
3033
|
};
|
|
3034
|
-
protoOf(Invocation).
|
|
3034
|
+
protoOf(Invocation).h2o = function (_this__u8e3s4) {
|
|
3035
3035
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3036
3036
|
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
3037
3037
|
return _this__u8e3s4.tupleOf([_this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j_0(this)]), _this__u8e3s4.atomOf('!'), _this__u8e3s4.structOf('fluent_reduce', [_get_M__7mlnz8(this), _get_R__7mlo3j_0(this)])]);
|
|
@@ -3045,15 +3045,15 @@
|
|
|
3045
3045
|
function Assignment() {
|
|
3046
3046
|
Assignment_instance = this;
|
|
3047
3047
|
ColonEquals.call(this);
|
|
3048
|
-
this.
|
|
3049
|
-
this.
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3048
|
+
this.o55_1 = this.y21_1;
|
|
3049
|
+
this.p55_1 = this.y21_1;
|
|
3050
|
+
this.q55_1 = this.y21_1;
|
|
3051
|
+
this.r55_1 = this.y21_1;
|
|
3052
3052
|
}
|
|
3053
|
-
protoOf(Assignment).
|
|
3053
|
+
protoOf(Assignment).g2o = function (_this__u8e3s4) {
|
|
3054
3054
|
return listOf([_get_C__7mlnqm(this), _get_V__7mlo6z(this)]);
|
|
3055
3055
|
};
|
|
3056
|
-
protoOf(Assignment).
|
|
3056
|
+
protoOf(Assignment).h2o = function (_this__u8e3s4) {
|
|
3057
3057
|
var tmp = _this__u8e3s4.structOf('property_reduce', [_get_C__7mlnqm(this), _get_R__7mlo3j_1(this), _get_P__7mlo1t(this)]);
|
|
3058
3058
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3059
3059
|
var tmp$ret$0 = Assign_getInstance().signature.name;
|
|
@@ -3067,18 +3067,18 @@
|
|
|
3067
3067
|
}
|
|
3068
3068
|
function ColonEquals() {
|
|
3069
3069
|
RuleWrapper_init_$Init$(':=', 2, VOID, this);
|
|
3070
|
-
this.
|
|
3070
|
+
this.v55_1 = "`?Target := +Expression`\n\nFluent evaluation and assignment. If `Target` is unbound, `Target := Receiver.m1(...).m2` evaluates the method/property chain on the right (see `./2`) and binds `Target` to the converted result of the last access; a right-hand side that is not a chain is just unified with `Target` (e.g. `X := 5`). `Target := Term as Type` additionally converts the (evaluated) `Term` via `cast/3`, binding `Target` to an object reference; here `Type` must be a type reference or a `$Alias` such as `$long`, and since `as` binds tighter than `.`, a chain must be parenthesised: `R := (Obj.size) as $long`. If `Target` is bound, it must be a chain `Receiver.Property` (possibly longer), and `:=` evaluates everything but the last access and then assigns `Expression` to `Property` via `assign/3`.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.ArrayList', [], L), L.add(a), N := L.size.\nN = 1.\n\n?- X := 5.\nX = 5.\n\n?- new_object('java.util.ArrayList', [], L), R := (L.size) as $long, object_ref(R).\nyes.\n\n?- new_object('java.awt.Point', [1, 2], P), P.x := 7, X := P.x.\nX = 7.\n```";
|
|
3071
3071
|
}
|
|
3072
|
-
protoOf(ColonEquals).
|
|
3073
|
-
return this.
|
|
3072
|
+
protoOf(ColonEquals).i1x = function () {
|
|
3073
|
+
return this.v55_1;
|
|
3074
3074
|
};
|
|
3075
3075
|
function _get_Method__a3idyi($this) {
|
|
3076
3076
|
var tmp = KProperty1;
|
|
3077
|
-
return $this.
|
|
3077
|
+
return $this.a56_1.getValue($this, getPropertyCallableRef('Method', 1, tmp, Dot$_get_Method_$ref_b7a4zw(), null));
|
|
3078
3078
|
}
|
|
3079
3079
|
function _get_Ref__e5vi4e($this) {
|
|
3080
3080
|
var tmp = KProperty1;
|
|
3081
|
-
return $this.
|
|
3081
|
+
return $this.b56_1.getValue($this, getPropertyCallableRef('Ref', 1, tmp, Dot$_get_Ref_$ref_33uzaq(), null));
|
|
3082
3082
|
}
|
|
3083
3083
|
function Dot$_get_Method_$ref_b7a4zw() {
|
|
3084
3084
|
return constructCallableReference(function (p0) {
|
|
@@ -3093,18 +3093,18 @@
|
|
|
3093
3093
|
function Dot() {
|
|
3094
3094
|
Dot_instance = this;
|
|
3095
3095
|
RuleWrapper_init_$Init$('.', 2, VOID, this);
|
|
3096
|
-
this.
|
|
3097
|
-
this.
|
|
3098
|
-
this.
|
|
3096
|
+
this.z55_1 = "`+Receiver.+Message`\n\nFluent member access: invokes `Message` on the object, type, or `$Alias` referenced by `Receiver`, discarding the result. `Message` is an atom (a no-argument method, or a property to read) or a compound `name(Arg1, ..., ArgN)`; arguments are converted to objects, with `as` casts to steer overload selection. Since `.` is right-associative, accesses can be chained: `Obj.foo(1).bar` calls `foo(1)` on `Obj`, then `bar` on its result, each step via `invoke_method/3`. Used as a goal, it runs the chain for its side effects; to capture the final result write `Result := Obj.foo(1).bar` (see `:=/2`). Errors are those of `invoke_method/3`.\n\n**Examples**\n\n```prolog\n?- $stdout.println(hello).\n% prints: hello\nyes.\n\n?- new_object('java.util.ArrayList', [], L), L.add(a), L.add(b), list_items(L, Items).\nItems = [a, b].\n\n?- new_object('java.util.ArrayList', [], L), L.nope.\nthrows error(existence_error(_, _), _).\n```";
|
|
3097
|
+
this.a56_1 = this.y21_1;
|
|
3098
|
+
this.b56_1 = this.y21_1;
|
|
3099
3099
|
}
|
|
3100
|
-
protoOf(Dot).
|
|
3101
|
-
return this.
|
|
3100
|
+
protoOf(Dot).i1x = function () {
|
|
3101
|
+
return this.z55_1;
|
|
3102
3102
|
};
|
|
3103
|
-
protoOf(Dot).
|
|
3103
|
+
protoOf(Dot).g2o = function (_this__u8e3s4) {
|
|
3104
3104
|
return listOf([_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)]);
|
|
3105
3105
|
};
|
|
3106
|
-
protoOf(Dot).
|
|
3107
|
-
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.
|
|
3106
|
+
protoOf(Dot).h2o = function (_this__u8e3s4) {
|
|
3107
|
+
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.n12()]);
|
|
3108
3108
|
};
|
|
3109
3109
|
var Dot_instance;
|
|
3110
3110
|
function Dot_getInstance() {
|
|
@@ -3114,19 +3114,19 @@
|
|
|
3114
3114
|
}
|
|
3115
3115
|
function _get_P__7mlo1t_0($this) {
|
|
3116
3116
|
var tmp = KProperty1;
|
|
3117
|
-
return $this.
|
|
3117
|
+
return $this.h56_1.getValue($this, getPropertyCallableRef('P', 1, tmp, FluentReduce$Recursive$_get_P_$ref_qmyw78(), null));
|
|
3118
3118
|
}
|
|
3119
3119
|
function _get_M__7mlnz8_0($this) {
|
|
3120
3120
|
var tmp = KProperty1;
|
|
3121
|
-
return $this.
|
|
3121
|
+
return $this.i56_1.getValue($this, getPropertyCallableRef('M', 1, tmp, FluentReduce$Recursive$_get_M_$ref_s23rdt(), null));
|
|
3122
3122
|
}
|
|
3123
3123
|
function _get_P1__ndbjd6($this) {
|
|
3124
3124
|
var tmp = KProperty1;
|
|
3125
|
-
return $this.
|
|
3125
|
+
return $this.j56_1.getValue($this, getPropertyCallableRef('P1', 1, tmp, FluentReduce$Recursive$_get_P1_$ref_ksmyi5(), null));
|
|
3126
3126
|
}
|
|
3127
3127
|
function _get_X__7mlo8p_0($this) {
|
|
3128
3128
|
var tmp = KProperty1;
|
|
3129
|
-
return $this.
|
|
3129
|
+
return $this.k56_1.getValue($this, getPropertyCallableRef('X', 1, tmp, FluentReduce$Recursive$_get_X_$ref_mulx1o(), null));
|
|
3130
3130
|
}
|
|
3131
3131
|
function FluentReduce$Recursive$_get_P_$ref_qmyw78() {
|
|
3132
3132
|
return constructCallableReference(function (p0) {
|
|
@@ -3150,11 +3150,11 @@
|
|
|
3150
3150
|
}
|
|
3151
3151
|
function _get_P__7mlo1t_1($this) {
|
|
3152
3152
|
var tmp = KProperty1;
|
|
3153
|
-
return $this.
|
|
3153
|
+
return $this.q56_1.getValue($this, getPropertyCallableRef('P', 1, tmp, FluentReduce$Couple$_get_P_$ref_o7vzn6(), null));
|
|
3154
3154
|
}
|
|
3155
3155
|
function _get_M__7mlnz8_1($this) {
|
|
3156
3156
|
var tmp = KProperty1;
|
|
3157
|
-
return $this.
|
|
3157
|
+
return $this.r56_1.getValue($this, getPropertyCallableRef('M', 1, tmp, FluentReduce$Couple$_get_M_$ref_pn0utr(), null));
|
|
3158
3158
|
}
|
|
3159
3159
|
function FluentReduce$Couple$_get_P_$ref_o7vzn6() {
|
|
3160
3160
|
return constructCallableReference(function (p0) {
|
|
@@ -3167,8 +3167,8 @@
|
|
|
3167
3167
|
}, 1, 0, 149);
|
|
3168
3168
|
}
|
|
3169
3169
|
function Companion_8() {
|
|
3170
|
-
this.
|
|
3171
|
-
this.
|
|
3170
|
+
this.s56_1 = 'fluent_reduce';
|
|
3171
|
+
this.t56_1 = 2;
|
|
3172
3172
|
}
|
|
3173
3173
|
var Companion_instance_16;
|
|
3174
3174
|
function Companion_getInstance_19() {
|
|
@@ -3177,19 +3177,19 @@
|
|
|
3177
3177
|
function Recursive() {
|
|
3178
3178
|
Recursive_instance = this;
|
|
3179
3179
|
FluentReduce.call(this);
|
|
3180
|
-
this.
|
|
3181
|
-
this.
|
|
3182
|
-
this.
|
|
3183
|
-
this.
|
|
3180
|
+
this.h56_1 = this.y21_1;
|
|
3181
|
+
this.i56_1 = this.y21_1;
|
|
3182
|
+
this.j56_1 = this.y21_1;
|
|
3183
|
+
this.k56_1 = this.y21_1;
|
|
3184
3184
|
}
|
|
3185
|
-
protoOf(Recursive).
|
|
3186
|
-
return listOf([_this__u8e3s4.
|
|
3185
|
+
protoOf(Recursive).g2o = function (_this__u8e3s4) {
|
|
3186
|
+
return listOf([_this__u8e3s4.o12([_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this)], _get_X__7mlo8p_0(this)), this.z56()]);
|
|
3187
3187
|
};
|
|
3188
|
-
protoOf(Recursive).
|
|
3188
|
+
protoOf(Recursive).h2o = function (_this__u8e3s4) {
|
|
3189
3189
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3190
3190
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3191
3191
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3192
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this), _get_P1__ndbjd6(this)]), _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_P1__ndbjd6(this), _get_X__7mlo8p_0(this)), this.
|
|
3192
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this), _get_P1__ndbjd6(this)]), _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_P1__ndbjd6(this), _get_X__7mlo8p_0(this)), this.z56()])]);
|
|
3193
3193
|
};
|
|
3194
3194
|
var Recursive_instance;
|
|
3195
3195
|
function Recursive_getInstance() {
|
|
@@ -3200,17 +3200,17 @@
|
|
|
3200
3200
|
function Couple() {
|
|
3201
3201
|
Couple_instance = this;
|
|
3202
3202
|
FluentReduce.call(this);
|
|
3203
|
-
this.
|
|
3204
|
-
this.
|
|
3203
|
+
this.q56_1 = this.y21_1;
|
|
3204
|
+
this.r56_1 = this.y21_1;
|
|
3205
3205
|
}
|
|
3206
|
-
protoOf(Couple).
|
|
3207
|
-
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.
|
|
3206
|
+
protoOf(Couple).g2o = function (_this__u8e3s4) {
|
|
3207
|
+
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.z56()]);
|
|
3208
3208
|
};
|
|
3209
|
-
protoOf(Couple).
|
|
3209
|
+
protoOf(Couple).h2o = function (_this__u8e3s4) {
|
|
3210
3210
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3211
3211
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3212
3212
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3213
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.
|
|
3213
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.z56()])]);
|
|
3214
3214
|
};
|
|
3215
3215
|
var Couple_instance;
|
|
3216
3216
|
function Couple_getInstance() {
|
|
@@ -3222,8 +3222,8 @@
|
|
|
3222
3222
|
Trivial_instance = this;
|
|
3223
3223
|
FluentReduce.call(this);
|
|
3224
3224
|
}
|
|
3225
|
-
protoOf(Trivial).
|
|
3226
|
-
return listOf([this.
|
|
3225
|
+
protoOf(Trivial).g2o = function (_this__u8e3s4) {
|
|
3226
|
+
return listOf([this.z56(), this.z56()]);
|
|
3227
3227
|
};
|
|
3228
3228
|
var Trivial_instance;
|
|
3229
3229
|
function Trivial_getInstance() {
|
|
@@ -3233,31 +3233,31 @@
|
|
|
3233
3233
|
}
|
|
3234
3234
|
function FluentReduce$_get_R_$ref_ypb4y4() {
|
|
3235
3235
|
return constructCallableReference(function (p0) {
|
|
3236
|
-
return p0.
|
|
3236
|
+
return p0.z56();
|
|
3237
3237
|
}, 1, 0, 150);
|
|
3238
3238
|
}
|
|
3239
3239
|
function FluentReduce() {
|
|
3240
3240
|
RuleWrapper_init_$Init$('fluent_reduce', 2, VOID, this);
|
|
3241
|
-
this.
|
|
3242
|
-
this.
|
|
3241
|
+
this.x56_1 = "`fluent_reduce(+Expression, ?Result)`\n\nHelper behind `./2` and `:=/2`: evaluates a chain of member accesses `Receiver.M1.M2...` (which, as `.` is the list constructor, is the same term as the improper list `[Receiver, M1 | M2]`) by invoking `M1` on `Receiver` via `invoke_method/3`, then `M2` on that result, and so on, unifying `Result` with the last result. A term that is not a chain is unified with `Result` unchanged. Deterministic (each clause cuts). Errors are those of `invoke_method/3`.\n\n**Examples**\n\n```prolog\n?- fluent_reduce($math.max(1, 2), M).\nM = 2.\n\n?- new_object('java.lang.StringBuilder', [abc], B), fluent_reduce(B.reverse.toString, S).\nS = cba.\n\n?- fluent_reduce(foo, R).\nR = foo.\n```";
|
|
3242
|
+
this.y56_1 = this.y21_1;
|
|
3243
3243
|
}
|
|
3244
|
-
protoOf(FluentReduce).
|
|
3245
|
-
return this.
|
|
3244
|
+
protoOf(FluentReduce).i1x = function () {
|
|
3245
|
+
return this.x56_1;
|
|
3246
3246
|
};
|
|
3247
|
-
protoOf(FluentReduce).
|
|
3247
|
+
protoOf(FluentReduce).z56 = function () {
|
|
3248
3248
|
var tmp = KProperty1;
|
|
3249
|
-
return this.
|
|
3249
|
+
return this.y56_1.getValue(this, getPropertyCallableRef('R', 1, tmp, FluentReduce$_get_R_$ref_ypb4y4(), null));
|
|
3250
3250
|
};
|
|
3251
|
-
protoOf(FluentReduce).
|
|
3251
|
+
protoOf(FluentReduce).h2o = function (_this__u8e3s4) {
|
|
3252
3252
|
return _this__u8e3s4.atomOf('!');
|
|
3253
3253
|
};
|
|
3254
3254
|
function _get_Type__cwwv8x($this) {
|
|
3255
3255
|
var tmp = KProperty1;
|
|
3256
|
-
return $this.
|
|
3256
|
+
return $this.j57_1.getValue($this, getPropertyCallableRef('Type', 1, tmp, NewObject2$_get_Type_$ref_gxw6of(), null));
|
|
3257
3257
|
}
|
|
3258
3258
|
function _get_Instance__cwfjuy($this) {
|
|
3259
3259
|
var tmp = KProperty1;
|
|
3260
|
-
return $this.
|
|
3260
|
+
return $this.k57_1.getValue($this, getPropertyCallableRef('Instance', 1, tmp, NewObject2$_get_Instance_$ref_jt2xca(), null));
|
|
3261
3261
|
}
|
|
3262
3262
|
function NewObject2$_get_Type_$ref_gxw6of() {
|
|
3263
3263
|
return constructCallableReference(function (p0) {
|
|
@@ -3274,20 +3274,20 @@
|
|
|
3274
3274
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3275
3275
|
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3276
3276
|
RuleWrapper_init_$Init$(tmp$ret$0, 2, VOID, this);
|
|
3277
|
-
this.
|
|
3278
|
-
this.
|
|
3279
|
-
this.
|
|
3277
|
+
this.i57_1 = "`new_object(+Type, -ObjectRef)`\n\nInstantiates `Type` through its public no-argument constructor and unifies `ObjectRef` with a reference to the new object; shorthand for `new_object(Type, [], ObjectRef)`. `Type` may be an atom holding a fully qualified type name, a type reference, or a `$Alias` reference to a type. Errors are those of `new_object/3`.\n\n**Examples**\n\n```prolog\n?- new_object('java.util.ArrayList', L), N := L.size.\nN = 0.\n\n?- new_object($hashmap, M), M.put(k, v), V := M.get(k).\nV = v.\n\n?- new_object('java.lang.Integer', I).\nthrows error(existence_error(_, _), _).\n```";
|
|
3278
|
+
this.j57_1 = this.y21_1;
|
|
3279
|
+
this.k57_1 = this.y21_1;
|
|
3280
3280
|
}
|
|
3281
|
-
protoOf(NewObject2).
|
|
3282
|
-
return this.
|
|
3281
|
+
protoOf(NewObject2).i1x = function () {
|
|
3282
|
+
return this.i57_1;
|
|
3283
3283
|
};
|
|
3284
|
-
protoOf(NewObject2).
|
|
3284
|
+
protoOf(NewObject2).g2o = function (_this__u8e3s4) {
|
|
3285
3285
|
return listOf([_get_Type__cwwv8x(this), _get_Instance__cwfjuy(this)]);
|
|
3286
3286
|
};
|
|
3287
|
-
protoOf(NewObject2).
|
|
3287
|
+
protoOf(NewObject2).h2o = function (_this__u8e3s4) {
|
|
3288
3288
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3289
3289
|
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3290
|
-
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.
|
|
3290
|
+
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.m12(), _get_Instance__cwfjuy(this)]);
|
|
3291
3291
|
};
|
|
3292
3292
|
var NewObject2_instance;
|
|
3293
3293
|
function NewObject2_getInstance() {
|
|
@@ -3297,19 +3297,19 @@
|
|
|
3297
3297
|
}
|
|
3298
3298
|
function _get_B1__ndb8zg($this) {
|
|
3299
3299
|
var tmp = KProperty1;
|
|
3300
|
-
return $this.
|
|
3300
|
+
return $this.r57_1.getValue($this, getPropertyCallableRef('B1', 1, tmp, PropertyReduce$Recursive$_get_B1_$ref_kiryiu(), null));
|
|
3301
3301
|
}
|
|
3302
3302
|
function _get_C__7mlnqm_0($this) {
|
|
3303
3303
|
var tmp = KProperty1;
|
|
3304
|
-
return $this.
|
|
3304
|
+
return $this.s57_1.getValue($this, getPropertyCallableRef('C', 1, tmp, PropertyReduce$Recursive$_get_C_$ref_epsz1a(), null));
|
|
3305
3305
|
}
|
|
3306
3306
|
function _get_O__7mlo0y($this) {
|
|
3307
3307
|
var tmp = KProperty1;
|
|
3308
|
-
return $this.
|
|
3308
|
+
return $this.t57_1.getValue($this, getPropertyCallableRef('O', 1, tmp, PropertyReduce$Recursive$_get_O_$ref_919iay(), null));
|
|
3309
3309
|
}
|
|
3310
3310
|
function _get_P__7mlo1t_2($this) {
|
|
3311
3311
|
var tmp = KProperty1;
|
|
3312
|
-
return $this.
|
|
3312
|
+
return $this.u57_1.getValue($this, getPropertyCallableRef('P', 1, tmp, PropertyReduce$Recursive$_get_P_$ref_8k7vwr(), null));
|
|
3313
3313
|
}
|
|
3314
3314
|
function PropertyReduce$Recursive$_get_B1_$ref_kiryiu() {
|
|
3315
3315
|
return constructCallableReference(function (p0) {
|
|
@@ -3332,8 +3332,8 @@
|
|
|
3332
3332
|
}, 1, 0, 156);
|
|
3333
3333
|
}
|
|
3334
3334
|
function Companion_9() {
|
|
3335
|
-
this.
|
|
3336
|
-
this.
|
|
3335
|
+
this.v57_1 = 'property_reduce';
|
|
3336
|
+
this.w57_1 = 3;
|
|
3337
3337
|
}
|
|
3338
3338
|
var Companion_instance_17;
|
|
3339
3339
|
function Companion_getInstance_20() {
|
|
@@ -3342,19 +3342,19 @@
|
|
|
3342
3342
|
function Recursive_0() {
|
|
3343
3343
|
Recursive_instance_0 = this;
|
|
3344
3344
|
PropertyReduce.call(this);
|
|
3345
|
-
this.
|
|
3346
|
-
this.
|
|
3347
|
-
this.
|
|
3348
|
-
this.
|
|
3345
|
+
this.r57_1 = this.y21_1;
|
|
3346
|
+
this.s57_1 = this.y21_1;
|
|
3347
|
+
this.t57_1 = this.y21_1;
|
|
3348
|
+
this.u57_1 = this.y21_1;
|
|
3349
3349
|
}
|
|
3350
|
-
protoOf(Recursive_0).
|
|
3351
|
-
return listOf([_this__u8e3s4.
|
|
3350
|
+
protoOf(Recursive_0).g2o = function (_this__u8e3s4) {
|
|
3351
|
+
return listOf([_this__u8e3s4.o12([this.d58(), this.e58()], _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)]);
|
|
3352
3352
|
};
|
|
3353
|
-
protoOf(Recursive_0).
|
|
3353
|
+
protoOf(Recursive_0).h2o = function (_this__u8e3s4) {
|
|
3354
3354
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3355
3355
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3356
3356
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3357
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.
|
|
3357
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.d58(), this.e58(), _get_B1__ndb8zg(this)]), _this__u8e3s4.structOf('property_reduce', [_this__u8e3s4.consOf(_get_B1__ndb8zg(this), _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)])]);
|
|
3358
3358
|
};
|
|
3359
3359
|
var Recursive_instance_0;
|
|
3360
3360
|
function Recursive_getInstance_0() {
|
|
@@ -3366,8 +3366,8 @@
|
|
|
3366
3366
|
Base_instance = this;
|
|
3367
3367
|
PropertyReduce.call(this);
|
|
3368
3368
|
}
|
|
3369
|
-
protoOf(Base).
|
|
3370
|
-
return listOf([_this__u8e3s4.consOf(this.
|
|
3369
|
+
protoOf(Base).g2o = function (_this__u8e3s4) {
|
|
3370
|
+
return listOf([_this__u8e3s4.consOf(this.d58(), this.e58()), this.d58(), this.e58()]);
|
|
3371
3371
|
};
|
|
3372
3372
|
var Base_instance;
|
|
3373
3373
|
function Base_getInstance() {
|
|
@@ -3377,32 +3377,32 @@
|
|
|
3377
3377
|
}
|
|
3378
3378
|
function PropertyReduce$_get_A_$ref_14cvqu() {
|
|
3379
3379
|
return constructCallableReference(function (p0) {
|
|
3380
|
-
return p0.
|
|
3380
|
+
return p0.d58();
|
|
3381
3381
|
}, 1, 0, 157);
|
|
3382
3382
|
}
|
|
3383
3383
|
function PropertyReduce$_get_B_$ref_1lei51() {
|
|
3384
3384
|
return constructCallableReference(function (p0) {
|
|
3385
|
-
return p0.
|
|
3385
|
+
return p0.e58();
|
|
3386
3386
|
}, 1, 0, 158);
|
|
3387
3387
|
}
|
|
3388
3388
|
function PropertyReduce() {
|
|
3389
3389
|
RuleWrapper_init_$Init$('property_reduce', 3, VOID, this);
|
|
3390
|
-
this.
|
|
3391
|
-
this.
|
|
3392
|
-
this.
|
|
3390
|
+
this.a58_1 = "`property_reduce(+Expression, ?Ref, ?Property)`\n\nHelper behind the assignment form of `:=/2`: given a chain of member accesses `Receiver.M1....Mn.Property`, evaluates every access but the last one (as `fluent_reduce/2` does, via `invoke_method/3`), unifying `Ref` with the reference reached that way and `Property` with the final access. Deterministic (each clause cuts); fails if `Expression` is not a chain.\n\n**Examples**\n\n```prolog\n?- new_object('java.lang.StringBuilder', [abc], B), property_reduce(B.reverse.length, R, P), S := R.toString.\nP = length, S = cba.\n\n?- property_reduce(foo, R, P).\nno.\n```";
|
|
3391
|
+
this.b58_1 = this.y21_1;
|
|
3392
|
+
this.c58_1 = this.y21_1;
|
|
3393
3393
|
}
|
|
3394
|
-
protoOf(PropertyReduce).
|
|
3395
|
-
return this.
|
|
3394
|
+
protoOf(PropertyReduce).i1x = function () {
|
|
3395
|
+
return this.a58_1;
|
|
3396
3396
|
};
|
|
3397
|
-
protoOf(PropertyReduce).
|
|
3397
|
+
protoOf(PropertyReduce).d58 = function () {
|
|
3398
3398
|
var tmp = KProperty1;
|
|
3399
|
-
return this.
|
|
3399
|
+
return this.b58_1.getValue(this, getPropertyCallableRef('A', 1, tmp, PropertyReduce$_get_A_$ref_14cvqu(), null));
|
|
3400
3400
|
};
|
|
3401
|
-
protoOf(PropertyReduce).
|
|
3401
|
+
protoOf(PropertyReduce).e58 = function () {
|
|
3402
3402
|
var tmp = KProperty1;
|
|
3403
|
-
return this.
|
|
3403
|
+
return this.c58_1.getValue(this, getPropertyCallableRef('B', 1, tmp, PropertyReduce$_get_B_$ref_1lei51(), null));
|
|
3404
3404
|
};
|
|
3405
|
-
protoOf(PropertyReduce).
|
|
3405
|
+
protoOf(PropertyReduce).h2o = function (_this__u8e3s4) {
|
|
3406
3406
|
return _this__u8e3s4.atomOf('!');
|
|
3407
3407
|
};
|
|
3408
3408
|
function get_platformSpecificAliases() {
|
|
@@ -3437,32 +3437,32 @@
|
|
|
3437
3437
|
}
|
|
3438
3438
|
function get_companionObjectRef(_this__u8e3s4) {
|
|
3439
3439
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3440
|
-
return Companion_instance.
|
|
3440
|
+
return Companion_instance.mr();
|
|
3441
3441
|
}
|
|
3442
3442
|
function kClassFromName(qualifiedName) {
|
|
3443
3443
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3444
|
-
var match = get_CLASS_NAME_PATTERN().
|
|
3444
|
+
var match = get_CLASS_NAME_PATTERN().sb(qualifiedName);
|
|
3445
3445
|
// Inline function 'kotlin.require' call
|
|
3446
3446
|
if (!!(match == null)) {
|
|
3447
|
-
var message = '`' + qualifiedName + '` should match ' + get_CLASS_NAME_PATTERN().
|
|
3447
|
+
var message = '`' + qualifiedName + '` should match ' + get_CLASS_NAME_PATTERN().cb_1 + ", while is doesn't";
|
|
3448
3448
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
3449
3449
|
}
|
|
3450
|
-
var module_0 = ensureNotNull(match.
|
|
3451
|
-
var packageSteps = split(ensureNotNull(match.
|
|
3450
|
+
var module_0 = ensureNotNull(match.yb().x(1)).xb_1;
|
|
3451
|
+
var packageSteps = split(ensureNotNull(match.yb().x(2)).xb_1, charArrayOf([_Char___init__impl__6a9atx(46)]));
|
|
3452
3452
|
var kClass = require(module_0);
|
|
3453
3453
|
// Inline function 'kotlin.let' call
|
|
3454
|
-
var it = packageSteps.
|
|
3455
|
-
while (it.
|
|
3456
|
-
kClass = kClass[it.
|
|
3454
|
+
var it = packageSteps.n();
|
|
3455
|
+
while (it.q() && kClass != null && kClass != undefined) {
|
|
3456
|
+
kClass = kClass[it.r()];
|
|
3457
3457
|
}
|
|
3458
3458
|
var tmp;
|
|
3459
3459
|
if (kClass != null && kClass != undefined) {
|
|
3460
3460
|
var tmp_0 = Companion_instance;
|
|
3461
3461
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3462
3462
|
var tmp$ret$4 = kClass;
|
|
3463
|
-
tmp = tmp_0.
|
|
3463
|
+
tmp = tmp_0.yt(get_kotlin(tmp$ret$4));
|
|
3464
3464
|
} else {
|
|
3465
|
-
tmp = Companion_instance.
|
|
3465
|
+
tmp = Companion_instance.mr();
|
|
3466
3466
|
}
|
|
3467
3467
|
return tmp;
|
|
3468
3468
|
}
|
|
@@ -3501,12 +3501,12 @@
|
|
|
3501
3501
|
}
|
|
3502
3502
|
}
|
|
3503
3503
|
//region block: post-declaration
|
|
3504
|
-
protoOf(NullRefImpl).
|
|
3505
|
-
protoOf(NullRefImpl).
|
|
3506
|
-
protoOf(NullRefImpl).
|
|
3507
|
-
protoOf(TermToObjectConverterImpl).
|
|
3508
|
-
protoOf(TypeFactoryImpl).
|
|
3509
|
-
protoOf(TypeRefImpl).
|
|
3504
|
+
protoOf(NullRefImpl).b51 = get_object;
|
|
3505
|
+
protoOf(NullRefImpl).c51 = invoke;
|
|
3506
|
+
protoOf(NullRefImpl).d51 = assign;
|
|
3507
|
+
protoOf(TermToObjectConverterImpl).z51 = convert;
|
|
3508
|
+
protoOf(TypeFactoryImpl).c52 = typeRefFromName;
|
|
3509
|
+
protoOf(TypeRefImpl).d52 = create;
|
|
3510
3510
|
//endregion
|
|
3511
3511
|
//region block: init
|
|
3512
3512
|
Companion_instance_9 = new Companion_1();
|