@tuprolog/2p-full 3.0.5 → 3.0.7
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 +159 -159
- package/2p-core.js +2210 -2140
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +765 -766
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +890 -892
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +105 -115
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1421 -1418
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +56 -56
- package/2p-repl.js +149 -142
- package/2p-repl.js.map +1 -1
- package/2p-solve-plp.js +2 -2
- package/2p-solve-problog.js +1024 -964
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-prolog.js +821 -831
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +3931 -3596
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +199 -199
- package/2p-unify.js +75 -75
- package/2p-utils.js +352 -330
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +90 -90
- package/clikt-clikt.js +1524 -1481
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +472 -472
- package/kotlin-kotlin-stdlib.js +1384 -1372
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +1485 -1484
- package/kt-math.js.map +1 -1
- package/mordant-mordant.js +1442 -1442
- package/okio-parent-okio-nodefilesystem.js +46 -46
- package/okio-parent-okio.js +647 -647
- package/package.json +1 -1
- package/2p-test-dsl.js +0 -15
- package/2p-test-dsl.js.map +0 -1
- package/kotlin-kotlin-test.js +0 -15
- package/kotlin-kotlin-test.js.map +0 -1
package/2p-oop-lib.js
CHANGED
|
@@ -28,28 +28,28 @@
|
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
30
|
var NullPointerException_init_$Create$ = kotlin_kotlin.$_$.t1;
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.u8;
|
|
32
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.g8;
|
|
33
33
|
var VOID = kotlin_kotlin.$_$.b;
|
|
34
34
|
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.o;
|
|
35
35
|
var KtList = kotlin_kotlin.$_$.e2;
|
|
36
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
36
|
+
var getKClass = kotlin_kotlin.$_$.s9;
|
|
37
37
|
var ArrayList = kotlin_kotlin.$_$.a2;
|
|
38
38
|
var KtMap = kotlin_kotlin.$_$.f2;
|
|
39
39
|
var LinkedHashMap = kotlin_kotlin.$_$.c2;
|
|
40
|
-
var Char = kotlin_kotlin.$_$.
|
|
41
|
-
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.
|
|
42
|
-
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.
|
|
40
|
+
var Char = kotlin_kotlin.$_$.td;
|
|
41
|
+
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.h;
|
|
42
|
+
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
43
43
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
44
|
-
var listOf = kotlin_kotlin.$_$.
|
|
44
|
+
var listOf = kotlin_kotlin.$_$.i4;
|
|
45
45
|
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.l4;
|
|
46
|
-
var to = kotlin_kotlin.$_$.
|
|
47
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
46
|
+
var to = kotlin_kotlin.$_$.ye;
|
|
47
|
+
var mapOf = kotlin_kotlin.$_$.l4;
|
|
48
48
|
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.w2;
|
|
49
49
|
var collectionSizeOrDefault = kotlin_kotlin.$_$.w2;
|
|
50
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
50
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.u;
|
|
51
51
|
var Unit_instance = kotlin_kotlin.$_$.r;
|
|
52
|
-
var toMap = kotlin_kotlin.$_$.
|
|
52
|
+
var toMap = kotlin_kotlin.$_$.a6;
|
|
53
53
|
var Specifier_XFY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.c;
|
|
54
54
|
var Operator = kotlin_it_unibo_tuprolog_core.$_$.n1;
|
|
55
55
|
var Specifier_XFX_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b;
|
|
@@ -58,69 +58,69 @@
|
|
|
58
58
|
var asSequence = kotlin_kotlin.$_$.r2;
|
|
59
59
|
var documentationOf = kotlin_it_unibo_tuprolog_solve.$_$.y2;
|
|
60
60
|
var mergeDocumentation = kotlin_it_unibo_tuprolog_solve.$_$.z2;
|
|
61
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
62
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
63
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
61
|
+
var initMetadataForObject = kotlin_kotlin.$_$.i8;
|
|
62
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.r9;
|
|
63
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.e8;
|
|
64
64
|
var Atom = kotlin_it_unibo_tuprolog_core.$_$.o1;
|
|
65
|
-
var KProperty1 = kotlin_kotlin.$_$.
|
|
66
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.
|
|
67
|
-
var constructCallableReference = kotlin_kotlin.$_$.
|
|
68
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
69
|
-
var lazy = kotlin_kotlin.$_$.
|
|
70
|
-
var toString = kotlin_kotlin.$_$.
|
|
71
|
-
var hashCode = kotlin_kotlin.$_$.
|
|
72
|
-
var equals = kotlin_kotlin.$_$.
|
|
73
|
-
var initMetadataForClass = kotlin_kotlin.$_$.
|
|
65
|
+
var KProperty1 = kotlin_kotlin.$_$.v9;
|
|
66
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.a8;
|
|
67
|
+
var constructCallableReference = kotlin_kotlin.$_$.t7;
|
|
68
|
+
var isInterface = kotlin_kotlin.$_$.m8;
|
|
69
|
+
var lazy = kotlin_kotlin.$_$.re;
|
|
70
|
+
var toString = kotlin_kotlin.$_$.xe;
|
|
71
|
+
var hashCode = kotlin_kotlin.$_$.c8;
|
|
72
|
+
var equals = kotlin_kotlin.$_$.v7;
|
|
73
|
+
var initMetadataForClass = kotlin_kotlin.$_$.d8;
|
|
74
74
|
var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.e;
|
|
75
75
|
var contains = kotlin_kotlin.$_$.x2;
|
|
76
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
76
|
+
var listOf_0 = kotlin_kotlin.$_$.h4;
|
|
77
77
|
var checkIndexOverflow = kotlin_kotlin.$_$.v2;
|
|
78
78
|
var copyToArray = kotlin_kotlin.$_$.g3;
|
|
79
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
80
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
79
|
+
var toString_0 = kotlin_kotlin.$_$.x8;
|
|
80
|
+
var trimMargin = kotlin_kotlin.$_$.pd;
|
|
81
81
|
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.j1;
|
|
82
|
-
var setOf = kotlin_kotlin.$_$.
|
|
82
|
+
var setOf = kotlin_kotlin.$_$.h5;
|
|
83
83
|
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
84
|
-
var format = kotlin_it_unibo_tuprolog_core.$_$.
|
|
85
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
84
|
+
var format = kotlin_it_unibo_tuprolog_core.$_$.b3;
|
|
85
|
+
var captureStack = kotlin_kotlin.$_$.l7;
|
|
86
86
|
var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.e1;
|
|
87
87
|
var Expected_DEALIASING_EXPRESSION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m;
|
|
88
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
89
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
88
|
+
var charSequenceLength = kotlin_kotlin.$_$.q7;
|
|
89
|
+
var charCodeAt = kotlin_kotlin.$_$.o7;
|
|
90
90
|
var toString_1 = kotlin_kotlin.$_$.h;
|
|
91
|
-
var substring = kotlin_kotlin.$_$.
|
|
91
|
+
var substring = kotlin_kotlin.$_$.dd;
|
|
92
92
|
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.a;
|
|
93
93
|
var Struct = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
94
94
|
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
95
95
|
var ObjectType_OOP_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
96
96
|
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.i1;
|
|
97
97
|
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.l1;
|
|
98
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
98
|
+
var objectCreate = kotlin_kotlin.$_$.t8;
|
|
99
99
|
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.b1;
|
|
100
100
|
var Limit_OOP_OBJECT_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.k;
|
|
101
101
|
var Companion_getInstance_0 = kotlin_it_unibo_tuprolog_core.$_$.m;
|
|
102
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
102
|
+
var THROW_CCE = kotlin_kotlin.$_$.he;
|
|
103
103
|
var Term = kotlin_it_unibo_tuprolog_core.$_$.y2;
|
|
104
104
|
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.l;
|
|
105
105
|
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
106
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
107
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
106
|
+
var charArrayOf = kotlin_kotlin.$_$.m7;
|
|
107
|
+
var concatToString = kotlin_kotlin.$_$.ub;
|
|
108
108
|
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.u;
|
|
109
109
|
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.r;
|
|
110
|
-
var isNumber = kotlin_kotlin.$_$.
|
|
111
|
-
var Exception = kotlin_kotlin.$_$.
|
|
112
|
-
var Var = kotlin_it_unibo_tuprolog_core.$_$.
|
|
113
|
-
var sequenceOf = kotlin_kotlin.$_$.
|
|
114
|
-
var plus = kotlin_kotlin.$_$.
|
|
115
|
-
var Companion_getInstance_4 = kotlin_io_github_gciatto_kt_math.$_$.
|
|
116
|
-
var Companion_getInstance_5 = kotlin_io_github_gciatto_kt_math.$_$.
|
|
117
|
-
var compareTo = kotlin_kotlin.$_$.
|
|
110
|
+
var isNumber = kotlin_kotlin.$_$.n8;
|
|
111
|
+
var Exception = kotlin_kotlin.$_$.yd;
|
|
112
|
+
var Var = kotlin_it_unibo_tuprolog_core.$_$.a3;
|
|
113
|
+
var sequenceOf = kotlin_kotlin.$_$.db;
|
|
114
|
+
var plus = kotlin_kotlin.$_$.bb;
|
|
115
|
+
var Companion_getInstance_4 = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
116
|
+
var Companion_getInstance_5 = kotlin_io_github_gciatto_kt_math.$_$.e;
|
|
117
|
+
var compareTo = kotlin_kotlin.$_$.s7;
|
|
118
118
|
var Integer = kotlin_it_unibo_tuprolog_core.$_$.u1;
|
|
119
|
-
var sequenceOf_0 = kotlin_kotlin.$_$.
|
|
119
|
+
var sequenceOf_0 = kotlin_kotlin.$_$.cb;
|
|
120
120
|
var Real = kotlin_it_unibo_tuprolog_core.$_$.x1;
|
|
121
121
|
var Truth = kotlin_it_unibo_tuprolog_core.$_$.z2;
|
|
122
|
-
var first = kotlin_kotlin.$_$.
|
|
123
|
-
var toSet = kotlin_kotlin.$_$.
|
|
122
|
+
var first = kotlin_kotlin.$_$.ka;
|
|
123
|
+
var toSet = kotlin_kotlin.$_$.mb;
|
|
124
124
|
var Some = kotlin_it_unibo_tuprolog_utils.$_$.m;
|
|
125
125
|
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
126
126
|
var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_solve.$_$.n1;
|
|
@@ -129,24 +129,24 @@
|
|
|
129
129
|
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.t2;
|
|
130
130
|
var Functional_0 = kotlin_it_unibo_tuprolog_solve.$_$.a3;
|
|
131
131
|
var Expected_OBJECT_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
132
|
-
var map = kotlin_kotlin.$_$.
|
|
132
|
+
var map = kotlin_kotlin.$_$.wa;
|
|
133
133
|
var Companion_instance_5 = kotlin_it_unibo_tuprolog_core.$_$.s;
|
|
134
134
|
var List = kotlin_it_unibo_tuprolog_core.$_$.v1;
|
|
135
|
-
var toList = kotlin_kotlin.$_$.
|
|
136
|
-
var isArray = kotlin_kotlin.$_$.
|
|
135
|
+
var toList = kotlin_kotlin.$_$.kb;
|
|
136
|
+
var isArray = kotlin_kotlin.$_$.j8;
|
|
137
137
|
var asSequence_0 = kotlin_kotlin.$_$.s2;
|
|
138
138
|
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.k3;
|
|
139
139
|
var TernaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.m3;
|
|
140
|
-
var flatMap = kotlin_kotlin.$_$.
|
|
141
|
-
var distinct = kotlin_kotlin.$_$.
|
|
140
|
+
var flatMap = kotlin_kotlin.$_$.la;
|
|
141
|
+
var distinct = kotlin_kotlin.$_$.da;
|
|
142
142
|
var TypeTester = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
143
143
|
var Expected_TYPE_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
144
144
|
var Expected_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.p;
|
|
145
145
|
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.c1;
|
|
146
146
|
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_core.$_$.x;
|
|
147
|
-
var filter = kotlin_kotlin.$_$.
|
|
148
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
149
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
147
|
+
var filter = kotlin_kotlin.$_$.ia;
|
|
148
|
+
var Sequence = kotlin_kotlin.$_$.x9;
|
|
149
|
+
var firstOrNull = kotlin_kotlin.$_$.ja;
|
|
150
150
|
var Yes = kotlin_it_unibo_tuprolog_solve.$_$.o4;
|
|
151
151
|
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.b3;
|
|
152
152
|
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.z;
|
|
@@ -155,13 +155,13 @@
|
|
|
155
155
|
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.r3;
|
|
156
156
|
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.k2;
|
|
157
157
|
var Var_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.q1;
|
|
158
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
159
|
-
var toString_2 = kotlin_kotlin.$_$.
|
|
160
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
158
|
+
var getStringHashCode = kotlin_kotlin.$_$.b8;
|
|
159
|
+
var toString_2 = kotlin_kotlin.$_$.md;
|
|
160
|
+
var ensureNotNull = kotlin_kotlin.$_$.ne;
|
|
161
161
|
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.c;
|
|
162
|
-
var split = kotlin_kotlin.$_$.
|
|
163
|
-
var get_kotlin = kotlin_kotlin.$_$.
|
|
164
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
162
|
+
var split = kotlin_kotlin.$_$.wc;
|
|
163
|
+
var get_kotlin = kotlin_kotlin.$_$.o8;
|
|
164
|
+
var NotImplementedError = kotlin_kotlin.$_$.ce;
|
|
165
165
|
var Regex_init_$Create$ = kotlin_kotlin.$_$.z;
|
|
166
166
|
//endregion
|
|
167
167
|
//region block: pre-declaration
|
|
@@ -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.h52(this.j52(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.lr(this.m52(typeName));
|
|
194
|
+
return tmp.zt(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.p52(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.q51('string', PrimitiveClasses_getInstance().ia()), Companion_instance_15.q51('array', PrimitiveClasses_getInstance().ha()), Companion_instance_15.q51('list', getKClass(KtList)), Companion_instance_15.q51('arraylist', getKClass(ArrayList)), Companion_instance_15.q51('map', getKClass(KtMap)), Companion_instance_15.q51('hashmap', getKClass(LinkedHashMap)), Companion_instance_15.q51('int', PrimitiveClasses_getInstance().da()), Companion_instance_15.q51('integer', PrimitiveClasses_getInstance().da()), Companion_instance_15.q51('double', PrimitiveClasses_getInstance().ga()), Companion_instance_15.q51('float', PrimitiveClasses_getInstance().fa()), Companion_instance_15.q51('long', PrimitiveClasses_getInstance().ea()), Companion_instance_15.q51('short', PrimitiveClasses_getInstance().ca()), Companion_instance_15.q51('byte', PrimitiveClasses_getInstance().ba()), Companion_instance_15.q51('char', getKClass(Char)), Companion_instance_15.q51('bool', PrimitiveClasses_getInstance().aa()), Companion_instance_15.q51('boolean', PrimitiveClasses_getInstance().aa()), Companion_instance_15.q51('any', PrimitiveClasses_getInstance().x9()), Companion_instance_15.q51('nothing', PrimitiveClasses_getInstance().z9()), Companion_instance_15.q51('big_integer', getKClass(BigInteger)), Companion_instance_15.q51('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,15 +257,15 @@
|
|
|
257
257
|
function OOPLib() {
|
|
258
258
|
OOPLib_instance = this;
|
|
259
259
|
AbstractLibrary.call(this);
|
|
260
|
-
this.
|
|
260
|
+
this.s51_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).e2j = function () {
|
|
263
263
|
return 'prolog.oop';
|
|
264
264
|
};
|
|
265
265
|
protoOf(OOPLib).i1x = function () {
|
|
266
|
-
return this.
|
|
266
|
+
return this.s51_1;
|
|
267
267
|
};
|
|
268
|
-
protoOf(OOPLib).
|
|
268
|
+
protoOf(OOPLib).z2i = 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
|
|
@@ -295,8 +295,8 @@
|
|
|
295
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).f2j = function () {
|
|
299
|
+
return mergeDocumentation([protoOf(AbstractLibrary).f2j.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.t51_1 = NullRefImpl_getInstance();
|
|
313
313
|
}
|
|
314
|
-
protoOf(Companion).
|
|
314
|
+
protoOf(Companion).u51 = function (any) {
|
|
315
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).v51 = function (any) {
|
|
318
|
+
return any == null ? this.t51_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.w51_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).x51 = function (type, termToObjectConverter) {
|
|
341
341
|
return overloadSelector(type, termToObjectConverter);
|
|
342
342
|
};
|
|
343
343
|
var Companion_instance_9;
|
|
@@ -347,14 +347,14 @@
|
|
|
347
347
|
function Ref() {
|
|
348
348
|
}
|
|
349
349
|
function _get_termValue__ikgccs($this) {
|
|
350
|
-
var tmp0 = $this.
|
|
350
|
+
var tmp0 = $this.z51_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
354
|
return tmp0.f1();
|
|
355
355
|
}
|
|
356
356
|
function _get_objectRef__3zhern($this) {
|
|
357
|
-
var tmp0 = $this.
|
|
357
|
+
var tmp0 = $this.a52_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);
|
|
@@ -362,13 +362,13 @@
|
|
|
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().w51_1.b52(this$0.y51_1);
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
function Result$Value$_get_termValue_$ref_u3cirl() {
|
|
369
369
|
return constructCallableReference(function (p0) {
|
|
370
370
|
return _get_termValue__ikgccs(p0);
|
|
371
|
-
}, 1, 0,
|
|
371
|
+
}, 1, 0, 131);
|
|
372
372
|
}
|
|
373
373
|
function Result$Value$objectRef$delegate$lambda(this$0) {
|
|
374
374
|
return function () {
|
|
@@ -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().v51(this$0.y51_1);
|
|
382
382
|
}
|
|
383
383
|
return tmp;
|
|
384
384
|
};
|
|
@@ -386,15 +386,15 @@
|
|
|
386
386
|
function Result$Value$_get_objectRef_$ref_8a6ozy() {
|
|
387
387
|
return constructCallableReference(function (p0) {
|
|
388
388
|
return _get_objectRef__3zhern(p0);
|
|
389
|
-
}, 1, 0,
|
|
389
|
+
}, 1, 0, 132);
|
|
390
390
|
}
|
|
391
391
|
function Value(value) {
|
|
392
392
|
Result.call(this);
|
|
393
|
-
this.
|
|
393
|
+
this.y51_1 = value;
|
|
394
394
|
var tmp = this;
|
|
395
|
-
tmp.
|
|
395
|
+
tmp.z51_1 = lazy(Result$Value$termValue$delegate$lambda(this));
|
|
396
396
|
var tmp_0 = this;
|
|
397
|
-
tmp_0.
|
|
397
|
+
tmp_0.a52_1 = lazy(Result$Value$objectRef$delegate$lambda(this));
|
|
398
398
|
}
|
|
399
399
|
protoOf(Value).t1j = function () {
|
|
400
400
|
return _get_termValue__ikgccs(this);
|
|
@@ -402,21 +402,21 @@
|
|
|
402
402
|
protoOf(Value).toTerm = function () {
|
|
403
403
|
return this.t1j();
|
|
404
404
|
};
|
|
405
|
-
protoOf(Value).
|
|
405
|
+
protoOf(Value).c52 = 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.y51_1) + ')';
|
|
410
410
|
};
|
|
411
411
|
protoOf(Value).hashCode = function () {
|
|
412
|
-
return this.
|
|
412
|
+
return this.y51_1 == null ? 0 : hashCode(this.y51_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.y51_1, other.y51_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.d52_1 = this.e52();
|
|
431
431
|
}
|
|
432
|
-
protoOf(Companion_2).
|
|
432
|
+
protoOf(Companion_2).f52 = 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).e52 = function (typeFactory, dealiaser, $super) {
|
|
436
|
+
typeFactory = typeFactory === VOID ? Companion_getInstance_14().g52_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.f52(typeFactory, dealiaser) : $super.f52.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.g52_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.l52(it);
|
|
466
466
|
}
|
|
467
467
|
function TypeFactory() {
|
|
468
468
|
}
|
|
469
469
|
function Companion_4() {
|
|
470
470
|
}
|
|
471
|
-
protoOf(Companion_4).
|
|
471
|
+
protoOf(Companion_4).l52 = 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.x51(_this__u8e3s4, objectConverter).q52(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.x51(_this__u8e3s4, objectConverter).r52(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.x51(_this__u8e3s4, objectConverter).s52(propertyName, value));
|
|
514
514
|
return callWithPrologArguments(setterRef, objectConverter, listOf_0(value), instance);
|
|
515
515
|
}
|
|
516
516
|
function isSubtypeOf_0(_this__u8e3s4, other, strict) {
|
|
@@ -531,7 +531,7 @@
|
|
|
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.
|
|
534
|
+
var tmp$ret$2 = converter.h52(formalArgumentsTypes.t(i), item);
|
|
535
535
|
destination.l(tmp$ret$2);
|
|
536
536
|
}
|
|
537
537
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -593,12 +593,12 @@
|
|
|
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.t52_1 = dealiasingExpression;
|
|
597
597
|
}
|
|
598
|
-
protoOf(MalformedAliasException).
|
|
598
|
+
protoOf(MalformedAliasException).u52 = 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.t28();
|
|
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).t28 = function () {
|
|
626
|
+
return this.t52_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.v52_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.v52_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.v52_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).u52 = 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.t28();
|
|
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).t28 = function () {
|
|
654
|
+
return this.v52_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.w52_1 = term;
|
|
694
|
+
this.x52_1 = targetType;
|
|
695
695
|
}
|
|
696
|
-
protoOf(TermToObjectConversionException).
|
|
697
|
-
return Companion_instance_3.
|
|
696
|
+
protoOf(TermToObjectConversionException).u52 = function (context, signature) {
|
|
697
|
+
return Companion_instance_3.p2a(context, signature, Limit_OOP_OBJECT_getInstance(), this);
|
|
698
698
|
};
|
|
699
699
|
function NullRefImpl() {
|
|
700
700
|
NullRefImpl_instance = this;
|
|
701
|
-
this.
|
|
701
|
+
this.y52_1 = Companion_getInstance_0().of(Companion_getInstance_10().u51(null));
|
|
702
702
|
}
|
|
703
|
-
protoOf(NullRefImpl).
|
|
703
|
+
protoOf(NullRefImpl).wx = function () {
|
|
704
704
|
return true;
|
|
705
705
|
};
|
|
706
|
-
protoOf(NullRefImpl).
|
|
706
|
+
protoOf(NullRefImpl).ay = function () {
|
|
707
707
|
return this;
|
|
708
708
|
};
|
|
709
709
|
protoOf(NullRefImpl).asConstant = function () {
|
|
710
|
-
return this.
|
|
710
|
+
return this.ay();
|
|
711
711
|
};
|
|
712
|
-
protoOf(NullRefImpl).
|
|
712
|
+
protoOf(NullRefImpl).ax = function () {
|
|
713
713
|
return this;
|
|
714
714
|
};
|
|
715
715
|
protoOf(NullRefImpl).freshCopy = function () {
|
|
716
|
-
return this.
|
|
716
|
+
return this.ax();
|
|
717
717
|
};
|
|
718
|
-
protoOf(NullRefImpl).
|
|
718
|
+
protoOf(NullRefImpl).bx = function (scope) {
|
|
719
719
|
return this;
|
|
720
720
|
};
|
|
721
721
|
protoOf(NullRefImpl).freshCopyFromScope = function (scope) {
|
|
722
|
-
return this.
|
|
722
|
+
return this.bx(scope);
|
|
723
723
|
};
|
|
724
|
-
protoOf(NullRefImpl).
|
|
724
|
+
protoOf(NullRefImpl).rx = function () {
|
|
725
725
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
726
726
|
};
|
|
727
|
-
protoOf(NullRefImpl).
|
|
728
|
-
return this.
|
|
727
|
+
protoOf(NullRefImpl).mr = function () {
|
|
728
|
+
return this.rx();
|
|
729
729
|
};
|
|
730
|
-
protoOf(NullRefImpl).
|
|
730
|
+
protoOf(NullRefImpl).q17 = function (substitution) {
|
|
731
731
|
return this;
|
|
732
732
|
};
|
|
733
733
|
protoOf(NullRefImpl).applySubstitution = function (substitution) {
|
|
734
|
-
return this.
|
|
734
|
+
return this.q17(substitution);
|
|
735
735
|
};
|
|
736
|
-
protoOf(NullRefImpl).
|
|
736
|
+
protoOf(NullRefImpl).q2u = function (substitution, substitutions) {
|
|
737
737
|
return this;
|
|
738
738
|
};
|
|
739
739
|
protoOf(NullRefImpl).apply = function (substitution, substitutions) {
|
|
740
|
-
return this.
|
|
740
|
+
return this.q2u(substitution, substitutions);
|
|
741
741
|
};
|
|
742
|
-
protoOf(NullRefImpl).
|
|
742
|
+
protoOf(NullRefImpl).p2u = function (substitution, substitutions) {
|
|
743
743
|
return this;
|
|
744
744
|
};
|
|
745
745
|
protoOf(NullRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
746
|
-
return this.
|
|
746
|
+
return this.p2u(substitution, substitutions);
|
|
747
747
|
};
|
|
748
|
-
protoOf(NullRefImpl).
|
|
748
|
+
protoOf(NullRefImpl).w16 = function (visitor) {
|
|
749
749
|
return visitor.visitAtom(this);
|
|
750
750
|
};
|
|
751
751
|
protoOf(NullRefImpl).accept = function (visitor) {
|
|
752
|
-
return this.
|
|
752
|
+
return this.w16(visitor);
|
|
753
753
|
};
|
|
754
|
-
protoOf(NullRefImpl).
|
|
755
|
-
return this.
|
|
754
|
+
protoOf(NullRefImpl).cx = function () {
|
|
755
|
+
return this.y52_1.cx();
|
|
756
756
|
};
|
|
757
757
|
protoOf(NullRefImpl).asAtom = function () {
|
|
758
|
-
return this.
|
|
758
|
+
return this.cx();
|
|
759
|
+
};
|
|
760
|
+
protoOf(NullRefImpl).rw = function () {
|
|
761
|
+
return this.y52_1.rw();
|
|
759
762
|
};
|
|
760
763
|
protoOf(NullRefImpl).sw = function () {
|
|
761
|
-
return this.
|
|
764
|
+
return this.y52_1.sw();
|
|
762
765
|
};
|
|
763
766
|
protoOf(NullRefImpl).tw = function () {
|
|
764
|
-
return this.
|
|
767
|
+
return this.y52_1.tw();
|
|
765
768
|
};
|
|
766
769
|
protoOf(NullRefImpl).uw = function () {
|
|
767
|
-
return this.
|
|
770
|
+
return this.y52_1.uw();
|
|
768
771
|
};
|
|
769
772
|
protoOf(NullRefImpl).vw = function () {
|
|
770
|
-
return this.
|
|
771
|
-
};
|
|
772
|
-
protoOf(NullRefImpl).ww = function () {
|
|
773
|
-
return this.n52_1.ww();
|
|
773
|
+
return this.y52_1.vw();
|
|
774
774
|
};
|
|
775
775
|
protoOf(NullRefImpl).f1 = function () {
|
|
776
|
-
return this.
|
|
776
|
+
return this.y52_1.f1();
|
|
777
777
|
};
|
|
778
|
-
protoOf(NullRefImpl).
|
|
779
|
-
return this.
|
|
778
|
+
protoOf(NullRefImpl).yw = function () {
|
|
779
|
+
return this.y52_1.yw();
|
|
780
780
|
};
|
|
781
|
-
protoOf(NullRefImpl).
|
|
782
|
-
return this.
|
|
781
|
+
protoOf(NullRefImpl).zw = function () {
|
|
782
|
+
return this.y52_1.zw();
|
|
783
783
|
};
|
|
784
|
-
protoOf(NullRefImpl).
|
|
785
|
-
return this.
|
|
784
|
+
protoOf(NullRefImpl).nx = function () {
|
|
785
|
+
return this.y52_1.nx();
|
|
786
786
|
};
|
|
787
787
|
protoOf(NullRefImpl).asStruct = function () {
|
|
788
|
-
return this.
|
|
788
|
+
return this.nx();
|
|
789
789
|
};
|
|
790
790
|
protoOf(NullRefImpl).append = function (argument) {
|
|
791
|
-
return this.
|
|
791
|
+
return this.y52_1.append(argument);
|
|
792
792
|
};
|
|
793
793
|
protoOf(NullRefImpl).addLast = function (argument) {
|
|
794
|
-
return this.
|
|
794
|
+
return this.y52_1.addLast(argument);
|
|
795
795
|
};
|
|
796
796
|
protoOf(NullRefImpl).addFirst = function (argument) {
|
|
797
|
-
return this.
|
|
797
|
+
return this.y52_1.addFirst(argument);
|
|
798
798
|
};
|
|
799
799
|
protoOf(NullRefImpl).insertAt = function (index, argument) {
|
|
800
|
-
return this.
|
|
800
|
+
return this.y52_1.insertAt(index, argument);
|
|
801
801
|
};
|
|
802
802
|
protoOf(NullRefImpl).setFunctor = function (functor) {
|
|
803
|
-
return this.
|
|
803
|
+
return this.y52_1.setFunctor(functor);
|
|
804
804
|
};
|
|
805
805
|
protoOf(NullRefImpl).getArgAt = function (index) {
|
|
806
|
-
return this.
|
|
806
|
+
return this.y52_1.getArgAt(index);
|
|
807
807
|
};
|
|
808
808
|
protoOf(NullRefImpl).setArgs = function (args) {
|
|
809
|
-
return this.
|
|
809
|
+
return this.y52_1.setArgs(args);
|
|
810
810
|
};
|
|
811
811
|
protoOf(NullRefImpl).setArgsIterable = function (args) {
|
|
812
|
-
return this.
|
|
812
|
+
return this.y52_1.setArgsIterable(args);
|
|
813
813
|
};
|
|
814
814
|
protoOf(NullRefImpl).setArgsSequence = function (args) {
|
|
815
|
-
return this.
|
|
815
|
+
return this.y52_1.setArgsSequence(args);
|
|
816
816
|
};
|
|
817
817
|
protoOf(NullRefImpl).get = function (index) {
|
|
818
|
-
return this.
|
|
818
|
+
return this.y52_1.get(index);
|
|
819
|
+
};
|
|
820
|
+
protoOf(NullRefImpl).dx = function () {
|
|
821
|
+
return this.y52_1.dx();
|
|
819
822
|
};
|
|
820
823
|
protoOf(NullRefImpl).ex = function () {
|
|
821
|
-
return this.
|
|
824
|
+
return this.y52_1.ex();
|
|
822
825
|
};
|
|
823
826
|
protoOf(NullRefImpl).fx = function () {
|
|
824
|
-
return this.
|
|
827
|
+
return this.y52_1.fx();
|
|
825
828
|
};
|
|
826
|
-
protoOf(NullRefImpl).
|
|
827
|
-
return this.
|
|
829
|
+
protoOf(NullRefImpl).ix = function () {
|
|
830
|
+
return this.y52_1.ix();
|
|
828
831
|
};
|
|
829
832
|
protoOf(NullRefImpl).jx = function () {
|
|
830
|
-
return this.
|
|
833
|
+
return this.y52_1.jx();
|
|
831
834
|
};
|
|
832
835
|
protoOf(NullRefImpl).kx = function () {
|
|
833
|
-
return this.
|
|
836
|
+
return this.y52_1.kx();
|
|
834
837
|
};
|
|
835
|
-
protoOf(NullRefImpl).
|
|
836
|
-
return this.
|
|
838
|
+
protoOf(NullRefImpl).mx = function () {
|
|
839
|
+
return this.y52_1.mx();
|
|
837
840
|
};
|
|
838
|
-
protoOf(NullRefImpl).
|
|
839
|
-
return this.
|
|
841
|
+
protoOf(NullRefImpl).xw = function () {
|
|
842
|
+
return this.y52_1.xw();
|
|
840
843
|
};
|
|
841
|
-
protoOf(NullRefImpl).
|
|
842
|
-
return this.
|
|
844
|
+
protoOf(NullRefImpl).ox = function () {
|
|
845
|
+
return this.y52_1.ox();
|
|
843
846
|
};
|
|
844
847
|
protoOf(NullRefImpl).px = function () {
|
|
845
|
-
return this.
|
|
848
|
+
return this.y52_1.px();
|
|
846
849
|
};
|
|
847
850
|
protoOf(NullRefImpl).qx = function () {
|
|
848
|
-
return this.
|
|
849
|
-
};
|
|
850
|
-
protoOf(NullRefImpl).rx = function () {
|
|
851
|
-
return this.n52_1.rx();
|
|
851
|
+
return this.y52_1.qx();
|
|
852
852
|
};
|
|
853
|
-
protoOf(NullRefImpl).
|
|
854
|
-
return this.
|
|
853
|
+
protoOf(NullRefImpl).sx = function (other) {
|
|
854
|
+
return this.y52_1.sx(other);
|
|
855
855
|
};
|
|
856
856
|
protoOf(NullRefImpl).d = function (other) {
|
|
857
|
-
return this.
|
|
857
|
+
return this.sx((!(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.y52_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
861
861
|
};
|
|
862
862
|
protoOf(NullRefImpl).equals = function (other) {
|
|
863
|
-
return this.
|
|
863
|
+
return this.y52_1.equals(other);
|
|
864
864
|
};
|
|
865
865
|
protoOf(NullRefImpl).structurallyEquals = function (other) {
|
|
866
|
-
return this.
|
|
866
|
+
return this.y52_1.structurallyEquals(other);
|
|
867
867
|
};
|
|
868
868
|
protoOf(NullRefImpl).castToAtom = function () {
|
|
869
|
-
return this.
|
|
869
|
+
return this.y52_1.castToAtom();
|
|
870
870
|
};
|
|
871
871
|
protoOf(NullRefImpl).castToClause = function () {
|
|
872
|
-
return this.
|
|
872
|
+
return this.y52_1.castToClause();
|
|
873
873
|
};
|
|
874
874
|
protoOf(NullRefImpl).castToCons = function () {
|
|
875
|
-
return this.
|
|
875
|
+
return this.y52_1.castToCons();
|
|
876
876
|
};
|
|
877
877
|
protoOf(NullRefImpl).castToConstant = function () {
|
|
878
|
-
return this.
|
|
878
|
+
return this.y52_1.castToConstant();
|
|
879
879
|
};
|
|
880
880
|
protoOf(NullRefImpl).castToDirective = function () {
|
|
881
|
-
return this.
|
|
881
|
+
return this.y52_1.castToDirective();
|
|
882
882
|
};
|
|
883
883
|
protoOf(NullRefImpl).castToEmptyList = function () {
|
|
884
|
-
return this.
|
|
884
|
+
return this.y52_1.castToEmptyList();
|
|
885
885
|
};
|
|
886
886
|
protoOf(NullRefImpl).castToEmptyBlock = function () {
|
|
887
|
-
return this.
|
|
887
|
+
return this.y52_1.castToEmptyBlock();
|
|
888
888
|
};
|
|
889
889
|
protoOf(NullRefImpl).castToFact = function () {
|
|
890
|
-
return this.
|
|
890
|
+
return this.y52_1.castToFact();
|
|
891
891
|
};
|
|
892
892
|
protoOf(NullRefImpl).castToIndicator = function () {
|
|
893
|
-
return this.
|
|
893
|
+
return this.y52_1.castToIndicator();
|
|
894
894
|
};
|
|
895
895
|
protoOf(NullRefImpl).castToInteger = function () {
|
|
896
|
-
return this.
|
|
896
|
+
return this.y52_1.castToInteger();
|
|
897
897
|
};
|
|
898
898
|
protoOf(NullRefImpl).castToList = function () {
|
|
899
|
-
return this.
|
|
899
|
+
return this.y52_1.castToList();
|
|
900
900
|
};
|
|
901
901
|
protoOf(NullRefImpl).castToNumeric = function () {
|
|
902
|
-
return this.
|
|
902
|
+
return this.y52_1.castToNumeric();
|
|
903
903
|
};
|
|
904
904
|
protoOf(NullRefImpl).castToReal = function () {
|
|
905
|
-
return this.
|
|
905
|
+
return this.y52_1.castToReal();
|
|
906
906
|
};
|
|
907
907
|
protoOf(NullRefImpl).castToRule = function () {
|
|
908
|
-
return this.
|
|
908
|
+
return this.y52_1.castToRule();
|
|
909
909
|
};
|
|
910
910
|
protoOf(NullRefImpl).castToBlock = function () {
|
|
911
|
-
return this.
|
|
911
|
+
return this.y52_1.castToBlock();
|
|
912
912
|
};
|
|
913
913
|
protoOf(NullRefImpl).castToStruct = function () {
|
|
914
|
-
return this.
|
|
914
|
+
return this.y52_1.castToStruct();
|
|
915
915
|
};
|
|
916
916
|
protoOf(NullRefImpl).castToRecursive = function () {
|
|
917
|
-
return this.
|
|
917
|
+
return this.y52_1.castToRecursive();
|
|
918
918
|
};
|
|
919
919
|
protoOf(NullRefImpl).castToTerm = function () {
|
|
920
|
-
return this.
|
|
920
|
+
return this.y52_1.castToTerm();
|
|
921
921
|
};
|
|
922
922
|
protoOf(NullRefImpl).castToTruth = function () {
|
|
923
|
-
return this.
|
|
923
|
+
return this.y52_1.castToTruth();
|
|
924
924
|
};
|
|
925
925
|
protoOf(NullRefImpl).castToTuple = function () {
|
|
926
|
-
return this.
|
|
926
|
+
return this.y52_1.castToTuple();
|
|
927
927
|
};
|
|
928
928
|
protoOf(NullRefImpl).castToVar = function () {
|
|
929
|
-
return this.
|
|
929
|
+
return this.y52_1.castToVar();
|
|
930
930
|
};
|
|
931
931
|
protoOf(NullRefImpl).asClause = function () {
|
|
932
|
-
return this.
|
|
932
|
+
return this.y52_1.asClause();
|
|
933
933
|
};
|
|
934
934
|
protoOf(NullRefImpl).asCons = function () {
|
|
935
|
-
return this.
|
|
935
|
+
return this.y52_1.asCons();
|
|
936
936
|
};
|
|
937
937
|
protoOf(NullRefImpl).asDirective = function () {
|
|
938
|
-
return this.
|
|
938
|
+
return this.y52_1.asDirective();
|
|
939
939
|
};
|
|
940
940
|
protoOf(NullRefImpl).asEmptyList = function () {
|
|
941
|
-
return this.
|
|
941
|
+
return this.y52_1.asEmptyList();
|
|
942
942
|
};
|
|
943
943
|
protoOf(NullRefImpl).asEmptyBlock = function () {
|
|
944
|
-
return this.
|
|
944
|
+
return this.y52_1.asEmptyBlock();
|
|
945
945
|
};
|
|
946
946
|
protoOf(NullRefImpl).asFact = function () {
|
|
947
|
-
return this.
|
|
947
|
+
return this.y52_1.asFact();
|
|
948
948
|
};
|
|
949
949
|
protoOf(NullRefImpl).asIndicator = function () {
|
|
950
|
-
return this.
|
|
950
|
+
return this.y52_1.asIndicator();
|
|
951
951
|
};
|
|
952
952
|
protoOf(NullRefImpl).asInteger = function () {
|
|
953
|
-
return this.
|
|
953
|
+
return this.y52_1.asInteger();
|
|
954
954
|
};
|
|
955
955
|
protoOf(NullRefImpl).asList = function () {
|
|
956
|
-
return this.
|
|
956
|
+
return this.y52_1.asList();
|
|
957
957
|
};
|
|
958
958
|
protoOf(NullRefImpl).asNumeric = function () {
|
|
959
|
-
return this.
|
|
959
|
+
return this.y52_1.asNumeric();
|
|
960
960
|
};
|
|
961
961
|
protoOf(NullRefImpl).asReal = function () {
|
|
962
|
-
return this.
|
|
962
|
+
return this.y52_1.asReal();
|
|
963
963
|
};
|
|
964
964
|
protoOf(NullRefImpl).asRule = function () {
|
|
965
|
-
return this.
|
|
965
|
+
return this.y52_1.asRule();
|
|
966
966
|
};
|
|
967
967
|
protoOf(NullRefImpl).asBlock = function () {
|
|
968
|
-
return this.
|
|
968
|
+
return this.y52_1.asBlock();
|
|
969
969
|
};
|
|
970
970
|
protoOf(NullRefImpl).asRecursive = function () {
|
|
971
|
-
return this.
|
|
971
|
+
return this.y52_1.asRecursive();
|
|
972
972
|
};
|
|
973
973
|
protoOf(NullRefImpl).asTerm = function () {
|
|
974
|
-
return this.
|
|
974
|
+
return this.y52_1.asTerm();
|
|
975
975
|
};
|
|
976
976
|
protoOf(NullRefImpl).asTruth = function () {
|
|
977
|
-
return this.
|
|
977
|
+
return this.y52_1.asTruth();
|
|
978
978
|
};
|
|
979
979
|
protoOf(NullRefImpl).asTuple = function () {
|
|
980
|
-
return this.
|
|
980
|
+
return this.y52_1.asTuple();
|
|
981
981
|
};
|
|
982
982
|
protoOf(NullRefImpl).asVar = function () {
|
|
983
|
-
return this.
|
|
983
|
+
return this.y52_1.asVar();
|
|
984
984
|
};
|
|
985
985
|
protoOf(NullRefImpl).hashCode = function () {
|
|
986
|
-
return this.
|
|
986
|
+
return this.y52_1.hashCode();
|
|
987
987
|
};
|
|
988
988
|
protoOf(NullRefImpl).toString = function () {
|
|
989
|
-
return this.
|
|
989
|
+
return this.y52_1.toString();
|
|
990
|
+
};
|
|
991
|
+
protoOf(NullRefImpl).tx = function () {
|
|
992
|
+
return this.y52_1.tx();
|
|
990
993
|
};
|
|
991
994
|
protoOf(NullRefImpl).ux = function () {
|
|
992
|
-
return this.
|
|
995
|
+
return this.y52_1.ux();
|
|
993
996
|
};
|
|
994
997
|
protoOf(NullRefImpl).vx = function () {
|
|
995
|
-
return this.
|
|
998
|
+
return this.y52_1.vx();
|
|
996
999
|
};
|
|
997
|
-
protoOf(NullRefImpl).
|
|
998
|
-
return this.
|
|
1000
|
+
protoOf(NullRefImpl).xx = function () {
|
|
1001
|
+
return this.y52_1.xx();
|
|
999
1002
|
};
|
|
1000
1003
|
protoOf(NullRefImpl).yx = function () {
|
|
1001
|
-
return this.
|
|
1004
|
+
return this.y52_1.yx();
|
|
1002
1005
|
};
|
|
1003
1006
|
protoOf(NullRefImpl).zx = function () {
|
|
1004
|
-
return this.
|
|
1005
|
-
};
|
|
1006
|
-
protoOf(NullRefImpl).ay = function () {
|
|
1007
|
-
return this.n52_1.ay();
|
|
1007
|
+
return this.y52_1.zx();
|
|
1008
1008
|
};
|
|
1009
1009
|
protoOf(NullRefImpl).getTag = function (name) {
|
|
1010
|
-
return this.
|
|
1010
|
+
return this.y52_1.getTag(name);
|
|
1011
1011
|
};
|
|
1012
1012
|
protoOf(NullRefImpl).resetTags = function (tags) {
|
|
1013
|
-
return this.
|
|
1013
|
+
return this.y52_1.resetTags(tags);
|
|
1014
1014
|
};
|
|
1015
1015
|
protoOf(NullRefImpl).containsTag = function (name) {
|
|
1016
|
-
return this.
|
|
1016
|
+
return this.y52_1.containsTag(name);
|
|
1017
1017
|
};
|
|
1018
|
-
protoOf(NullRefImpl).
|
|
1019
|
-
return this.
|
|
1018
|
+
protoOf(NullRefImpl).cu = function () {
|
|
1019
|
+
return this.y52_1.cu();
|
|
1020
1020
|
};
|
|
1021
|
-
protoOf(NullRefImpl).
|
|
1022
|
-
return this.
|
|
1021
|
+
protoOf(NullRefImpl).by = function () {
|
|
1022
|
+
return this.y52_1.by();
|
|
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.z52_1 = Companion_getInstance_0().of(Companion_getInstance_10().u51(object));
|
|
1032
|
+
this.a53_1 = object;
|
|
1033
1033
|
}
|
|
1034
|
-
protoOf(ObjectRefImpl).
|
|
1035
|
-
return this.
|
|
1034
|
+
protoOf(ObjectRefImpl).m51 = function () {
|
|
1035
|
+
return this.a53_1;
|
|
1036
1036
|
};
|
|
1037
|
-
protoOf(ObjectRefImpl).
|
|
1037
|
+
protoOf(ObjectRefImpl).wx = function () {
|
|
1038
1038
|
return true;
|
|
1039
1039
|
};
|
|
1040
|
-
protoOf(ObjectRefImpl).
|
|
1040
|
+
protoOf(ObjectRefImpl).ay = function () {
|
|
1041
1041
|
return this;
|
|
1042
1042
|
};
|
|
1043
1043
|
protoOf(ObjectRefImpl).asConstant = function () {
|
|
1044
|
-
return this.
|
|
1044
|
+
return this.ay();
|
|
1045
1045
|
};
|
|
1046
|
-
protoOf(ObjectRefImpl).
|
|
1047
|
-
return invoke_0(this.
|
|
1046
|
+
protoOf(ObjectRefImpl).n51 = function (objectConverter, methodName, arguments_0) {
|
|
1047
|
+
return invoke_0(this.a53_1, objectConverter, methodName, arguments_0);
|
|
1048
1048
|
};
|
|
1049
|
-
protoOf(ObjectRefImpl).
|
|
1050
|
-
assign_0(this.
|
|
1049
|
+
protoOf(ObjectRefImpl).o51 = function (objectConverter, propertyName, value) {
|
|
1050
|
+
assign_0(this.a53_1, objectConverter, propertyName, value);
|
|
1051
1051
|
return true;
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(ObjectRefImpl).
|
|
1053
|
+
protoOf(ObjectRefImpl).ax = function () {
|
|
1054
1054
|
return this;
|
|
1055
1055
|
};
|
|
1056
1056
|
protoOf(ObjectRefImpl).freshCopy = function () {
|
|
1057
|
-
return this.
|
|
1057
|
+
return this.ax();
|
|
1058
1058
|
};
|
|
1059
|
-
protoOf(ObjectRefImpl).
|
|
1059
|
+
protoOf(ObjectRefImpl).bx = function (scope) {
|
|
1060
1060
|
return this;
|
|
1061
1061
|
};
|
|
1062
1062
|
protoOf(ObjectRefImpl).freshCopyFromScope = function (scope) {
|
|
1063
|
-
return this.
|
|
1063
|
+
return this.bx(scope);
|
|
1064
1064
|
};
|
|
1065
|
-
protoOf(ObjectRefImpl).
|
|
1065
|
+
protoOf(ObjectRefImpl).rx = function () {
|
|
1066
1066
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1067
1067
|
};
|
|
1068
|
-
protoOf(ObjectRefImpl).
|
|
1069
|
-
return this.
|
|
1068
|
+
protoOf(ObjectRefImpl).mr = function () {
|
|
1069
|
+
return this.rx();
|
|
1070
1070
|
};
|
|
1071
|
-
protoOf(ObjectRefImpl).
|
|
1071
|
+
protoOf(ObjectRefImpl).q17 = function (substitution) {
|
|
1072
1072
|
return this;
|
|
1073
1073
|
};
|
|
1074
1074
|
protoOf(ObjectRefImpl).applySubstitution = function (substitution) {
|
|
1075
|
-
return this.
|
|
1075
|
+
return this.q17(substitution);
|
|
1076
1076
|
};
|
|
1077
|
-
protoOf(ObjectRefImpl).
|
|
1077
|
+
protoOf(ObjectRefImpl).q2u = function (substitution, substitutions) {
|
|
1078
1078
|
return this;
|
|
1079
1079
|
};
|
|
1080
1080
|
protoOf(ObjectRefImpl).apply = function (substitution, substitutions) {
|
|
1081
|
-
return this.
|
|
1081
|
+
return this.q2u(substitution, substitutions);
|
|
1082
1082
|
};
|
|
1083
|
-
protoOf(ObjectRefImpl).
|
|
1083
|
+
protoOf(ObjectRefImpl).p2u = function (substitution, substitutions) {
|
|
1084
1084
|
return this;
|
|
1085
1085
|
};
|
|
1086
1086
|
protoOf(ObjectRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1087
|
-
return this.
|
|
1087
|
+
return this.p2u(substitution, substitutions);
|
|
1088
1088
|
};
|
|
1089
|
-
protoOf(ObjectRefImpl).
|
|
1089
|
+
protoOf(ObjectRefImpl).w16 = function (visitor) {
|
|
1090
1090
|
return visitor.visitAtom(this);
|
|
1091
1091
|
};
|
|
1092
1092
|
protoOf(ObjectRefImpl).accept = function (visitor) {
|
|
1093
|
-
return this.
|
|
1093
|
+
return this.w16(visitor);
|
|
1094
1094
|
};
|
|
1095
|
-
protoOf(ObjectRefImpl).
|
|
1096
|
-
return this.
|
|
1095
|
+
protoOf(ObjectRefImpl).cx = function () {
|
|
1096
|
+
return this.z52_1.cx();
|
|
1097
1097
|
};
|
|
1098
1098
|
protoOf(ObjectRefImpl).asAtom = function () {
|
|
1099
|
-
return this.
|
|
1099
|
+
return this.cx();
|
|
1100
|
+
};
|
|
1101
|
+
protoOf(ObjectRefImpl).rw = function () {
|
|
1102
|
+
return this.z52_1.rw();
|
|
1100
1103
|
};
|
|
1101
1104
|
protoOf(ObjectRefImpl).sw = function () {
|
|
1102
|
-
return this.
|
|
1105
|
+
return this.z52_1.sw();
|
|
1103
1106
|
};
|
|
1104
1107
|
protoOf(ObjectRefImpl).tw = function () {
|
|
1105
|
-
return this.
|
|
1108
|
+
return this.z52_1.tw();
|
|
1106
1109
|
};
|
|
1107
1110
|
protoOf(ObjectRefImpl).uw = function () {
|
|
1108
|
-
return this.
|
|
1111
|
+
return this.z52_1.uw();
|
|
1109
1112
|
};
|
|
1110
1113
|
protoOf(ObjectRefImpl).vw = function () {
|
|
1111
|
-
return this.
|
|
1112
|
-
};
|
|
1113
|
-
protoOf(ObjectRefImpl).ww = function () {
|
|
1114
|
-
return this.o52_1.ww();
|
|
1114
|
+
return this.z52_1.vw();
|
|
1115
1115
|
};
|
|
1116
1116
|
protoOf(ObjectRefImpl).f1 = function () {
|
|
1117
|
-
return this.
|
|
1117
|
+
return this.z52_1.f1();
|
|
1118
1118
|
};
|
|
1119
|
-
protoOf(ObjectRefImpl).
|
|
1120
|
-
return this.
|
|
1119
|
+
protoOf(ObjectRefImpl).yw = function () {
|
|
1120
|
+
return this.z52_1.yw();
|
|
1121
1121
|
};
|
|
1122
|
-
protoOf(ObjectRefImpl).
|
|
1123
|
-
return this.
|
|
1122
|
+
protoOf(ObjectRefImpl).zw = function () {
|
|
1123
|
+
return this.z52_1.zw();
|
|
1124
1124
|
};
|
|
1125
|
-
protoOf(ObjectRefImpl).
|
|
1126
|
-
return this.
|
|
1125
|
+
protoOf(ObjectRefImpl).nx = function () {
|
|
1126
|
+
return this.z52_1.nx();
|
|
1127
1127
|
};
|
|
1128
1128
|
protoOf(ObjectRefImpl).asStruct = function () {
|
|
1129
|
-
return this.
|
|
1129
|
+
return this.nx();
|
|
1130
1130
|
};
|
|
1131
1131
|
protoOf(ObjectRefImpl).append = function (argument) {
|
|
1132
|
-
return this.
|
|
1132
|
+
return this.z52_1.append(argument);
|
|
1133
1133
|
};
|
|
1134
1134
|
protoOf(ObjectRefImpl).addLast = function (argument) {
|
|
1135
|
-
return this.
|
|
1135
|
+
return this.z52_1.addLast(argument);
|
|
1136
1136
|
};
|
|
1137
1137
|
protoOf(ObjectRefImpl).addFirst = function (argument) {
|
|
1138
|
-
return this.
|
|
1138
|
+
return this.z52_1.addFirst(argument);
|
|
1139
1139
|
};
|
|
1140
1140
|
protoOf(ObjectRefImpl).insertAt = function (index, argument) {
|
|
1141
|
-
return this.
|
|
1141
|
+
return this.z52_1.insertAt(index, argument);
|
|
1142
1142
|
};
|
|
1143
1143
|
protoOf(ObjectRefImpl).setFunctor = function (functor) {
|
|
1144
|
-
return this.
|
|
1144
|
+
return this.z52_1.setFunctor(functor);
|
|
1145
1145
|
};
|
|
1146
1146
|
protoOf(ObjectRefImpl).getArgAt = function (index) {
|
|
1147
|
-
return this.
|
|
1147
|
+
return this.z52_1.getArgAt(index);
|
|
1148
1148
|
};
|
|
1149
1149
|
protoOf(ObjectRefImpl).setArgs = function (args) {
|
|
1150
|
-
return this.
|
|
1150
|
+
return this.z52_1.setArgs(args);
|
|
1151
1151
|
};
|
|
1152
1152
|
protoOf(ObjectRefImpl).setArgsIterable = function (args) {
|
|
1153
|
-
return this.
|
|
1153
|
+
return this.z52_1.setArgsIterable(args);
|
|
1154
1154
|
};
|
|
1155
1155
|
protoOf(ObjectRefImpl).setArgsSequence = function (args) {
|
|
1156
|
-
return this.
|
|
1156
|
+
return this.z52_1.setArgsSequence(args);
|
|
1157
1157
|
};
|
|
1158
1158
|
protoOf(ObjectRefImpl).get = function (index) {
|
|
1159
|
-
return this.
|
|
1159
|
+
return this.z52_1.get(index);
|
|
1160
|
+
};
|
|
1161
|
+
protoOf(ObjectRefImpl).dx = function () {
|
|
1162
|
+
return this.z52_1.dx();
|
|
1160
1163
|
};
|
|
1161
1164
|
protoOf(ObjectRefImpl).ex = function () {
|
|
1162
|
-
return this.
|
|
1165
|
+
return this.z52_1.ex();
|
|
1163
1166
|
};
|
|
1164
1167
|
protoOf(ObjectRefImpl).fx = function () {
|
|
1165
|
-
return this.
|
|
1168
|
+
return this.z52_1.fx();
|
|
1166
1169
|
};
|
|
1167
|
-
protoOf(ObjectRefImpl).
|
|
1168
|
-
return this.
|
|
1170
|
+
protoOf(ObjectRefImpl).ix = function () {
|
|
1171
|
+
return this.z52_1.ix();
|
|
1169
1172
|
};
|
|
1170
1173
|
protoOf(ObjectRefImpl).jx = function () {
|
|
1171
|
-
return this.
|
|
1174
|
+
return this.z52_1.jx();
|
|
1172
1175
|
};
|
|
1173
1176
|
protoOf(ObjectRefImpl).kx = function () {
|
|
1174
|
-
return this.
|
|
1177
|
+
return this.z52_1.kx();
|
|
1175
1178
|
};
|
|
1176
|
-
protoOf(ObjectRefImpl).
|
|
1177
|
-
return this.
|
|
1179
|
+
protoOf(ObjectRefImpl).mx = function () {
|
|
1180
|
+
return this.z52_1.mx();
|
|
1178
1181
|
};
|
|
1179
|
-
protoOf(ObjectRefImpl).
|
|
1180
|
-
return this.
|
|
1182
|
+
protoOf(ObjectRefImpl).xw = function () {
|
|
1183
|
+
return this.z52_1.xw();
|
|
1181
1184
|
};
|
|
1182
|
-
protoOf(ObjectRefImpl).
|
|
1183
|
-
return this.
|
|
1185
|
+
protoOf(ObjectRefImpl).ox = function () {
|
|
1186
|
+
return this.z52_1.ox();
|
|
1184
1187
|
};
|
|
1185
1188
|
protoOf(ObjectRefImpl).px = function () {
|
|
1186
|
-
return this.
|
|
1189
|
+
return this.z52_1.px();
|
|
1187
1190
|
};
|
|
1188
1191
|
protoOf(ObjectRefImpl).qx = function () {
|
|
1189
|
-
return this.
|
|
1190
|
-
};
|
|
1191
|
-
protoOf(ObjectRefImpl).rx = function () {
|
|
1192
|
-
return this.o52_1.rx();
|
|
1192
|
+
return this.z52_1.qx();
|
|
1193
1193
|
};
|
|
1194
|
-
protoOf(ObjectRefImpl).
|
|
1195
|
-
return this.
|
|
1194
|
+
protoOf(ObjectRefImpl).sx = function (other) {
|
|
1195
|
+
return this.z52_1.sx(other);
|
|
1196
1196
|
};
|
|
1197
1197
|
protoOf(ObjectRefImpl).d = function (other) {
|
|
1198
|
-
return this.
|
|
1198
|
+
return this.sx((!(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.z52_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1202
1202
|
};
|
|
1203
1203
|
protoOf(ObjectRefImpl).equals = function (other) {
|
|
1204
|
-
return this.
|
|
1204
|
+
return this.z52_1.equals(other);
|
|
1205
1205
|
};
|
|
1206
1206
|
protoOf(ObjectRefImpl).structurallyEquals = function (other) {
|
|
1207
|
-
return this.
|
|
1207
|
+
return this.z52_1.structurallyEquals(other);
|
|
1208
1208
|
};
|
|
1209
1209
|
protoOf(ObjectRefImpl).castToAtom = function () {
|
|
1210
|
-
return this.
|
|
1210
|
+
return this.z52_1.castToAtom();
|
|
1211
1211
|
};
|
|
1212
1212
|
protoOf(ObjectRefImpl).castToClause = function () {
|
|
1213
|
-
return this.
|
|
1213
|
+
return this.z52_1.castToClause();
|
|
1214
1214
|
};
|
|
1215
1215
|
protoOf(ObjectRefImpl).castToCons = function () {
|
|
1216
|
-
return this.
|
|
1216
|
+
return this.z52_1.castToCons();
|
|
1217
1217
|
};
|
|
1218
1218
|
protoOf(ObjectRefImpl).castToConstant = function () {
|
|
1219
|
-
return this.
|
|
1219
|
+
return this.z52_1.castToConstant();
|
|
1220
1220
|
};
|
|
1221
1221
|
protoOf(ObjectRefImpl).castToDirective = function () {
|
|
1222
|
-
return this.
|
|
1222
|
+
return this.z52_1.castToDirective();
|
|
1223
1223
|
};
|
|
1224
1224
|
protoOf(ObjectRefImpl).castToEmptyList = function () {
|
|
1225
|
-
return this.
|
|
1225
|
+
return this.z52_1.castToEmptyList();
|
|
1226
1226
|
};
|
|
1227
1227
|
protoOf(ObjectRefImpl).castToEmptyBlock = function () {
|
|
1228
|
-
return this.
|
|
1228
|
+
return this.z52_1.castToEmptyBlock();
|
|
1229
1229
|
};
|
|
1230
1230
|
protoOf(ObjectRefImpl).castToFact = function () {
|
|
1231
|
-
return this.
|
|
1231
|
+
return this.z52_1.castToFact();
|
|
1232
1232
|
};
|
|
1233
1233
|
protoOf(ObjectRefImpl).castToIndicator = function () {
|
|
1234
|
-
return this.
|
|
1234
|
+
return this.z52_1.castToIndicator();
|
|
1235
1235
|
};
|
|
1236
1236
|
protoOf(ObjectRefImpl).castToInteger = function () {
|
|
1237
|
-
return this.
|
|
1237
|
+
return this.z52_1.castToInteger();
|
|
1238
1238
|
};
|
|
1239
1239
|
protoOf(ObjectRefImpl).castToList = function () {
|
|
1240
|
-
return this.
|
|
1240
|
+
return this.z52_1.castToList();
|
|
1241
1241
|
};
|
|
1242
1242
|
protoOf(ObjectRefImpl).castToNumeric = function () {
|
|
1243
|
-
return this.
|
|
1243
|
+
return this.z52_1.castToNumeric();
|
|
1244
1244
|
};
|
|
1245
1245
|
protoOf(ObjectRefImpl).castToReal = function () {
|
|
1246
|
-
return this.
|
|
1246
|
+
return this.z52_1.castToReal();
|
|
1247
1247
|
};
|
|
1248
1248
|
protoOf(ObjectRefImpl).castToRule = function () {
|
|
1249
|
-
return this.
|
|
1249
|
+
return this.z52_1.castToRule();
|
|
1250
1250
|
};
|
|
1251
1251
|
protoOf(ObjectRefImpl).castToBlock = function () {
|
|
1252
|
-
return this.
|
|
1252
|
+
return this.z52_1.castToBlock();
|
|
1253
1253
|
};
|
|
1254
1254
|
protoOf(ObjectRefImpl).castToStruct = function () {
|
|
1255
|
-
return this.
|
|
1255
|
+
return this.z52_1.castToStruct();
|
|
1256
1256
|
};
|
|
1257
1257
|
protoOf(ObjectRefImpl).castToRecursive = function () {
|
|
1258
|
-
return this.
|
|
1258
|
+
return this.z52_1.castToRecursive();
|
|
1259
1259
|
};
|
|
1260
1260
|
protoOf(ObjectRefImpl).castToTerm = function () {
|
|
1261
|
-
return this.
|
|
1261
|
+
return this.z52_1.castToTerm();
|
|
1262
1262
|
};
|
|
1263
1263
|
protoOf(ObjectRefImpl).castToTruth = function () {
|
|
1264
|
-
return this.
|
|
1264
|
+
return this.z52_1.castToTruth();
|
|
1265
1265
|
};
|
|
1266
1266
|
protoOf(ObjectRefImpl).castToTuple = function () {
|
|
1267
|
-
return this.
|
|
1267
|
+
return this.z52_1.castToTuple();
|
|
1268
1268
|
};
|
|
1269
1269
|
protoOf(ObjectRefImpl).castToVar = function () {
|
|
1270
|
-
return this.
|
|
1270
|
+
return this.z52_1.castToVar();
|
|
1271
1271
|
};
|
|
1272
1272
|
protoOf(ObjectRefImpl).asClause = function () {
|
|
1273
|
-
return this.
|
|
1273
|
+
return this.z52_1.asClause();
|
|
1274
1274
|
};
|
|
1275
1275
|
protoOf(ObjectRefImpl).asCons = function () {
|
|
1276
|
-
return this.
|
|
1276
|
+
return this.z52_1.asCons();
|
|
1277
1277
|
};
|
|
1278
1278
|
protoOf(ObjectRefImpl).asDirective = function () {
|
|
1279
|
-
return this.
|
|
1279
|
+
return this.z52_1.asDirective();
|
|
1280
1280
|
};
|
|
1281
1281
|
protoOf(ObjectRefImpl).asEmptyList = function () {
|
|
1282
|
-
return this.
|
|
1282
|
+
return this.z52_1.asEmptyList();
|
|
1283
1283
|
};
|
|
1284
1284
|
protoOf(ObjectRefImpl).asEmptyBlock = function () {
|
|
1285
|
-
return this.
|
|
1285
|
+
return this.z52_1.asEmptyBlock();
|
|
1286
1286
|
};
|
|
1287
1287
|
protoOf(ObjectRefImpl).asFact = function () {
|
|
1288
|
-
return this.
|
|
1288
|
+
return this.z52_1.asFact();
|
|
1289
1289
|
};
|
|
1290
1290
|
protoOf(ObjectRefImpl).asIndicator = function () {
|
|
1291
|
-
return this.
|
|
1291
|
+
return this.z52_1.asIndicator();
|
|
1292
1292
|
};
|
|
1293
1293
|
protoOf(ObjectRefImpl).asInteger = function () {
|
|
1294
|
-
return this.
|
|
1294
|
+
return this.z52_1.asInteger();
|
|
1295
1295
|
};
|
|
1296
1296
|
protoOf(ObjectRefImpl).asList = function () {
|
|
1297
|
-
return this.
|
|
1297
|
+
return this.z52_1.asList();
|
|
1298
1298
|
};
|
|
1299
1299
|
protoOf(ObjectRefImpl).asNumeric = function () {
|
|
1300
|
-
return this.
|
|
1300
|
+
return this.z52_1.asNumeric();
|
|
1301
1301
|
};
|
|
1302
1302
|
protoOf(ObjectRefImpl).asReal = function () {
|
|
1303
|
-
return this.
|
|
1303
|
+
return this.z52_1.asReal();
|
|
1304
1304
|
};
|
|
1305
1305
|
protoOf(ObjectRefImpl).asRule = function () {
|
|
1306
|
-
return this.
|
|
1306
|
+
return this.z52_1.asRule();
|
|
1307
1307
|
};
|
|
1308
1308
|
protoOf(ObjectRefImpl).asBlock = function () {
|
|
1309
|
-
return this.
|
|
1309
|
+
return this.z52_1.asBlock();
|
|
1310
1310
|
};
|
|
1311
1311
|
protoOf(ObjectRefImpl).asRecursive = function () {
|
|
1312
|
-
return this.
|
|
1312
|
+
return this.z52_1.asRecursive();
|
|
1313
1313
|
};
|
|
1314
1314
|
protoOf(ObjectRefImpl).asTerm = function () {
|
|
1315
|
-
return this.
|
|
1315
|
+
return this.z52_1.asTerm();
|
|
1316
1316
|
};
|
|
1317
1317
|
protoOf(ObjectRefImpl).asTruth = function () {
|
|
1318
|
-
return this.
|
|
1318
|
+
return this.z52_1.asTruth();
|
|
1319
1319
|
};
|
|
1320
1320
|
protoOf(ObjectRefImpl).asTuple = function () {
|
|
1321
|
-
return this.
|
|
1321
|
+
return this.z52_1.asTuple();
|
|
1322
1322
|
};
|
|
1323
1323
|
protoOf(ObjectRefImpl).asVar = function () {
|
|
1324
|
-
return this.
|
|
1324
|
+
return this.z52_1.asVar();
|
|
1325
1325
|
};
|
|
1326
1326
|
protoOf(ObjectRefImpl).hashCode = function () {
|
|
1327
|
-
return this.
|
|
1327
|
+
return this.z52_1.hashCode();
|
|
1328
1328
|
};
|
|
1329
1329
|
protoOf(ObjectRefImpl).toString = function () {
|
|
1330
|
-
return this.
|
|
1330
|
+
return this.z52_1.toString();
|
|
1331
|
+
};
|
|
1332
|
+
protoOf(ObjectRefImpl).tx = function () {
|
|
1333
|
+
return this.z52_1.tx();
|
|
1331
1334
|
};
|
|
1332
1335
|
protoOf(ObjectRefImpl).ux = function () {
|
|
1333
|
-
return this.
|
|
1336
|
+
return this.z52_1.ux();
|
|
1334
1337
|
};
|
|
1335
1338
|
protoOf(ObjectRefImpl).vx = function () {
|
|
1336
|
-
return this.
|
|
1339
|
+
return this.z52_1.vx();
|
|
1337
1340
|
};
|
|
1338
|
-
protoOf(ObjectRefImpl).
|
|
1339
|
-
return this.
|
|
1341
|
+
protoOf(ObjectRefImpl).xx = function () {
|
|
1342
|
+
return this.z52_1.xx();
|
|
1340
1343
|
};
|
|
1341
1344
|
protoOf(ObjectRefImpl).yx = function () {
|
|
1342
|
-
return this.
|
|
1345
|
+
return this.z52_1.yx();
|
|
1343
1346
|
};
|
|
1344
1347
|
protoOf(ObjectRefImpl).zx = function () {
|
|
1345
|
-
return this.
|
|
1346
|
-
};
|
|
1347
|
-
protoOf(ObjectRefImpl).ay = function () {
|
|
1348
|
-
return this.o52_1.ay();
|
|
1348
|
+
return this.z52_1.zx();
|
|
1349
1349
|
};
|
|
1350
1350
|
protoOf(ObjectRefImpl).getTag = function (name) {
|
|
1351
|
-
return this.
|
|
1351
|
+
return this.z52_1.getTag(name);
|
|
1352
1352
|
};
|
|
1353
1353
|
protoOf(ObjectRefImpl).resetTags = function (tags) {
|
|
1354
|
-
return this.
|
|
1354
|
+
return this.z52_1.resetTags(tags);
|
|
1355
1355
|
};
|
|
1356
1356
|
protoOf(ObjectRefImpl).containsTag = function (name) {
|
|
1357
|
-
return this.
|
|
1357
|
+
return this.z52_1.containsTag(name);
|
|
1358
1358
|
};
|
|
1359
|
-
protoOf(ObjectRefImpl).
|
|
1360
|
-
return this.
|
|
1359
|
+
protoOf(ObjectRefImpl).cu = function () {
|
|
1360
|
+
return this.z52_1.cu();
|
|
1361
1361
|
};
|
|
1362
|
-
protoOf(ObjectRefImpl).
|
|
1363
|
-
return this.
|
|
1362
|
+
protoOf(ObjectRefImpl).by = function () {
|
|
1363
|
+
return this.z52_1.by();
|
|
1364
1364
|
};
|
|
1365
1365
|
function ObjectToTermConverterImpl() {
|
|
1366
|
-
this.
|
|
1366
|
+
this.b53_1 = new NumberTypeTester();
|
|
1367
1367
|
}
|
|
1368
|
-
protoOf(ObjectToTermConverterImpl).
|
|
1368
|
+
protoOf(ObjectToTermConverterImpl).b52 = function (source) {
|
|
1369
1369
|
// Inline function 'kotlin.with' call
|
|
1370
|
-
var $this$with = this.
|
|
1370
|
+
var $this$with = this.b53_1;
|
|
1371
1371
|
var tmp;
|
|
1372
1372
|
if (source == null) {
|
|
1373
|
-
tmp = Companion_getInstance_10().
|
|
1373
|
+
tmp = Companion_getInstance_10().t51_1;
|
|
1374
1374
|
} else {
|
|
1375
1375
|
if (typeof source === 'string') {
|
|
1376
1376
|
tmp = Companion_getInstance_0().of(source);
|
|
@@ -1382,7 +1382,7 @@
|
|
|
1382
1382
|
tmp = Companion_getInstance_2().ofBigDecimal(source);
|
|
1383
1383
|
} else {
|
|
1384
1384
|
if (isNumber(source)) {
|
|
1385
|
-
tmp = $this$with.
|
|
1385
|
+
tmp = $this$with.ut(source) ? Companion_getInstance_3().ofBigInteger($this$with.vt(source)) : Companion_getInstance_2().ofBigDecimal($this$with.wt(source));
|
|
1386
1386
|
} else {
|
|
1387
1387
|
if (source instanceof Char) {
|
|
1388
1388
|
var tmp_0 = Companion_getInstance_0();
|
|
@@ -1393,7 +1393,7 @@
|
|
|
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().v51(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.h52(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.w27();
|
|
1428
1428
|
} else {
|
|
1429
1429
|
if (isInterface(typeTerm, Atom)) {
|
|
1430
|
-
var tmp1_elvis_lhs = $this.
|
|
1430
|
+
var tmp1_elvis_lhs = $this.c53_1.m52(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.d53_1(typeTerm);
|
|
1443
1443
|
var tmp_2;
|
|
1444
1444
|
if (!(ref == null) ? isInterface(ref, TypeRef) : false) {
|
|
1445
|
-
tmp_2 = ref.
|
|
1445
|
+
tmp_2 = ref.w27();
|
|
1446
1446
|
} else {
|
|
1447
1447
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1448
1448
|
}
|
|
@@ -1470,7 +1470,7 @@
|
|
|
1470
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.m51()));
|
|
1474
1474
|
} else {
|
|
1475
1475
|
if (isInterface(term, Truth)) {
|
|
1476
1476
|
tmp = sequenceOf_0([PrimitiveClasses_getInstance().aa(), PrimitiveClasses_getInstance().ia()]);
|
|
@@ -1487,28 +1487,28 @@
|
|
|
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)).i1(term.
|
|
1490
|
+
if (Companion_getInstance_4().ofLong(-9223372036854775808n).rangeTo(Companion_getInstance_4().ofLong(9223372036854775807n)).i1(term.f11())) {
|
|
1491
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)).i1(term.
|
|
1493
|
+
if (Companion_getInstance_4().of(-2147483648).rangeTo(Companion_getInstance_4().of(2147483647)).i1(term.f11())) {
|
|
1494
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)).i1(term.
|
|
1496
|
+
if (Companion_getInstance_4().of(-32768).rangeTo(Companion_getInstance_4().of(32767)).i1(term.f11())) {
|
|
1497
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)).i1(term.
|
|
1499
|
+
if (Companion_getInstance_4().of(-128).rangeTo(Companion_getInstance_4().of(127)).i1(term.f11())) {
|
|
1500
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.n11();
|
|
1506
1506
|
if (0 <= compareTo(containsArg, containsLower) ? compareTo(containsArg, containsUpper) <= 0 : false) {
|
|
1507
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.n11();
|
|
1512
1512
|
if (0 <= compareTo(containsArg_0, containsLower_0) ? compareTo(containsArg_0, containsUpper_0) <= 0 : false) {
|
|
1513
1513
|
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().fa()));
|
|
1514
1514
|
}
|
|
@@ -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.d53_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.c53_1 = typeFactory;
|
|
1547
|
+
this.d53_1 = dealiaser;
|
|
1548
1548
|
}
|
|
1549
|
-
protoOf(TermToObjectConverterImpl).
|
|
1549
|
+
protoOf(TermToObjectConverterImpl).h52 = 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.m51()), type)) {
|
|
1569
|
+
tmp_2 = term.m51();
|
|
1570
1570
|
} else {
|
|
1571
1571
|
throw new TermToObjectConversionException(term, type);
|
|
1572
1572
|
}
|
|
@@ -1575,7 +1575,7 @@
|
|
|
1575
1575
|
if (isInterface(term, Truth)) {
|
|
1576
1576
|
var tmp_3;
|
|
1577
1577
|
if (isSubtypeOf(PrimitiveClasses_getInstance().aa(), type)) {
|
|
1578
|
-
tmp_3 = term.
|
|
1578
|
+
tmp_3 = term.vw();
|
|
1579
1579
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ia(), type)) {
|
|
1580
1580
|
tmp_3 = term.f1();
|
|
1581
1581
|
} else {
|
|
@@ -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.
|
|
1606
|
+
tmp_6 = term.n11();
|
|
1607
1607
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ga(), type)) {
|
|
1608
|
-
tmp_6 = term.
|
|
1608
|
+
tmp_6 = term.n11().toDouble();
|
|
1609
1609
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().fa(), type)) {
|
|
1610
|
-
tmp_6 = term.
|
|
1610
|
+
tmp_6 = term.n11().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.
|
|
1619
|
+
tmp_7 = term.f11();
|
|
1620
1620
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ea(), type)) {
|
|
1621
|
-
tmp_7 = term.
|
|
1621
|
+
tmp_7 = term.f11().toLongExact();
|
|
1622
1622
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().da(), type)) {
|
|
1623
|
-
tmp_7 = term.
|
|
1623
|
+
tmp_7 = term.f11().toIntExact();
|
|
1624
1624
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ca(), type)) {
|
|
1625
|
-
tmp_7 = term.
|
|
1625
|
+
tmp_7 = term.f11().toShortExact();
|
|
1626
1626
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ba(), type)) {
|
|
1627
|
-
tmp_7 = term.
|
|
1627
|
+
tmp_7 = term.f11().toByteExact();
|
|
1628
1628
|
} else if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1629
|
-
tmp_7 = term.
|
|
1629
|
+
tmp_7 = term.n11();
|
|
1630
1630
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ga(), type)) {
|
|
1631
|
-
tmp_7 = term.
|
|
1631
|
+
tmp_7 = term.n11().toDouble();
|
|
1632
1632
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().fa(), type)) {
|
|
1633
|
-
tmp_7 = term.
|
|
1633
|
+
tmp_7 = term.n11().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.d53_1(term);
|
|
1645
1645
|
var tmp_9;
|
|
1646
1646
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1647
|
-
tmp_9 = this.
|
|
1647
|
+
tmp_9 = this.h52(type, ref);
|
|
1648
1648
|
} else {
|
|
1649
1649
|
throw TermToObjectConversionException_init_$Create$(term);
|
|
1650
1650
|
}
|
|
@@ -1669,15 +1669,15 @@
|
|
|
1669
1669
|
}
|
|
1670
1670
|
return tmp;
|
|
1671
1671
|
};
|
|
1672
|
-
protoOf(TermToObjectConverterImpl).
|
|
1672
|
+
protoOf(TermToObjectConverterImpl).j52 = function (term) {
|
|
1673
1673
|
return first(admissibleTypesByPriority(this, term));
|
|
1674
1674
|
};
|
|
1675
|
-
protoOf(TermToObjectConverterImpl).
|
|
1675
|
+
protoOf(TermToObjectConverterImpl).i52 = function (term) {
|
|
1676
1676
|
return toSet(admissibleTypesByPriority(this, term));
|
|
1677
1677
|
};
|
|
1678
1678
|
function TypeFactoryImpl() {
|
|
1679
1679
|
}
|
|
1680
|
-
protoOf(TypeFactoryImpl).
|
|
1680
|
+
protoOf(TypeFactoryImpl).m52 = function (typeName) {
|
|
1681
1681
|
return kClassFromName(typeName).f1();
|
|
1682
1682
|
};
|
|
1683
1683
|
function nameOf_0($this, type) {
|
|
@@ -1690,360 +1690,360 @@
|
|
|
1690
1690
|
return Companion_instance_14;
|
|
1691
1691
|
}
|
|
1692
1692
|
function TypeRefImpl(type) {
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1693
|
+
this.e53_1 = Companion_getInstance_0().of(nameOf_0(Companion_instance_14, type));
|
|
1694
|
+
this.f53_1 = type;
|
|
1695
1695
|
}
|
|
1696
|
-
protoOf(TypeRefImpl).
|
|
1697
|
-
return this.
|
|
1696
|
+
protoOf(TypeRefImpl).w27 = function () {
|
|
1697
|
+
return this.f53_1;
|
|
1698
1698
|
};
|
|
1699
|
-
protoOf(TypeRefImpl).
|
|
1700
|
-
return create_0(this.
|
|
1699
|
+
protoOf(TypeRefImpl).p52 = function (objectConverter, arguments_0) {
|
|
1700
|
+
return create_0(this.f53_1, objectConverter, arguments_0);
|
|
1701
1701
|
};
|
|
1702
|
-
protoOf(TypeRefImpl).
|
|
1703
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
1702
|
+
protoOf(TypeRefImpl).n51 = function (objectConverter, methodName, arguments_0) {
|
|
1703
|
+
var companionObjectRef = get_companionObjectRef(this.f53_1);
|
|
1704
1704
|
var tmp;
|
|
1705
1705
|
if (companionObjectRef instanceof Some) {
|
|
1706
|
-
tmp = invoke_0(companionObjectRef.
|
|
1706
|
+
tmp = invoke_0(companionObjectRef.fr_1, objectConverter, methodName, arguments_0);
|
|
1707
1707
|
} else {
|
|
1708
|
-
tmp = invoke_1(this.
|
|
1708
|
+
tmp = invoke_1(this.f53_1, objectConverter, methodName, arguments_0, null);
|
|
1709
1709
|
}
|
|
1710
1710
|
return tmp;
|
|
1711
1711
|
};
|
|
1712
|
-
protoOf(TypeRefImpl).
|
|
1712
|
+
protoOf(TypeRefImpl).wx = function () {
|
|
1713
1713
|
return true;
|
|
1714
1714
|
};
|
|
1715
|
-
protoOf(TypeRefImpl).
|
|
1715
|
+
protoOf(TypeRefImpl).ay = function () {
|
|
1716
1716
|
return this;
|
|
1717
1717
|
};
|
|
1718
1718
|
protoOf(TypeRefImpl).asConstant = function () {
|
|
1719
|
-
return this.
|
|
1719
|
+
return this.ay();
|
|
1720
1720
|
};
|
|
1721
|
-
protoOf(TypeRefImpl).
|
|
1721
|
+
protoOf(TypeRefImpl).ax = function () {
|
|
1722
1722
|
return this;
|
|
1723
1723
|
};
|
|
1724
1724
|
protoOf(TypeRefImpl).freshCopy = function () {
|
|
1725
|
-
return this.
|
|
1725
|
+
return this.ax();
|
|
1726
1726
|
};
|
|
1727
|
-
protoOf(TypeRefImpl).
|
|
1727
|
+
protoOf(TypeRefImpl).bx = function (scope) {
|
|
1728
1728
|
return this;
|
|
1729
1729
|
};
|
|
1730
1730
|
protoOf(TypeRefImpl).freshCopyFromScope = function (scope) {
|
|
1731
|
-
return this.
|
|
1731
|
+
return this.bx(scope);
|
|
1732
1732
|
};
|
|
1733
|
-
protoOf(TypeRefImpl).
|
|
1733
|
+
protoOf(TypeRefImpl).rx = function () {
|
|
1734
1734
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1735
1735
|
};
|
|
1736
|
-
protoOf(TypeRefImpl).
|
|
1737
|
-
return this.
|
|
1736
|
+
protoOf(TypeRefImpl).mr = function () {
|
|
1737
|
+
return this.rx();
|
|
1738
1738
|
};
|
|
1739
|
-
protoOf(TypeRefImpl).
|
|
1739
|
+
protoOf(TypeRefImpl).q17 = function (substitution) {
|
|
1740
1740
|
return this;
|
|
1741
1741
|
};
|
|
1742
1742
|
protoOf(TypeRefImpl).applySubstitution = function (substitution) {
|
|
1743
|
-
return this.
|
|
1743
|
+
return this.q17(substitution);
|
|
1744
1744
|
};
|
|
1745
|
-
protoOf(TypeRefImpl).
|
|
1745
|
+
protoOf(TypeRefImpl).q2u = function (substitution, substitutions) {
|
|
1746
1746
|
return this;
|
|
1747
1747
|
};
|
|
1748
1748
|
protoOf(TypeRefImpl).apply = function (substitution, substitutions) {
|
|
1749
|
-
return this.
|
|
1749
|
+
return this.q2u(substitution, substitutions);
|
|
1750
1750
|
};
|
|
1751
|
-
protoOf(TypeRefImpl).
|
|
1751
|
+
protoOf(TypeRefImpl).p2u = function (substitution, substitutions) {
|
|
1752
1752
|
return this;
|
|
1753
1753
|
};
|
|
1754
1754
|
protoOf(TypeRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1755
|
-
return this.
|
|
1755
|
+
return this.p2u(substitution, substitutions);
|
|
1756
1756
|
};
|
|
1757
|
-
protoOf(TypeRefImpl).
|
|
1757
|
+
protoOf(TypeRefImpl).w16 = function (visitor) {
|
|
1758
1758
|
return visitor.visitAtom(this);
|
|
1759
1759
|
};
|
|
1760
1760
|
protoOf(TypeRefImpl).accept = function (visitor) {
|
|
1761
|
-
return this.
|
|
1761
|
+
return this.w16(visitor);
|
|
1762
1762
|
};
|
|
1763
|
-
protoOf(TypeRefImpl).
|
|
1764
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
1763
|
+
protoOf(TypeRefImpl).o51 = function (objectConverter, propertyName, value) {
|
|
1764
|
+
var companionObjectRef = get_companionObjectRef(this.f53_1);
|
|
1765
1765
|
if (companionObjectRef instanceof Some)
|
|
1766
|
-
assign_0(companionObjectRef.
|
|
1766
|
+
assign_0(companionObjectRef.fr_1, objectConverter, propertyName, value);
|
|
1767
1767
|
else {
|
|
1768
|
-
assign_1(this.
|
|
1768
|
+
assign_1(this.f53_1, objectConverter, propertyName, value, null);
|
|
1769
1769
|
}
|
|
1770
1770
|
return true;
|
|
1771
1771
|
};
|
|
1772
|
-
protoOf(TypeRefImpl).
|
|
1773
|
-
return this.
|
|
1772
|
+
protoOf(TypeRefImpl).cx = function () {
|
|
1773
|
+
return this.e53_1.cx();
|
|
1774
1774
|
};
|
|
1775
1775
|
protoOf(TypeRefImpl).asAtom = function () {
|
|
1776
|
-
return this.
|
|
1776
|
+
return this.cx();
|
|
1777
|
+
};
|
|
1778
|
+
protoOf(TypeRefImpl).rw = function () {
|
|
1779
|
+
return this.e53_1.rw();
|
|
1777
1780
|
};
|
|
1778
1781
|
protoOf(TypeRefImpl).sw = function () {
|
|
1779
|
-
return this.
|
|
1782
|
+
return this.e53_1.sw();
|
|
1780
1783
|
};
|
|
1781
1784
|
protoOf(TypeRefImpl).tw = function () {
|
|
1782
|
-
return this.
|
|
1785
|
+
return this.e53_1.tw();
|
|
1783
1786
|
};
|
|
1784
1787
|
protoOf(TypeRefImpl).uw = function () {
|
|
1785
|
-
return this.
|
|
1788
|
+
return this.e53_1.uw();
|
|
1786
1789
|
};
|
|
1787
1790
|
protoOf(TypeRefImpl).vw = function () {
|
|
1788
|
-
return this.
|
|
1789
|
-
};
|
|
1790
|
-
protoOf(TypeRefImpl).ww = function () {
|
|
1791
|
-
return this.t52_1.ww();
|
|
1791
|
+
return this.e53_1.vw();
|
|
1792
1792
|
};
|
|
1793
1793
|
protoOf(TypeRefImpl).f1 = function () {
|
|
1794
|
-
return this.
|
|
1794
|
+
return this.e53_1.f1();
|
|
1795
1795
|
};
|
|
1796
|
-
protoOf(TypeRefImpl).
|
|
1797
|
-
return this.
|
|
1796
|
+
protoOf(TypeRefImpl).yw = function () {
|
|
1797
|
+
return this.e53_1.yw();
|
|
1798
1798
|
};
|
|
1799
|
-
protoOf(TypeRefImpl).
|
|
1800
|
-
return this.
|
|
1799
|
+
protoOf(TypeRefImpl).zw = function () {
|
|
1800
|
+
return this.e53_1.zw();
|
|
1801
1801
|
};
|
|
1802
|
-
protoOf(TypeRefImpl).
|
|
1803
|
-
return this.
|
|
1802
|
+
protoOf(TypeRefImpl).nx = function () {
|
|
1803
|
+
return this.e53_1.nx();
|
|
1804
1804
|
};
|
|
1805
1805
|
protoOf(TypeRefImpl).asStruct = function () {
|
|
1806
|
-
return this.
|
|
1806
|
+
return this.nx();
|
|
1807
1807
|
};
|
|
1808
1808
|
protoOf(TypeRefImpl).append = function (argument) {
|
|
1809
|
-
return this.
|
|
1809
|
+
return this.e53_1.append(argument);
|
|
1810
1810
|
};
|
|
1811
1811
|
protoOf(TypeRefImpl).addLast = function (argument) {
|
|
1812
|
-
return this.
|
|
1812
|
+
return this.e53_1.addLast(argument);
|
|
1813
1813
|
};
|
|
1814
1814
|
protoOf(TypeRefImpl).addFirst = function (argument) {
|
|
1815
|
-
return this.
|
|
1815
|
+
return this.e53_1.addFirst(argument);
|
|
1816
1816
|
};
|
|
1817
1817
|
protoOf(TypeRefImpl).insertAt = function (index, argument) {
|
|
1818
|
-
return this.
|
|
1818
|
+
return this.e53_1.insertAt(index, argument);
|
|
1819
1819
|
};
|
|
1820
1820
|
protoOf(TypeRefImpl).setFunctor = function (functor) {
|
|
1821
|
-
return this.
|
|
1821
|
+
return this.e53_1.setFunctor(functor);
|
|
1822
1822
|
};
|
|
1823
1823
|
protoOf(TypeRefImpl).getArgAt = function (index) {
|
|
1824
|
-
return this.
|
|
1824
|
+
return this.e53_1.getArgAt(index);
|
|
1825
1825
|
};
|
|
1826
1826
|
protoOf(TypeRefImpl).setArgs = function (args) {
|
|
1827
|
-
return this.
|
|
1827
|
+
return this.e53_1.setArgs(args);
|
|
1828
1828
|
};
|
|
1829
1829
|
protoOf(TypeRefImpl).setArgsIterable = function (args) {
|
|
1830
|
-
return this.
|
|
1830
|
+
return this.e53_1.setArgsIterable(args);
|
|
1831
1831
|
};
|
|
1832
1832
|
protoOf(TypeRefImpl).setArgsSequence = function (args) {
|
|
1833
|
-
return this.
|
|
1833
|
+
return this.e53_1.setArgsSequence(args);
|
|
1834
1834
|
};
|
|
1835
1835
|
protoOf(TypeRefImpl).get = function (index) {
|
|
1836
|
-
return this.
|
|
1836
|
+
return this.e53_1.get(index);
|
|
1837
|
+
};
|
|
1838
|
+
protoOf(TypeRefImpl).dx = function () {
|
|
1839
|
+
return this.e53_1.dx();
|
|
1837
1840
|
};
|
|
1838
1841
|
protoOf(TypeRefImpl).ex = function () {
|
|
1839
|
-
return this.
|
|
1842
|
+
return this.e53_1.ex();
|
|
1840
1843
|
};
|
|
1841
1844
|
protoOf(TypeRefImpl).fx = function () {
|
|
1842
|
-
return this.
|
|
1845
|
+
return this.e53_1.fx();
|
|
1843
1846
|
};
|
|
1844
|
-
protoOf(TypeRefImpl).
|
|
1845
|
-
return this.
|
|
1847
|
+
protoOf(TypeRefImpl).ix = function () {
|
|
1848
|
+
return this.e53_1.ix();
|
|
1846
1849
|
};
|
|
1847
1850
|
protoOf(TypeRefImpl).jx = function () {
|
|
1848
|
-
return this.
|
|
1851
|
+
return this.e53_1.jx();
|
|
1849
1852
|
};
|
|
1850
1853
|
protoOf(TypeRefImpl).kx = function () {
|
|
1851
|
-
return this.
|
|
1854
|
+
return this.e53_1.kx();
|
|
1852
1855
|
};
|
|
1853
|
-
protoOf(TypeRefImpl).
|
|
1854
|
-
return this.
|
|
1856
|
+
protoOf(TypeRefImpl).mx = function () {
|
|
1857
|
+
return this.e53_1.mx();
|
|
1855
1858
|
};
|
|
1856
|
-
protoOf(TypeRefImpl).
|
|
1857
|
-
return this.
|
|
1859
|
+
protoOf(TypeRefImpl).xw = function () {
|
|
1860
|
+
return this.e53_1.xw();
|
|
1858
1861
|
};
|
|
1859
|
-
protoOf(TypeRefImpl).
|
|
1860
|
-
return this.
|
|
1862
|
+
protoOf(TypeRefImpl).ox = function () {
|
|
1863
|
+
return this.e53_1.ox();
|
|
1861
1864
|
};
|
|
1862
1865
|
protoOf(TypeRefImpl).px = function () {
|
|
1863
|
-
return this.
|
|
1866
|
+
return this.e53_1.px();
|
|
1864
1867
|
};
|
|
1865
1868
|
protoOf(TypeRefImpl).qx = function () {
|
|
1866
|
-
return this.
|
|
1869
|
+
return this.e53_1.qx();
|
|
1867
1870
|
};
|
|
1868
|
-
protoOf(TypeRefImpl).
|
|
1869
|
-
return this.
|
|
1870
|
-
};
|
|
1871
|
-
protoOf(TypeRefImpl).tx = function (other) {
|
|
1872
|
-
return this.t52_1.tx(other);
|
|
1871
|
+
protoOf(TypeRefImpl).sx = function (other) {
|
|
1872
|
+
return this.e53_1.sx(other);
|
|
1873
1873
|
};
|
|
1874
1874
|
protoOf(TypeRefImpl).d = function (other) {
|
|
1875
|
-
return this.
|
|
1875
|
+
return this.sx((!(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.e53_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1879
1879
|
};
|
|
1880
1880
|
protoOf(TypeRefImpl).equals = function (other) {
|
|
1881
|
-
return this.
|
|
1881
|
+
return this.e53_1.equals(other);
|
|
1882
1882
|
};
|
|
1883
1883
|
protoOf(TypeRefImpl).structurallyEquals = function (other) {
|
|
1884
|
-
return this.
|
|
1884
|
+
return this.e53_1.structurallyEquals(other);
|
|
1885
1885
|
};
|
|
1886
1886
|
protoOf(TypeRefImpl).castToAtom = function () {
|
|
1887
|
-
return this.
|
|
1887
|
+
return this.e53_1.castToAtom();
|
|
1888
1888
|
};
|
|
1889
1889
|
protoOf(TypeRefImpl).castToClause = function () {
|
|
1890
|
-
return this.
|
|
1890
|
+
return this.e53_1.castToClause();
|
|
1891
1891
|
};
|
|
1892
1892
|
protoOf(TypeRefImpl).castToCons = function () {
|
|
1893
|
-
return this.
|
|
1893
|
+
return this.e53_1.castToCons();
|
|
1894
1894
|
};
|
|
1895
1895
|
protoOf(TypeRefImpl).castToConstant = function () {
|
|
1896
|
-
return this.
|
|
1896
|
+
return this.e53_1.castToConstant();
|
|
1897
1897
|
};
|
|
1898
1898
|
protoOf(TypeRefImpl).castToDirective = function () {
|
|
1899
|
-
return this.
|
|
1899
|
+
return this.e53_1.castToDirective();
|
|
1900
1900
|
};
|
|
1901
1901
|
protoOf(TypeRefImpl).castToEmptyList = function () {
|
|
1902
|
-
return this.
|
|
1902
|
+
return this.e53_1.castToEmptyList();
|
|
1903
1903
|
};
|
|
1904
1904
|
protoOf(TypeRefImpl).castToEmptyBlock = function () {
|
|
1905
|
-
return this.
|
|
1905
|
+
return this.e53_1.castToEmptyBlock();
|
|
1906
1906
|
};
|
|
1907
1907
|
protoOf(TypeRefImpl).castToFact = function () {
|
|
1908
|
-
return this.
|
|
1908
|
+
return this.e53_1.castToFact();
|
|
1909
1909
|
};
|
|
1910
1910
|
protoOf(TypeRefImpl).castToIndicator = function () {
|
|
1911
|
-
return this.
|
|
1911
|
+
return this.e53_1.castToIndicator();
|
|
1912
1912
|
};
|
|
1913
1913
|
protoOf(TypeRefImpl).castToInteger = function () {
|
|
1914
|
-
return this.
|
|
1914
|
+
return this.e53_1.castToInteger();
|
|
1915
1915
|
};
|
|
1916
1916
|
protoOf(TypeRefImpl).castToList = function () {
|
|
1917
|
-
return this.
|
|
1917
|
+
return this.e53_1.castToList();
|
|
1918
1918
|
};
|
|
1919
1919
|
protoOf(TypeRefImpl).castToNumeric = function () {
|
|
1920
|
-
return this.
|
|
1920
|
+
return this.e53_1.castToNumeric();
|
|
1921
1921
|
};
|
|
1922
1922
|
protoOf(TypeRefImpl).castToReal = function () {
|
|
1923
|
-
return this.
|
|
1923
|
+
return this.e53_1.castToReal();
|
|
1924
1924
|
};
|
|
1925
1925
|
protoOf(TypeRefImpl).castToRule = function () {
|
|
1926
|
-
return this.
|
|
1926
|
+
return this.e53_1.castToRule();
|
|
1927
1927
|
};
|
|
1928
1928
|
protoOf(TypeRefImpl).castToBlock = function () {
|
|
1929
|
-
return this.
|
|
1929
|
+
return this.e53_1.castToBlock();
|
|
1930
1930
|
};
|
|
1931
1931
|
protoOf(TypeRefImpl).castToStruct = function () {
|
|
1932
|
-
return this.
|
|
1932
|
+
return this.e53_1.castToStruct();
|
|
1933
1933
|
};
|
|
1934
1934
|
protoOf(TypeRefImpl).castToRecursive = function () {
|
|
1935
|
-
return this.
|
|
1935
|
+
return this.e53_1.castToRecursive();
|
|
1936
1936
|
};
|
|
1937
1937
|
protoOf(TypeRefImpl).castToTerm = function () {
|
|
1938
|
-
return this.
|
|
1938
|
+
return this.e53_1.castToTerm();
|
|
1939
1939
|
};
|
|
1940
1940
|
protoOf(TypeRefImpl).castToTruth = function () {
|
|
1941
|
-
return this.
|
|
1941
|
+
return this.e53_1.castToTruth();
|
|
1942
1942
|
};
|
|
1943
1943
|
protoOf(TypeRefImpl).castToTuple = function () {
|
|
1944
|
-
return this.
|
|
1944
|
+
return this.e53_1.castToTuple();
|
|
1945
1945
|
};
|
|
1946
1946
|
protoOf(TypeRefImpl).castToVar = function () {
|
|
1947
|
-
return this.
|
|
1947
|
+
return this.e53_1.castToVar();
|
|
1948
1948
|
};
|
|
1949
1949
|
protoOf(TypeRefImpl).asClause = function () {
|
|
1950
|
-
return this.
|
|
1950
|
+
return this.e53_1.asClause();
|
|
1951
1951
|
};
|
|
1952
1952
|
protoOf(TypeRefImpl).asCons = function () {
|
|
1953
|
-
return this.
|
|
1953
|
+
return this.e53_1.asCons();
|
|
1954
1954
|
};
|
|
1955
1955
|
protoOf(TypeRefImpl).asDirective = function () {
|
|
1956
|
-
return this.
|
|
1956
|
+
return this.e53_1.asDirective();
|
|
1957
1957
|
};
|
|
1958
1958
|
protoOf(TypeRefImpl).asEmptyList = function () {
|
|
1959
|
-
return this.
|
|
1959
|
+
return this.e53_1.asEmptyList();
|
|
1960
1960
|
};
|
|
1961
1961
|
protoOf(TypeRefImpl).asEmptyBlock = function () {
|
|
1962
|
-
return this.
|
|
1962
|
+
return this.e53_1.asEmptyBlock();
|
|
1963
1963
|
};
|
|
1964
1964
|
protoOf(TypeRefImpl).asFact = function () {
|
|
1965
|
-
return this.
|
|
1965
|
+
return this.e53_1.asFact();
|
|
1966
1966
|
};
|
|
1967
1967
|
protoOf(TypeRefImpl).asIndicator = function () {
|
|
1968
|
-
return this.
|
|
1968
|
+
return this.e53_1.asIndicator();
|
|
1969
1969
|
};
|
|
1970
1970
|
protoOf(TypeRefImpl).asInteger = function () {
|
|
1971
|
-
return this.
|
|
1971
|
+
return this.e53_1.asInteger();
|
|
1972
1972
|
};
|
|
1973
1973
|
protoOf(TypeRefImpl).asList = function () {
|
|
1974
|
-
return this.
|
|
1974
|
+
return this.e53_1.asList();
|
|
1975
1975
|
};
|
|
1976
1976
|
protoOf(TypeRefImpl).asNumeric = function () {
|
|
1977
|
-
return this.
|
|
1977
|
+
return this.e53_1.asNumeric();
|
|
1978
1978
|
};
|
|
1979
1979
|
protoOf(TypeRefImpl).asReal = function () {
|
|
1980
|
-
return this.
|
|
1980
|
+
return this.e53_1.asReal();
|
|
1981
1981
|
};
|
|
1982
1982
|
protoOf(TypeRefImpl).asRule = function () {
|
|
1983
|
-
return this.
|
|
1983
|
+
return this.e53_1.asRule();
|
|
1984
1984
|
};
|
|
1985
1985
|
protoOf(TypeRefImpl).asBlock = function () {
|
|
1986
|
-
return this.
|
|
1986
|
+
return this.e53_1.asBlock();
|
|
1987
1987
|
};
|
|
1988
1988
|
protoOf(TypeRefImpl).asRecursive = function () {
|
|
1989
|
-
return this.
|
|
1989
|
+
return this.e53_1.asRecursive();
|
|
1990
1990
|
};
|
|
1991
1991
|
protoOf(TypeRefImpl).asTerm = function () {
|
|
1992
|
-
return this.
|
|
1992
|
+
return this.e53_1.asTerm();
|
|
1993
1993
|
};
|
|
1994
1994
|
protoOf(TypeRefImpl).asTruth = function () {
|
|
1995
|
-
return this.
|
|
1995
|
+
return this.e53_1.asTruth();
|
|
1996
1996
|
};
|
|
1997
1997
|
protoOf(TypeRefImpl).asTuple = function () {
|
|
1998
|
-
return this.
|
|
1998
|
+
return this.e53_1.asTuple();
|
|
1999
1999
|
};
|
|
2000
2000
|
protoOf(TypeRefImpl).asVar = function () {
|
|
2001
|
-
return this.
|
|
2001
|
+
return this.e53_1.asVar();
|
|
2002
2002
|
};
|
|
2003
2003
|
protoOf(TypeRefImpl).hashCode = function () {
|
|
2004
|
-
return this.
|
|
2004
|
+
return this.e53_1.hashCode();
|
|
2005
2005
|
};
|
|
2006
2006
|
protoOf(TypeRefImpl).toString = function () {
|
|
2007
|
-
return this.
|
|
2007
|
+
return this.e53_1.toString();
|
|
2008
|
+
};
|
|
2009
|
+
protoOf(TypeRefImpl).tx = function () {
|
|
2010
|
+
return this.e53_1.tx();
|
|
2008
2011
|
};
|
|
2009
2012
|
protoOf(TypeRefImpl).ux = function () {
|
|
2010
|
-
return this.
|
|
2013
|
+
return this.e53_1.ux();
|
|
2011
2014
|
};
|
|
2012
2015
|
protoOf(TypeRefImpl).vx = function () {
|
|
2013
|
-
return this.
|
|
2016
|
+
return this.e53_1.vx();
|
|
2014
2017
|
};
|
|
2015
|
-
protoOf(TypeRefImpl).
|
|
2016
|
-
return this.
|
|
2018
|
+
protoOf(TypeRefImpl).xx = function () {
|
|
2019
|
+
return this.e53_1.xx();
|
|
2017
2020
|
};
|
|
2018
2021
|
protoOf(TypeRefImpl).yx = function () {
|
|
2019
|
-
return this.
|
|
2022
|
+
return this.e53_1.yx();
|
|
2020
2023
|
};
|
|
2021
2024
|
protoOf(TypeRefImpl).zx = function () {
|
|
2022
|
-
return this.
|
|
2023
|
-
};
|
|
2024
|
-
protoOf(TypeRefImpl).ay = function () {
|
|
2025
|
-
return this.t52_1.ay();
|
|
2025
|
+
return this.e53_1.zx();
|
|
2026
2026
|
};
|
|
2027
2027
|
protoOf(TypeRefImpl).getTag = function (name) {
|
|
2028
|
-
return this.
|
|
2028
|
+
return this.e53_1.getTag(name);
|
|
2029
2029
|
};
|
|
2030
2030
|
protoOf(TypeRefImpl).resetTags = function (tags) {
|
|
2031
|
-
return this.
|
|
2031
|
+
return this.e53_1.resetTags(tags);
|
|
2032
2032
|
};
|
|
2033
2033
|
protoOf(TypeRefImpl).containsTag = function (name) {
|
|
2034
|
-
return this.
|
|
2034
|
+
return this.e53_1.containsTag(name);
|
|
2035
2035
|
};
|
|
2036
|
-
protoOf(TypeRefImpl).
|
|
2037
|
-
return this.
|
|
2036
|
+
protoOf(TypeRefImpl).cu = function () {
|
|
2037
|
+
return this.e53_1.cu();
|
|
2038
2038
|
};
|
|
2039
|
-
protoOf(TypeRefImpl).
|
|
2040
|
-
return this.
|
|
2039
|
+
protoOf(TypeRefImpl).by = function () {
|
|
2040
|
+
return this.e53_1.by();
|
|
2041
2041
|
};
|
|
2042
2042
|
function actuallyInvoke($this, $receiver, ref, method, resultTerm) {
|
|
2043
|
-
var result = ref.
|
|
2043
|
+
var result = ref.n51(get_termToObjectConverter($receiver), method.xw(), method.yw());
|
|
2044
2044
|
var tmp;
|
|
2045
2045
|
if (result instanceof Value) {
|
|
2046
|
-
tmp = Companion_getInstance_7().
|
|
2046
|
+
tmp = Companion_getInstance_7().q2l($receiver, resultTerm, $this.h53(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).m2v = function (_this__u8e3s4, first, second, third) {
|
|
2056
|
+
Companion_getInstance_7().a2m(_this__u8e3s4, 0);
|
|
2057
|
+
Companion_getInstance_7().a2m(_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.u52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2080
2080
|
} else {
|
|
2081
2081
|
if ($p instanceof ResolutionException) {
|
|
2082
2082
|
var e_0 = $p;
|
|
@@ -2094,22 +2094,21 @@
|
|
|
2094
2094
|
}
|
|
2095
2095
|
return tmp$ret$0;
|
|
2096
2096
|
};
|
|
2097
|
-
protoOf(AbstractInvoke).
|
|
2098
|
-
return this.
|
|
2097
|
+
protoOf(AbstractInvoke).b2o = function (_this__u8e3s4, first, second, third) {
|
|
2098
|
+
return this.m2v(_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.k52(it);
|
|
2103
2103
|
};
|
|
2104
2104
|
}
|
|
2105
2105
|
function AbstractIterableItems$computeOneSubstitution$lambda_0(it) {
|
|
2106
|
-
return Companion_getInstance_11().
|
|
2106
|
+
return Companion_getInstance_11().w51_1.b52(it);
|
|
2107
2107
|
}
|
|
2108
|
-
function AbstractIterableItems(iterable
|
|
2108
|
+
function AbstractIterableItems(iterable) {
|
|
2109
2109
|
Functional_0.call(this, iterable + '_items');
|
|
2110
|
-
this.y52_1 = target;
|
|
2111
2110
|
}
|
|
2112
|
-
protoOf(AbstractIterableItems).
|
|
2111
|
+
protoOf(AbstractIterableItems).o2w = function (_this__u8e3s4, first, second) {
|
|
2113
2112
|
var tmp;
|
|
2114
2113
|
var tmp_0;
|
|
2115
2114
|
if (isInterface(first, Var)) {
|
|
@@ -2119,58 +2118,58 @@
|
|
|
2119
2118
|
}
|
|
2120
2119
|
if (tmp_0) {
|
|
2121
2120
|
// Inline function 'kotlin.let' call
|
|
2122
|
-
Companion_getInstance_7().
|
|
2121
|
+
Companion_getInstance_7().t2k(_this__u8e3s4);
|
|
2123
2122
|
tmp = Companion_getInstance_6().failed();
|
|
2124
2123
|
} else {
|
|
2125
2124
|
if (isInterface(second, List)) {
|
|
2126
2125
|
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().
|
|
2126
|
+
var tmp_1 = second.bv();
|
|
2127
|
+
var items = this.j53(map(tmp_1, AbstractIterableItems$computeOneSubstitution$lambda(converter)));
|
|
2128
|
+
var objectRef = Companion_getInstance_10().v51(items);
|
|
2129
|
+
tmp = Companion_getInstance_7().q2l(_this__u8e3s4, first, objectRef);
|
|
2131
2130
|
} else {
|
|
2132
2131
|
if (isInterface(first, ObjectRef)) {
|
|
2133
|
-
var obj = first.
|
|
2132
|
+
var obj = first.m51();
|
|
2134
2133
|
var tmp_2;
|
|
2135
|
-
if (this.
|
|
2136
|
-
var tmp_3 = this.
|
|
2134
|
+
if (this.k53(obj)) {
|
|
2135
|
+
var tmp_3 = this.l53(!(obj == null) ? obj : THROW_CCE());
|
|
2137
2136
|
var items_0 = map(tmp_3, AbstractIterableItems$computeOneSubstitution$lambda_0);
|
|
2138
|
-
tmp_2 = Companion_getInstance_7().
|
|
2137
|
+
tmp_2 = Companion_getInstance_7().q2l(_this__u8e3s4, second, Companion_instance_5.ofSequence(items_0));
|
|
2139
2138
|
} else {
|
|
2140
2139
|
tmp_2 = Companion_getInstance_6().failed();
|
|
2141
2140
|
}
|
|
2142
2141
|
tmp = tmp_2;
|
|
2143
2142
|
} else {
|
|
2144
|
-
throw Companion_instance_1.
|
|
2143
|
+
throw Companion_instance_1.j2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_OBJECT_REFERENCE_getInstance(), first, 0);
|
|
2145
2144
|
}
|
|
2146
2145
|
}
|
|
2147
2146
|
}
|
|
2148
2147
|
return tmp;
|
|
2149
2148
|
};
|
|
2150
|
-
protoOf(AbstractIterableItems).
|
|
2151
|
-
return this.
|
|
2149
|
+
protoOf(AbstractIterableItems).e2l = function (_this__u8e3s4, first, second) {
|
|
2150
|
+
return this.o2w(_this__u8e3s4, first, second);
|
|
2152
2151
|
};
|
|
2153
2152
|
function ArrayItems() {
|
|
2154
2153
|
ArrayItems_instance = this;
|
|
2155
|
-
AbstractIterableItems.call(this, 'array'
|
|
2156
|
-
this.
|
|
2154
|
+
AbstractIterableItems.call(this, 'array');
|
|
2155
|
+
this.n53_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
2156
|
}
|
|
2158
2157
|
protoOf(ArrayItems).i1x = function () {
|
|
2159
|
-
return this.
|
|
2158
|
+
return this.n53_1;
|
|
2160
2159
|
};
|
|
2161
|
-
protoOf(ArrayItems).
|
|
2160
|
+
protoOf(ArrayItems).j53 = function (_this__u8e3s4) {
|
|
2162
2161
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2163
2162
|
var this_0 = toList(_this__u8e3s4);
|
|
2164
2163
|
return copyToArray(this_0);
|
|
2165
2164
|
};
|
|
2166
|
-
protoOf(ArrayItems).
|
|
2165
|
+
protoOf(ArrayItems).k53 = function (_this__u8e3s4) {
|
|
2167
2166
|
return !(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false;
|
|
2168
2167
|
};
|
|
2169
|
-
protoOf(ArrayItems).
|
|
2168
|
+
protoOf(ArrayItems).o53 = function (_this__u8e3s4) {
|
|
2170
2169
|
return asSequence_0(_this__u8e3s4);
|
|
2171
2170
|
};
|
|
2172
|
-
protoOf(ArrayItems).
|
|
2173
|
-
return this.
|
|
2171
|
+
protoOf(ArrayItems).l53 = function (_this__u8e3s4) {
|
|
2172
|
+
return this.o53(isArray(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE());
|
|
2174
2173
|
};
|
|
2175
2174
|
var ArrayItems_instance;
|
|
2176
2175
|
function ArrayItems_getInstance() {
|
|
@@ -2181,14 +2180,14 @@
|
|
|
2181
2180
|
function Assign() {
|
|
2182
2181
|
Assign_instance = this;
|
|
2183
2182
|
Predicative.call(this, 'assign');
|
|
2184
|
-
this.
|
|
2183
|
+
this.q53_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
2184
|
}
|
|
2186
2185
|
protoOf(Assign).i1x = function () {
|
|
2187
|
-
return this.
|
|
2186
|
+
return this.q53_1;
|
|
2188
2187
|
};
|
|
2189
|
-
protoOf(Assign).
|
|
2190
|
-
Companion_getInstance_7().
|
|
2191
|
-
Companion_getInstance_7().
|
|
2188
|
+
protoOf(Assign).r53 = function (_this__u8e3s4, first, second, third) {
|
|
2189
|
+
Companion_getInstance_7().f2m(_this__u8e3s4, 0);
|
|
2190
|
+
Companion_getInstance_7().f2m(_this__u8e3s4, 1);
|
|
2192
2191
|
var tmp$ret$0;
|
|
2193
2192
|
$l$block: {
|
|
2194
2193
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2201,19 +2200,19 @@
|
|
|
2201
2200
|
}
|
|
2202
2201
|
var ref = tmp;
|
|
2203
2202
|
var tmp_0;
|
|
2204
|
-
if (Companion_getInstance_7().
|
|
2203
|
+
if (Companion_getInstance_7().r2l(_this__u8e3s4, third, get_DEALIASING_TEMPLATE())) {
|
|
2205
2204
|
tmp_0 = findRefFromAlias(_this__u8e3s4, isInterface(third, Struct) ? third : THROW_CCE());
|
|
2206
2205
|
} else {
|
|
2207
2206
|
tmp_0 = third;
|
|
2208
2207
|
}
|
|
2209
2208
|
var value = tmp_0;
|
|
2210
2209
|
var tmp_1 = get_termToObjectConverter(_this__u8e3s4);
|
|
2211
|
-
tmp$ret$0 = ref.
|
|
2210
|
+
tmp$ret$0 = ref.o51(tmp_1, (isInterface(second, Atom) ? second : THROW_CCE()).f1(), value);
|
|
2212
2211
|
break $l$block;
|
|
2213
2212
|
} catch ($p) {
|
|
2214
2213
|
if ($p instanceof OopException) {
|
|
2215
2214
|
var e = $p;
|
|
2216
|
-
throw e.
|
|
2215
|
+
throw e.u52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2217
2216
|
} else {
|
|
2218
2217
|
if ($p instanceof ResolutionException) {
|
|
2219
2218
|
var e_0 = $p;
|
|
@@ -2231,8 +2230,8 @@
|
|
|
2231
2230
|
}
|
|
2232
2231
|
return tmp$ret$0;
|
|
2233
2232
|
};
|
|
2234
|
-
protoOf(Assign).
|
|
2235
|
-
return this.
|
|
2233
|
+
protoOf(Assign).d2o = function (_this__u8e3s4, first, second, third) {
|
|
2234
|
+
return this.r53(_this__u8e3s4, first, second, third);
|
|
2236
2235
|
};
|
|
2237
2236
|
var Assign_instance;
|
|
2238
2237
|
function Assign_getInstance() {
|
|
@@ -2245,8 +2244,8 @@
|
|
|
2245
2244
|
if (type == null) {
|
|
2246
2245
|
tmp = Companion_getInstance_6().failed();
|
|
2247
2246
|
} else {
|
|
2248
|
-
var casted = get_termToObjectConverter($receiver).
|
|
2249
|
-
tmp = Companion_getInstance_7().
|
|
2247
|
+
var casted = get_termToObjectConverter($receiver).h52(type, term);
|
|
2248
|
+
tmp = Companion_getInstance_7().q2l($receiver, result, Companion_getInstance_10().v51(casted));
|
|
2250
2249
|
}
|
|
2251
2250
|
return tmp;
|
|
2252
2251
|
}
|
|
@@ -2255,7 +2254,7 @@
|
|
|
2255
2254
|
}
|
|
2256
2255
|
function Cast$computeAll$lambda_0($$this$catchingOopExceptions, $first, $third, $second) {
|
|
2257
2256
|
return function (it) {
|
|
2258
|
-
return cast(Cast_getInstance(), $$this$catchingOopExceptions, $first, it, $third).plus(Companion_getInstance_7().
|
|
2257
|
+
return cast(Cast_getInstance(), $$this$catchingOopExceptions, $first, it, $third).plus(Companion_getInstance_7().q2l($$this$catchingOopExceptions, $second, Companion_instance_12.l52(it)));
|
|
2259
2258
|
};
|
|
2260
2259
|
}
|
|
2261
2260
|
function Cast$computeAll$lambda_1($$this$catchingOopExceptions) {
|
|
@@ -2266,24 +2265,23 @@
|
|
|
2266
2265
|
function Cast() {
|
|
2267
2266
|
Cast_instance = this;
|
|
2268
2267
|
TernaryRelation.call(this, 'cast');
|
|
2269
|
-
this.
|
|
2268
|
+
this.t53_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, an atom holding a fully qualified type name (e.g. `'java.lang.Long'`), 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 the type name names no type, or 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(1, 'java.lang.Long', R), object_ref(R).\nyes.\n\n?- cast(abc, $int, R).\nno.\n```";
|
|
2270
2269
|
}
|
|
2271
2270
|
protoOf(Cast).i1x = function () {
|
|
2272
|
-
return this.
|
|
2271
|
+
return this.t53_1;
|
|
2273
2272
|
};
|
|
2274
|
-
protoOf(Cast).
|
|
2273
|
+
protoOf(Cast).u53 = function (_this__u8e3s4, first, second, third) {
|
|
2275
2274
|
var tmp$ret$0;
|
|
2276
2275
|
$l$block: {
|
|
2277
2276
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2278
2277
|
try {
|
|
2279
2278
|
var tmp;
|
|
2280
2279
|
if (isInterface(second, Struct)) {
|
|
2281
|
-
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2282
2280
|
var type = getArgumentAsTypeRef(_this__u8e3s4, 1);
|
|
2283
2281
|
var tmp_0;
|
|
2284
2282
|
try {
|
|
2285
2283
|
var tmp_1 = Cast_getInstance();
|
|
2286
|
-
tmp_0 = sequenceOf(_this__u8e3s4.replyWith(cast(tmp_1, _this__u8e3s4, first, type == null ? null : type.
|
|
2284
|
+
tmp_0 = sequenceOf(_this__u8e3s4.replyWith(cast(tmp_1, _this__u8e3s4, first, type == null ? null : type.w27(), third), VOID, []));
|
|
2287
2285
|
} catch ($p) {
|
|
2288
2286
|
var tmp_2;
|
|
2289
2287
|
if ($p instanceof TermToObjectConversionException) {
|
|
@@ -2297,7 +2295,7 @@
|
|
|
2297
2295
|
tmp = tmp_0;
|
|
2298
2296
|
} else {
|
|
2299
2297
|
if (isInterface(second, Var)) {
|
|
2300
|
-
var tmp_3 = asSequence(get_termToObjectConverter(_this__u8e3s4).
|
|
2298
|
+
var tmp_3 = asSequence(get_termToObjectConverter(_this__u8e3s4).i52(first));
|
|
2301
2299
|
var tmp_4 = distinct(flatMap(tmp_3, Cast$computeAll$lambda));
|
|
2302
2300
|
var tmp_5 = map(tmp_4, Cast$computeAll$lambda_0(_this__u8e3s4, first, third, second));
|
|
2303
2301
|
tmp = map(tmp_5, Cast$computeAll$lambda_1(_this__u8e3s4));
|
|
@@ -2311,7 +2309,7 @@
|
|
|
2311
2309
|
} catch ($p_0) {
|
|
2312
2310
|
if ($p_0 instanceof OopException) {
|
|
2313
2311
|
var e = $p_0;
|
|
2314
|
-
throw e.
|
|
2312
|
+
throw e.u52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2315
2313
|
} else {
|
|
2316
2314
|
if ($p_0 instanceof ResolutionException) {
|
|
2317
2315
|
var e_0 = $p_0;
|
|
@@ -2329,8 +2327,8 @@
|
|
|
2329
2327
|
}
|
|
2330
2328
|
return tmp$ret$0;
|
|
2331
2329
|
};
|
|
2332
|
-
protoOf(Cast).
|
|
2333
|
-
return this.
|
|
2330
|
+
protoOf(Cast).w2n = function (_this__u8e3s4, first, second, third) {
|
|
2331
|
+
return this.u53(_this__u8e3s4, first, second, third);
|
|
2334
2332
|
};
|
|
2335
2333
|
var Cast_instance;
|
|
2336
2334
|
function Cast_getInstance() {
|
|
@@ -2341,12 +2339,12 @@
|
|
|
2341
2339
|
function InvokeMethod() {
|
|
2342
2340
|
InvokeMethod_instance = this;
|
|
2343
2341
|
AbstractInvoke.call(this, 'method');
|
|
2344
|
-
this.
|
|
2342
|
+
this.w53_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
2343
|
}
|
|
2346
2344
|
protoOf(InvokeMethod).i1x = function () {
|
|
2347
|
-
return this.
|
|
2345
|
+
return this.w53_1;
|
|
2348
2346
|
};
|
|
2349
|
-
protoOf(InvokeMethod).
|
|
2347
|
+
protoOf(InvokeMethod).h53 = function (_this__u8e3s4) {
|
|
2350
2348
|
return _this__u8e3s4.t1j();
|
|
2351
2349
|
};
|
|
2352
2350
|
var InvokeMethod_instance;
|
|
@@ -2358,13 +2356,13 @@
|
|
|
2358
2356
|
function InvokeStrict() {
|
|
2359
2357
|
InvokeStrict_instance = this;
|
|
2360
2358
|
AbstractInvoke.call(this, 'strict');
|
|
2361
|
-
this.
|
|
2359
|
+
this.y53_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
2360
|
}
|
|
2363
2361
|
protoOf(InvokeStrict).i1x = function () {
|
|
2364
|
-
return this.
|
|
2362
|
+
return this.y53_1;
|
|
2365
2363
|
};
|
|
2366
|
-
protoOf(InvokeStrict).
|
|
2367
|
-
return _this__u8e3s4.
|
|
2364
|
+
protoOf(InvokeStrict).h53 = function (_this__u8e3s4) {
|
|
2365
|
+
return _this__u8e3s4.c52();
|
|
2368
2366
|
};
|
|
2369
2367
|
var InvokeStrict_instance;
|
|
2370
2368
|
function InvokeStrict_getInstance() {
|
|
@@ -2374,23 +2372,23 @@
|
|
|
2374
2372
|
}
|
|
2375
2373
|
function ListItems() {
|
|
2376
2374
|
ListItems_instance = this;
|
|
2377
|
-
AbstractIterableItems.call(this, 'list'
|
|
2378
|
-
this.
|
|
2375
|
+
AbstractIterableItems.call(this, 'list');
|
|
2376
|
+
this.a54_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
2377
|
}
|
|
2380
2378
|
protoOf(ListItems).i1x = function () {
|
|
2381
|
-
return this.
|
|
2379
|
+
return this.a54_1;
|
|
2382
2380
|
};
|
|
2383
|
-
protoOf(ListItems).
|
|
2381
|
+
protoOf(ListItems).j53 = function (_this__u8e3s4) {
|
|
2384
2382
|
return toList(_this__u8e3s4);
|
|
2385
2383
|
};
|
|
2386
|
-
protoOf(ListItems).
|
|
2384
|
+
protoOf(ListItems).k53 = function (_this__u8e3s4) {
|
|
2387
2385
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtList) : false;
|
|
2388
2386
|
};
|
|
2389
|
-
protoOf(ListItems).
|
|
2387
|
+
protoOf(ListItems).b54 = function (_this__u8e3s4) {
|
|
2390
2388
|
return asSequence(_this__u8e3s4);
|
|
2391
2389
|
};
|
|
2392
|
-
protoOf(ListItems).
|
|
2393
|
-
return this.
|
|
2390
|
+
protoOf(ListItems).l53 = function (_this__u8e3s4) {
|
|
2391
|
+
return this.b54(isInterface(_this__u8e3s4, KtList) ? _this__u8e3s4 : THROW_CCE());
|
|
2394
2392
|
};
|
|
2395
2393
|
var ListItems_instance;
|
|
2396
2394
|
function ListItems_getInstance() {
|
|
@@ -2401,28 +2399,28 @@
|
|
|
2401
2399
|
function NewObject3() {
|
|
2402
2400
|
NewObject3_instance = this;
|
|
2403
2401
|
Functional.call(this, 'new_object');
|
|
2404
|
-
this.
|
|
2402
|
+
this.d54_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
2403
|
}
|
|
2406
2404
|
protoOf(NewObject3).i1x = function () {
|
|
2407
|
-
return this.
|
|
2405
|
+
return this.d54_1;
|
|
2408
2406
|
};
|
|
2409
|
-
protoOf(NewObject3).
|
|
2410
|
-
Companion_getInstance_7().
|
|
2411
|
-
Companion_getInstance_7().
|
|
2407
|
+
protoOf(NewObject3).m2v = function (_this__u8e3s4, first, second, third) {
|
|
2408
|
+
Companion_getInstance_7().a2m(_this__u8e3s4, 0);
|
|
2409
|
+
Companion_getInstance_7().k2m(_this__u8e3s4, 1);
|
|
2412
2410
|
var tmp$ret$0;
|
|
2413
2411
|
$l$block: {
|
|
2414
2412
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2415
2413
|
try {
|
|
2416
2414
|
var type = getArgumentAsTypeRef(_this__u8e3s4, 0);
|
|
2417
2415
|
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.
|
|
2416
|
+
var tmp1_safe_receiver = type == null ? null : type.o52(get_termToObjectConverter(_this__u8e3s4), arguments_0.slice());
|
|
2417
|
+
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.c52();
|
|
2420
2418
|
var tmp;
|
|
2421
2419
|
if (objectReference == null) {
|
|
2422
2420
|
tmp = null;
|
|
2423
2421
|
} else {
|
|
2424
2422
|
// Inline function 'kotlin.let' call
|
|
2425
|
-
tmp = Companion_getInstance_7().
|
|
2423
|
+
tmp = Companion_getInstance_7().q2l(_this__u8e3s4, third, objectReference);
|
|
2426
2424
|
}
|
|
2427
2425
|
var tmp3_elvis_lhs = tmp;
|
|
2428
2426
|
tmp$ret$0 = tmp3_elvis_lhs == null ? Companion_getInstance_6().failed() : tmp3_elvis_lhs;
|
|
@@ -2430,7 +2428,7 @@
|
|
|
2430
2428
|
} catch ($p) {
|
|
2431
2429
|
if ($p instanceof OopException) {
|
|
2432
2430
|
var e = $p;
|
|
2433
|
-
throw e.
|
|
2431
|
+
throw e.u52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2434
2432
|
} else {
|
|
2435
2433
|
if ($p instanceof ResolutionException) {
|
|
2436
2434
|
var e_0 = $p;
|
|
@@ -2448,8 +2446,8 @@
|
|
|
2448
2446
|
}
|
|
2449
2447
|
return tmp$ret$0;
|
|
2450
2448
|
};
|
|
2451
|
-
protoOf(NewObject3).
|
|
2452
|
-
return this.
|
|
2449
|
+
protoOf(NewObject3).b2o = function (_this__u8e3s4, first, second, third) {
|
|
2450
|
+
return this.m2v(_this__u8e3s4, first, second, third);
|
|
2453
2451
|
};
|
|
2454
2452
|
var NewObject3_instance;
|
|
2455
2453
|
function NewObject3_getInstance() {
|
|
@@ -2460,12 +2458,12 @@
|
|
|
2460
2458
|
function NullRef_0() {
|
|
2461
2459
|
NullRef_instance = this;
|
|
2462
2460
|
TypeTester.call(this, 'null_ref');
|
|
2463
|
-
this.
|
|
2461
|
+
this.f54_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
2462
|
}
|
|
2465
2463
|
protoOf(NullRef_0).i1x = function () {
|
|
2466
|
-
return this.
|
|
2464
|
+
return this.f54_1;
|
|
2467
2465
|
};
|
|
2468
|
-
protoOf(NullRef_0).
|
|
2466
|
+
protoOf(NullRef_0).n2o = function (term) {
|
|
2469
2467
|
return isInterface(term, NullRef);
|
|
2470
2468
|
};
|
|
2471
2469
|
var NullRef_instance;
|
|
@@ -2477,12 +2475,12 @@
|
|
|
2477
2475
|
function ObjectRef_0() {
|
|
2478
2476
|
ObjectRef_instance = this;
|
|
2479
2477
|
TypeTester.call(this, 'object_ref');
|
|
2480
|
-
this.
|
|
2478
|
+
this.h54_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
2479
|
}
|
|
2482
2480
|
protoOf(ObjectRef_0).i1x = function () {
|
|
2483
|
-
return this.
|
|
2481
|
+
return this.h54_1;
|
|
2484
2482
|
};
|
|
2485
|
-
protoOf(ObjectRef_0).
|
|
2483
|
+
protoOf(ObjectRef_0).n2o = function (term) {
|
|
2486
2484
|
return isInterface(term, ObjectRef);
|
|
2487
2485
|
};
|
|
2488
2486
|
var ObjectRef_instance;
|
|
@@ -2515,11 +2513,33 @@
|
|
|
2515
2513
|
function get_termToObjectConverter(_this__u8e3s4) {
|
|
2516
2514
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2517
2515
|
var tmp = Companion_getInstance_13();
|
|
2518
|
-
return tmp.
|
|
2516
|
+
return tmp.e52(VOID, _get_termToObjectConverter_$lambda_4bacq4(_this__u8e3s4));
|
|
2517
|
+
}
|
|
2518
|
+
function getArgumentAsTypeRef(_this__u8e3s4, index) {
|
|
2519
|
+
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2520
|
+
Companion_getInstance_7().a2m(_this__u8e3s4, index);
|
|
2521
|
+
var arg = _this__u8e3s4.arguments.t(index);
|
|
2522
|
+
var tmp;
|
|
2523
|
+
if (isInterface(arg, TypeRef)) {
|
|
2524
|
+
tmp = arg;
|
|
2525
|
+
} else {
|
|
2526
|
+
if (isInterface(arg, Atom)) {
|
|
2527
|
+
tmp = Companion_getInstance_14().g52_1.n52(arg.f1());
|
|
2528
|
+
} else {
|
|
2529
|
+
if (isDealiasingExpression(_this__u8e3s4, arg)) {
|
|
2530
|
+
var tmp_0 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
2531
|
+
tmp = isInterface(tmp_0, TypeRef) ? tmp_0 : null;
|
|
2532
|
+
} else {
|
|
2533
|
+
ensuringArgumentIsTypeRef(_this__u8e3s4, index);
|
|
2534
|
+
tmp = null;
|
|
2535
|
+
}
|
|
2536
|
+
}
|
|
2537
|
+
}
|
|
2538
|
+
return tmp;
|
|
2519
2539
|
}
|
|
2520
2540
|
function ensuringArgumentIsTypeRef(_this__u8e3s4, index) {
|
|
2521
2541
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2522
|
-
var arg = _this__u8e3s4.arguments.
|
|
2542
|
+
var arg = _this__u8e3s4.arguments.t(index);
|
|
2523
2543
|
var tmp;
|
|
2524
2544
|
var tmp_0;
|
|
2525
2545
|
if (matchesDealiasingTemplate(_this__u8e3s4, arg)) {
|
|
@@ -2532,44 +2552,22 @@
|
|
|
2532
2552
|
tmp = _this__u8e3s4;
|
|
2533
2553
|
} else {
|
|
2534
2554
|
if (!isInterface(arg, TypeRef)) {
|
|
2535
|
-
throw Companion_instance_1.
|
|
2555
|
+
throw Companion_instance_1.j2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_TYPE_REFERENCE_getInstance(), arg, index);
|
|
2536
2556
|
} else {
|
|
2537
2557
|
tmp = _this__u8e3s4;
|
|
2538
2558
|
}
|
|
2539
2559
|
}
|
|
2540
2560
|
return tmp;
|
|
2541
2561
|
}
|
|
2542
|
-
function getArgumentAsTypeRef(_this__u8e3s4, index) {
|
|
2543
|
-
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2544
|
-
Companion_getInstance_7().s2l(_this__u8e3s4, index);
|
|
2545
|
-
var arg = _this__u8e3s4.arguments.x(index);
|
|
2546
|
-
var tmp;
|
|
2547
|
-
if (isInterface(arg, TypeRef)) {
|
|
2548
|
-
tmp = arg;
|
|
2549
|
-
} else {
|
|
2550
|
-
if (isInterface(arg, Atom)) {
|
|
2551
|
-
tmp = Companion_getInstance_14().v51_1.c52(arg.f1());
|
|
2552
|
-
} else {
|
|
2553
|
-
if (isDealiasingExpression(_this__u8e3s4, arg)) {
|
|
2554
|
-
var tmp_0 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
2555
|
-
tmp = isInterface(tmp_0, TypeRef) ? tmp_0 : null;
|
|
2556
|
-
} else {
|
|
2557
|
-
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2558
|
-
tmp = null;
|
|
2559
|
-
}
|
|
2560
|
-
}
|
|
2561
|
-
}
|
|
2562
|
-
return tmp;
|
|
2563
|
-
}
|
|
2564
2562
|
function ensuringArgumentIsRef(_this__u8e3s4, index) {
|
|
2565
2563
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2566
|
-
var arg = _this__u8e3s4.arguments.
|
|
2564
|
+
var arg = _this__u8e3s4.arguments.t(index);
|
|
2567
2565
|
var tmp;
|
|
2568
2566
|
if (matchesDealiasingTemplate(_this__u8e3s4, arg) && ensureAliasIsRegistered(_this__u8e3s4, arg.castToStruct())) {
|
|
2569
2567
|
tmp = _this__u8e3s4;
|
|
2570
2568
|
} else {
|
|
2571
2569
|
if (!isInterface(arg, Ref)) {
|
|
2572
|
-
throw Companion_instance_1.
|
|
2570
|
+
throw Companion_instance_1.j2b(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_REFERENCE_getInstance(), arg, index);
|
|
2573
2571
|
} else {
|
|
2574
2572
|
tmp = _this__u8e3s4;
|
|
2575
2573
|
}
|
|
@@ -2594,30 +2592,30 @@
|
|
|
2594
2592
|
var tmp0_safe_receiver = firstOrNull(tmp$ret$0);
|
|
2595
2593
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y1y();
|
|
2596
2594
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get(1);
|
|
2597
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2595
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.rx();
|
|
2598
2596
|
}
|
|
2599
|
-
function
|
|
2597
|
+
function isDealiasingExpression(_this__u8e3s4, term) {
|
|
2600
2598
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2601
2599
|
var tmp;
|
|
2600
|
+
var tmp_0;
|
|
2602
2601
|
if (isInterface(term, Struct)) {
|
|
2603
|
-
|
|
2602
|
+
tmp_0 = Companion_getInstance_7().r2l(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2603
|
+
} else {
|
|
2604
|
+
tmp_0 = false;
|
|
2605
|
+
}
|
|
2606
|
+
if (tmp_0) {
|
|
2607
|
+
var tmp_1 = term.yw().t(0);
|
|
2608
|
+
tmp = isInterface(tmp_1, Atom);
|
|
2604
2609
|
} else {
|
|
2605
2610
|
tmp = false;
|
|
2606
2611
|
}
|
|
2607
2612
|
return tmp;
|
|
2608
2613
|
}
|
|
2609
|
-
function
|
|
2614
|
+
function matchesDealiasingTemplate(_this__u8e3s4, term) {
|
|
2610
2615
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2611
2616
|
var tmp;
|
|
2612
|
-
var tmp_0;
|
|
2613
2617
|
if (isInterface(term, Struct)) {
|
|
2614
|
-
|
|
2615
|
-
} else {
|
|
2616
|
-
tmp_0 = false;
|
|
2617
|
-
}
|
|
2618
|
-
if (tmp_0) {
|
|
2619
|
-
var tmp_1 = term.zw().x(0);
|
|
2620
|
-
tmp = isInterface(tmp_1, Atom);
|
|
2618
|
+
tmp = Companion_getInstance_7().r2l(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2621
2619
|
} else {
|
|
2622
2620
|
tmp = false;
|
|
2623
2621
|
}
|
|
@@ -2657,12 +2655,12 @@
|
|
|
2657
2655
|
function Ref_0() {
|
|
2658
2656
|
Ref_instance = this;
|
|
2659
2657
|
TypeTester.call(this, 'ref');
|
|
2660
|
-
this.
|
|
2658
|
+
this.j54_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
2659
|
}
|
|
2662
2660
|
protoOf(Ref_0).i1x = function () {
|
|
2663
|
-
return this.
|
|
2661
|
+
return this.j54_1;
|
|
2664
2662
|
};
|
|
2665
|
-
protoOf(Ref_0).
|
|
2663
|
+
protoOf(Ref_0).n2o = function (term) {
|
|
2666
2664
|
return isInterface(term, Ref);
|
|
2667
2665
|
};
|
|
2668
2666
|
var Ref_instance;
|
|
@@ -2675,29 +2673,29 @@
|
|
|
2675
2673
|
return function ($this$replySuccess) {
|
|
2676
2674
|
var tmp = Companion_instance_15;
|
|
2677
2675
|
var tmp_0 = isInterface($second, Struct) ? $second : THROW_CCE();
|
|
2678
|
-
$this$replySuccess.
|
|
2676
|
+
$this$replySuccess.d2r([tmp.k54(tmp_0, isInterface($first, Ref) ? $first : THROW_CCE()).g1x()]);
|
|
2679
2677
|
return Unit_instance;
|
|
2680
2678
|
};
|
|
2681
2679
|
}
|
|
2682
2680
|
function Register() {
|
|
2683
2681
|
Register_instance = this;
|
|
2684
2682
|
NonBacktrackable.call(this, 'register');
|
|
2685
|
-
this.
|
|
2683
|
+
this.m54_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
2684
|
}
|
|
2687
2685
|
protoOf(Register).i1x = function () {
|
|
2688
|
-
return this.
|
|
2686
|
+
return this.m54_1;
|
|
2689
2687
|
};
|
|
2690
|
-
protoOf(Register).
|
|
2691
|
-
Companion_getInstance_7().
|
|
2688
|
+
protoOf(Register).j2v = function (_this__u8e3s4, first_0, second) {
|
|
2689
|
+
Companion_getInstance_7().t2k(_this__u8e3s4);
|
|
2692
2690
|
ensuringArgumentIsRef(_this__u8e3s4, 0);
|
|
2693
|
-
Companion_getInstance_7().
|
|
2694
|
-
if (!second.
|
|
2695
|
-
throw Companion_instance_6.
|
|
2691
|
+
Companion_getInstance_7().a2m(_this__u8e3s4, 1);
|
|
2692
|
+
if (!second.by()) {
|
|
2693
|
+
throw Companion_instance_6.m29(_this__u8e3s4.context, _this__u8e3s4.signature, first(second.zw()), 0);
|
|
2696
2694
|
}
|
|
2697
2695
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Register$computeOne$lambda(second, first_0));
|
|
2698
2696
|
};
|
|
2699
|
-
protoOf(Register).
|
|
2700
|
-
return this.
|
|
2697
|
+
protoOf(Register).v2k = function (_this__u8e3s4, first, second) {
|
|
2698
|
+
return this.j2v(_this__u8e3s4, first, second);
|
|
2701
2699
|
};
|
|
2702
2700
|
var Register_instance;
|
|
2703
2701
|
function Register_getInstance() {
|
|
@@ -2707,23 +2705,23 @@
|
|
|
2707
2705
|
}
|
|
2708
2706
|
function SetItems() {
|
|
2709
2707
|
SetItems_instance = this;
|
|
2710
|
-
AbstractIterableItems.call(this, 'set'
|
|
2711
|
-
this.
|
|
2708
|
+
AbstractIterableItems.call(this, 'set');
|
|
2709
|
+
this.o54_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
2710
|
}
|
|
2713
2711
|
protoOf(SetItems).i1x = function () {
|
|
2714
|
-
return this.
|
|
2712
|
+
return this.o54_1;
|
|
2715
2713
|
};
|
|
2716
|
-
protoOf(SetItems).
|
|
2714
|
+
protoOf(SetItems).j53 = function (_this__u8e3s4) {
|
|
2717
2715
|
return toSet(_this__u8e3s4);
|
|
2718
2716
|
};
|
|
2719
|
-
protoOf(SetItems).
|
|
2717
|
+
protoOf(SetItems).k53 = function (_this__u8e3s4) {
|
|
2720
2718
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtSet) : false;
|
|
2721
2719
|
};
|
|
2722
|
-
protoOf(SetItems).
|
|
2720
|
+
protoOf(SetItems).p54 = function (_this__u8e3s4) {
|
|
2723
2721
|
return asSequence(_this__u8e3s4);
|
|
2724
2722
|
};
|
|
2725
|
-
protoOf(SetItems).
|
|
2726
|
-
return this.
|
|
2723
|
+
protoOf(SetItems).l53 = function (_this__u8e3s4) {
|
|
2724
|
+
return this.p54(isInterface(_this__u8e3s4, KtSet) ? _this__u8e3s4 : THROW_CCE());
|
|
2727
2725
|
};
|
|
2728
2726
|
var SetItems_instance;
|
|
2729
2727
|
function SetItems_getInstance() {
|
|
@@ -2734,13 +2732,13 @@
|
|
|
2734
2732
|
function Type() {
|
|
2735
2733
|
Type_instance = this;
|
|
2736
2734
|
Functional_0.call(this, 'type');
|
|
2737
|
-
this.
|
|
2738
|
-
this.
|
|
2735
|
+
this.r54_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 fully qualified name of its class, so that the two directions round-trip. 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 = 'java.util.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```";
|
|
2736
|
+
this.s54_1 = Companion_getInstance_14().g52_1;
|
|
2739
2737
|
}
|
|
2740
2738
|
protoOf(Type).i1x = function () {
|
|
2741
|
-
return this.
|
|
2739
|
+
return this.r54_1;
|
|
2742
2740
|
};
|
|
2743
|
-
protoOf(Type).
|
|
2741
|
+
protoOf(Type).o2w = function (_this__u8e3s4, first, second) {
|
|
2744
2742
|
var tmp$ret$0;
|
|
2745
2743
|
$l$block: {
|
|
2746
2744
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2753,31 +2751,31 @@
|
|
|
2753
2751
|
tmp_0 = false;
|
|
2754
2752
|
}
|
|
2755
2753
|
if (tmp_0) {
|
|
2756
|
-
Companion_getInstance_7().
|
|
2754
|
+
Companion_getInstance_7().w2l(_this__u8e3s4, 0);
|
|
2757
2755
|
tmp = Companion_getInstance_6().failed();
|
|
2758
2756
|
} else {
|
|
2759
2757
|
if (isInterface(first, Var)) {
|
|
2760
|
-
Companion_getInstance_7().
|
|
2758
|
+
Companion_getInstance_7().f2m(_this__u8e3s4, 1);
|
|
2761
2759
|
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2762
2760
|
var tmp_1 = Companion_getInstance_7();
|
|
2763
2761
|
var tmp_2 = Companion_getInstance_0();
|
|
2764
|
-
tmp = tmp_1.
|
|
2762
|
+
tmp = tmp_1.q2l(_this__u8e3s4, first, tmp_2.of(get_fullName((isInterface(second, TypeRef) ? second : THROW_CCE()).w27())));
|
|
2765
2763
|
} else {
|
|
2766
2764
|
if (isInterface(second, Var)) {
|
|
2767
|
-
Companion_getInstance_7().
|
|
2768
|
-
var tmp_3 = Type_getInstance().
|
|
2769
|
-
var tmp0_safe_receiver = tmp_3.
|
|
2765
|
+
Companion_getInstance_7().f2m(_this__u8e3s4, 0);
|
|
2766
|
+
var tmp_3 = Type_getInstance().s54_1;
|
|
2767
|
+
var tmp0_safe_receiver = tmp_3.n52((isInterface(first, Atom) ? first : THROW_CCE()).f1());
|
|
2770
2768
|
var tmp_4;
|
|
2771
2769
|
if (tmp0_safe_receiver == null) {
|
|
2772
2770
|
tmp_4 = null;
|
|
2773
2771
|
} else {
|
|
2774
2772
|
// Inline function 'kotlin.let' call
|
|
2775
|
-
tmp_4 = Companion_getInstance_7().
|
|
2773
|
+
tmp_4 = Companion_getInstance_7().q2l(_this__u8e3s4, second, tmp0_safe_receiver);
|
|
2776
2774
|
}
|
|
2777
2775
|
var tmp1_elvis_lhs = tmp_4;
|
|
2778
2776
|
tmp = tmp1_elvis_lhs == null ? Companion_getInstance_6().failed() : tmp1_elvis_lhs;
|
|
2779
2777
|
} else {
|
|
2780
|
-
Companion_getInstance_7().
|
|
2778
|
+
Companion_getInstance_7().f2m(_this__u8e3s4, 0);
|
|
2781
2779
|
tmp = Companion_getInstance_6().failed();
|
|
2782
2780
|
}
|
|
2783
2781
|
}
|
|
@@ -2787,7 +2785,7 @@
|
|
|
2787
2785
|
} catch ($p) {
|
|
2788
2786
|
if ($p instanceof OopException) {
|
|
2789
2787
|
var e = $p;
|
|
2790
|
-
throw e.
|
|
2788
|
+
throw e.u52(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2791
2789
|
} else {
|
|
2792
2790
|
if ($p instanceof ResolutionException) {
|
|
2793
2791
|
var e_0 = $p;
|
|
@@ -2805,8 +2803,8 @@
|
|
|
2805
2803
|
}
|
|
2806
2804
|
return tmp$ret$0;
|
|
2807
2805
|
};
|
|
2808
|
-
protoOf(Type).
|
|
2809
|
-
return this.
|
|
2806
|
+
protoOf(Type).e2l = function (_this__u8e3s4, first, second) {
|
|
2807
|
+
return this.o2w(_this__u8e3s4, first, second);
|
|
2810
2808
|
};
|
|
2811
2809
|
var Type_instance;
|
|
2812
2810
|
function Type_getInstance() {
|
|
@@ -2817,12 +2815,12 @@
|
|
|
2817
2815
|
function TypeRef_0() {
|
|
2818
2816
|
TypeRef_instance = this;
|
|
2819
2817
|
TypeTester.call(this, 'type_ref');
|
|
2820
|
-
this.
|
|
2818
|
+
this.u54_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
2819
|
}
|
|
2822
2820
|
protoOf(TypeRef_0).i1x = function () {
|
|
2823
|
-
return this.
|
|
2821
|
+
return this.u54_1;
|
|
2824
2822
|
};
|
|
2825
|
-
protoOf(TypeRef_0).
|
|
2823
|
+
protoOf(TypeRef_0).n2o = function (term) {
|
|
2826
2824
|
return isInterface(term, TypeRef);
|
|
2827
2825
|
};
|
|
2828
2826
|
var TypeRef_instance;
|
|
@@ -2833,27 +2831,27 @@
|
|
|
2833
2831
|
}
|
|
2834
2832
|
function Unregister$computeOne$lambda($first) {
|
|
2835
2833
|
return function (it) {
|
|
2836
|
-
return it.
|
|
2834
|
+
return it.dz().get(0).equals($first);
|
|
2837
2835
|
};
|
|
2838
2836
|
}
|
|
2839
2837
|
function Unregister$computeOne$lambda_0($toBeRemoved) {
|
|
2840
2838
|
return function ($this$replySuccess) {
|
|
2841
|
-
$this$replySuccess.
|
|
2839
|
+
$this$replySuccess.e2r($toBeRemoved);
|
|
2842
2840
|
return Unit_instance;
|
|
2843
2841
|
};
|
|
2844
2842
|
}
|
|
2845
2843
|
function Unregister() {
|
|
2846
2844
|
Unregister_instance = this;
|
|
2847
2845
|
NonBacktrackable_0.call(this, 'unregister');
|
|
2848
|
-
this.
|
|
2846
|
+
this.w54_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
2847
|
}
|
|
2850
2848
|
protoOf(Unregister).i1x = function () {
|
|
2851
|
-
return this.
|
|
2849
|
+
return this.w54_1;
|
|
2852
2850
|
};
|
|
2853
|
-
protoOf(Unregister).
|
|
2854
|
-
Companion_getInstance_7().
|
|
2855
|
-
if (!first_0.
|
|
2856
|
-
throw Companion_instance_6.
|
|
2851
|
+
protoOf(Unregister).v2u = function (_this__u8e3s4, first_0) {
|
|
2852
|
+
Companion_getInstance_7().a2m(_this__u8e3s4, 0);
|
|
2853
|
+
if (!first_0.by()) {
|
|
2854
|
+
throw Companion_instance_6.m29(_this__u8e3s4.context, _this__u8e3s4.signature, first(first_0.zw()), 0);
|
|
2857
2855
|
}
|
|
2858
2856
|
var pattern = Companion_getInstance_9().of('alias', [first_0, Companion_getInstance_8().anonymous()]);
|
|
2859
2857
|
var tmp = _this__u8e3s4.context.v1x().getByHead(pattern);
|
|
@@ -2866,8 +2864,8 @@
|
|
|
2866
2864
|
}
|
|
2867
2865
|
return tmp_0;
|
|
2868
2866
|
};
|
|
2869
|
-
protoOf(Unregister).
|
|
2870
|
-
return this.
|
|
2867
|
+
protoOf(Unregister).i2o = function (_this__u8e3s4, first) {
|
|
2868
|
+
return this.v2u(_this__u8e3s4, first);
|
|
2871
2869
|
};
|
|
2872
2870
|
var Unregister_instance;
|
|
2873
2871
|
function Unregister_getInstance() {
|
|
@@ -2876,12 +2874,12 @@
|
|
|
2876
2874
|
return Unregister_instance;
|
|
2877
2875
|
}
|
|
2878
2876
|
function Companion_7() {
|
|
2879
|
-
this.
|
|
2877
|
+
this.p51_1 = 'alias';
|
|
2880
2878
|
}
|
|
2881
|
-
protoOf(Companion_7).
|
|
2882
|
-
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.
|
|
2879
|
+
protoOf(Companion_7).q51 = function (alias, type) {
|
|
2880
|
+
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.l52(type));
|
|
2883
2881
|
};
|
|
2884
|
-
protoOf(Companion_7).
|
|
2882
|
+
protoOf(Companion_7).k54 = function (alias, ref) {
|
|
2885
2883
|
return new Alias(alias, ref);
|
|
2886
2884
|
};
|
|
2887
2885
|
var Companion_instance_15;
|
|
@@ -2890,123 +2888,123 @@
|
|
|
2890
2888
|
}
|
|
2891
2889
|
function Alias(alias, ref) {
|
|
2892
2890
|
RuleWrapper_init_$Init$('alias', 2, VOID, this);
|
|
2893
|
-
this.
|
|
2894
|
-
this.
|
|
2895
|
-
this.
|
|
2891
|
+
this.a55_1 = alias;
|
|
2892
|
+
this.b55_1 = ref;
|
|
2893
|
+
this.c55_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 = 'kotlin.String'.\n\n?- alias(nope, R).\nno.\n```";
|
|
2896
2894
|
// Inline function 'kotlin.require' call
|
|
2897
|
-
if (!this.
|
|
2898
|
-
var message = 'Alias must be a ground term, got: ' + this.
|
|
2895
|
+
if (!this.a55_1.by()) {
|
|
2896
|
+
var message = 'Alias must be a ground term, got: ' + this.a55_1.toString();
|
|
2899
2897
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2900
2898
|
}
|
|
2901
2899
|
}
|
|
2902
2900
|
protoOf(Alias).i1x = function () {
|
|
2903
|
-
return this.
|
|
2901
|
+
return this.c55_1;
|
|
2904
2902
|
};
|
|
2905
|
-
protoOf(Alias).
|
|
2906
|
-
return toList(sequenceOf_0([this.
|
|
2903
|
+
protoOf(Alias).o2o = function (_this__u8e3s4) {
|
|
2904
|
+
return toList(sequenceOf_0([this.a55_1, this.b55_1]));
|
|
2907
2905
|
};
|
|
2908
2906
|
function _get_R__7mlo3j($this) {
|
|
2909
2907
|
var tmp = KProperty1;
|
|
2910
|
-
return $this.
|
|
2908
|
+
return $this.h55_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Cast$_get_R_$ref_879xch(), null));
|
|
2911
2909
|
}
|
|
2912
2910
|
function _get_X__7mlo8p($this) {
|
|
2913
2911
|
var tmp = KProperty1;
|
|
2914
|
-
return $this.
|
|
2912
|
+
return $this.i55_1.getValue($this, getPropertyCallableRef('X', 1, tmp, ColonEquals$Cast$_get_X_$ref_5d06zb(), null));
|
|
2915
2913
|
}
|
|
2916
2914
|
function _get_Y__7mlo9k($this) {
|
|
2917
2915
|
var tmp = KProperty1;
|
|
2918
|
-
return $this.
|
|
2916
|
+
return $this.j55_1.getValue($this, getPropertyCallableRef('Y', 1, tmp, ColonEquals$Cast$_get_Y_$ref_4vykl4(), null));
|
|
2919
2917
|
}
|
|
2920
2918
|
function _get_T__7mlo59($this) {
|
|
2921
2919
|
var tmp = KProperty1;
|
|
2922
|
-
return $this.
|
|
2920
|
+
return $this.k55_1.getValue($this, getPropertyCallableRef('T', 1, tmp, ColonEquals$Cast$_get_T_$ref_796ok3(), null));
|
|
2923
2921
|
}
|
|
2924
2922
|
function ColonEquals$Cast$_get_R_$ref_879xch() {
|
|
2925
2923
|
return constructCallableReference(function (p0) {
|
|
2926
2924
|
return _get_R__7mlo3j(p0);
|
|
2927
|
-
}, 1, 0,
|
|
2925
|
+
}, 1, 0, 133);
|
|
2928
2926
|
}
|
|
2929
2927
|
function ColonEquals$Cast$_get_X_$ref_5d06zb() {
|
|
2930
2928
|
return constructCallableReference(function (p0) {
|
|
2931
2929
|
return _get_X__7mlo8p(p0);
|
|
2932
|
-
}, 1, 0,
|
|
2930
|
+
}, 1, 0, 134);
|
|
2933
2931
|
}
|
|
2934
2932
|
function ColonEquals$Cast$_get_Y_$ref_4vykl4() {
|
|
2935
2933
|
return constructCallableReference(function (p0) {
|
|
2936
2934
|
return _get_Y__7mlo9k(p0);
|
|
2937
|
-
}, 1, 0,
|
|
2935
|
+
}, 1, 0, 135);
|
|
2938
2936
|
}
|
|
2939
2937
|
function ColonEquals$Cast$_get_T_$ref_796ok3() {
|
|
2940
2938
|
return constructCallableReference(function (p0) {
|
|
2941
2939
|
return _get_T__7mlo59(p0);
|
|
2942
|
-
}, 1, 0,
|
|
2940
|
+
}, 1, 0, 136);
|
|
2943
2941
|
}
|
|
2944
2942
|
function _get_R__7mlo3j_0($this) {
|
|
2945
2943
|
var tmp = KProperty1;
|
|
2946
|
-
return $this.
|
|
2944
|
+
return $this.p55_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Invocation$_get_R_$ref_tlu5kw(), null));
|
|
2947
2945
|
}
|
|
2948
2946
|
function _get_M__7mlnz8($this) {
|
|
2949
2947
|
var tmp = KProperty1;
|
|
2950
|
-
return $this.
|
|
2948
|
+
return $this.q55_1.getValue($this, getPropertyCallableRef('M', 1, tmp, ColonEquals$Invocation$_get_M_$ref_vz29jv(), null));
|
|
2951
2949
|
}
|
|
2952
2950
|
function ColonEquals$Invocation$_get_R_$ref_tlu5kw() {
|
|
2953
2951
|
return constructCallableReference(function (p0) {
|
|
2954
2952
|
return _get_R__7mlo3j_0(p0);
|
|
2955
|
-
}, 1, 0,
|
|
2953
|
+
}, 1, 0, 137);
|
|
2956
2954
|
}
|
|
2957
2955
|
function ColonEquals$Invocation$_get_M_$ref_vz29jv() {
|
|
2958
2956
|
return constructCallableReference(function (p0) {
|
|
2959
2957
|
return _get_M__7mlnz8(p0);
|
|
2960
|
-
}, 1, 0,
|
|
2958
|
+
}, 1, 0, 138);
|
|
2961
2959
|
}
|
|
2962
2960
|
function _get_C__7mlnqm($this) {
|
|
2963
2961
|
var tmp = KProperty1;
|
|
2964
|
-
return $this.
|
|
2962
|
+
return $this.v55_1.getValue($this, getPropertyCallableRef('C', 1, tmp, ColonEquals$Assignment$_get_C_$ref_kw9fvw(), null));
|
|
2965
2963
|
}
|
|
2966
2964
|
function _get_P__7mlo1t($this) {
|
|
2967
2965
|
var tmp = KProperty1;
|
|
2968
|
-
return $this.
|
|
2966
|
+
return $this.w55_1.getValue($this, getPropertyCallableRef('P', 1, tmp, ColonEquals$Assignment$_get_P_$ref_r1uj0f(), null));
|
|
2969
2967
|
}
|
|
2970
2968
|
function _get_R__7mlo3j_1($this) {
|
|
2971
2969
|
var tmp = KProperty1;
|
|
2972
|
-
return $this.
|
|
2970
|
+
return $this.x55_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Assignment$_get_R_$ref_rzxrst(), null));
|
|
2973
2971
|
}
|
|
2974
2972
|
function _get_V__7mlo6z($this) {
|
|
2975
2973
|
var tmp = KProperty1;
|
|
2976
|
-
return $this.
|
|
2974
|
+
return $this.y55_1.getValue($this, getPropertyCallableRef('V', 1, tmp, ColonEquals$Assignment$_get_V_$ref_tw49dl(), null));
|
|
2977
2975
|
}
|
|
2978
2976
|
function ColonEquals$Assignment$_get_C_$ref_kw9fvw() {
|
|
2979
2977
|
return constructCallableReference(function (p0) {
|
|
2980
2978
|
return _get_C__7mlnqm(p0);
|
|
2981
|
-
}, 1, 0,
|
|
2979
|
+
}, 1, 0, 139);
|
|
2982
2980
|
}
|
|
2983
2981
|
function ColonEquals$Assignment$_get_P_$ref_r1uj0f() {
|
|
2984
2982
|
return constructCallableReference(function (p0) {
|
|
2985
2983
|
return _get_P__7mlo1t(p0);
|
|
2986
|
-
}, 1, 0,
|
|
2984
|
+
}, 1, 0, 140);
|
|
2987
2985
|
}
|
|
2988
2986
|
function ColonEquals$Assignment$_get_R_$ref_rzxrst() {
|
|
2989
2987
|
return constructCallableReference(function (p0) {
|
|
2990
2988
|
return _get_R__7mlo3j_1(p0);
|
|
2991
|
-
}, 1, 0,
|
|
2989
|
+
}, 1, 0, 141);
|
|
2992
2990
|
}
|
|
2993
2991
|
function ColonEquals$Assignment$_get_V_$ref_tw49dl() {
|
|
2994
2992
|
return constructCallableReference(function (p0) {
|
|
2995
2993
|
return _get_V__7mlo6z(p0);
|
|
2996
|
-
}, 1, 0,
|
|
2994
|
+
}, 1, 0, 142);
|
|
2997
2995
|
}
|
|
2998
2996
|
function Cast_0() {
|
|
2999
2997
|
Cast_instance_0 = this;
|
|
3000
2998
|
ColonEquals.call(this);
|
|
3001
|
-
this.
|
|
3002
|
-
this.
|
|
3003
|
-
this.
|
|
3004
|
-
this.
|
|
2999
|
+
this.h55_1 = this.z21_1;
|
|
3000
|
+
this.i55_1 = this.z21_1;
|
|
3001
|
+
this.j55_1 = this.z21_1;
|
|
3002
|
+
this.k55_1 = this.z21_1;
|
|
3005
3003
|
}
|
|
3006
|
-
protoOf(Cast_0).
|
|
3004
|
+
protoOf(Cast_0).o2o = function (_this__u8e3s4) {
|
|
3007
3005
|
return listOf([_get_R__7mlo3j(this), _this__u8e3s4.structOf('as', [_get_X__7mlo8p(this), _get_T__7mlo59(this)])]);
|
|
3008
3006
|
};
|
|
3009
|
-
protoOf(Cast_0).
|
|
3007
|
+
protoOf(Cast_0).p2o = function (_this__u8e3s4) {
|
|
3010
3008
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3011
3009
|
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
3012
3010
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j(this)]);
|
|
@@ -3025,13 +3023,13 @@
|
|
|
3025
3023
|
function Invocation() {
|
|
3026
3024
|
Invocation_instance = this;
|
|
3027
3025
|
ColonEquals.call(this);
|
|
3028
|
-
this.
|
|
3029
|
-
this.
|
|
3026
|
+
this.p55_1 = this.z21_1;
|
|
3027
|
+
this.q55_1 = this.z21_1;
|
|
3030
3028
|
}
|
|
3031
|
-
protoOf(Invocation).
|
|
3029
|
+
protoOf(Invocation).o2o = function (_this__u8e3s4) {
|
|
3032
3030
|
return listOf([_get_R__7mlo3j_0(this), _get_M__7mlnz8(this)]);
|
|
3033
3031
|
};
|
|
3034
|
-
protoOf(Invocation).
|
|
3032
|
+
protoOf(Invocation).p2o = function (_this__u8e3s4) {
|
|
3035
3033
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3036
3034
|
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
3037
3035
|
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 +3043,15 @@
|
|
|
3045
3043
|
function Assignment() {
|
|
3046
3044
|
Assignment_instance = this;
|
|
3047
3045
|
ColonEquals.call(this);
|
|
3048
|
-
this.
|
|
3049
|
-
this.
|
|
3050
|
-
this.
|
|
3051
|
-
this.
|
|
3046
|
+
this.v55_1 = this.z21_1;
|
|
3047
|
+
this.w55_1 = this.z21_1;
|
|
3048
|
+
this.x55_1 = this.z21_1;
|
|
3049
|
+
this.y55_1 = this.z21_1;
|
|
3052
3050
|
}
|
|
3053
|
-
protoOf(Assignment).
|
|
3051
|
+
protoOf(Assignment).o2o = function (_this__u8e3s4) {
|
|
3054
3052
|
return listOf([_get_C__7mlnqm(this), _get_V__7mlo6z(this)]);
|
|
3055
3053
|
};
|
|
3056
|
-
protoOf(Assignment).
|
|
3054
|
+
protoOf(Assignment).p2o = function (_this__u8e3s4) {
|
|
3057
3055
|
var tmp = _this__u8e3s4.structOf('property_reduce', [_get_C__7mlnqm(this), _get_R__7mlo3j_1(this), _get_P__7mlo1t(this)]);
|
|
3058
3056
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3059
3057
|
var tmp$ret$0 = Assign_getInstance().signature.name;
|
|
@@ -3067,44 +3065,44 @@
|
|
|
3067
3065
|
}
|
|
3068
3066
|
function ColonEquals() {
|
|
3069
3067
|
RuleWrapper_init_$Init$(':=', 2, VOID, this);
|
|
3070
|
-
this.
|
|
3068
|
+
this.c56_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, a fully qualified type name such as `'java.lang.Long'`, 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
3069
|
}
|
|
3072
3070
|
protoOf(ColonEquals).i1x = function () {
|
|
3073
|
-
return this.
|
|
3071
|
+
return this.c56_1;
|
|
3074
3072
|
};
|
|
3075
3073
|
function _get_Method__a3idyi($this) {
|
|
3076
3074
|
var tmp = KProperty1;
|
|
3077
|
-
return $this.
|
|
3075
|
+
return $this.h56_1.getValue($this, getPropertyCallableRef('Method', 1, tmp, Dot$_get_Method_$ref_b7a4zw(), null));
|
|
3078
3076
|
}
|
|
3079
3077
|
function _get_Ref__e5vi4e($this) {
|
|
3080
3078
|
var tmp = KProperty1;
|
|
3081
|
-
return $this.
|
|
3079
|
+
return $this.i56_1.getValue($this, getPropertyCallableRef('Ref', 1, tmp, Dot$_get_Ref_$ref_33uzaq(), null));
|
|
3082
3080
|
}
|
|
3083
3081
|
function Dot$_get_Method_$ref_b7a4zw() {
|
|
3084
3082
|
return constructCallableReference(function (p0) {
|
|
3085
3083
|
return _get_Method__a3idyi(p0);
|
|
3086
|
-
}, 1, 0,
|
|
3084
|
+
}, 1, 0, 143);
|
|
3087
3085
|
}
|
|
3088
3086
|
function Dot$_get_Ref_$ref_33uzaq() {
|
|
3089
3087
|
return constructCallableReference(function (p0) {
|
|
3090
3088
|
return _get_Ref__e5vi4e(p0);
|
|
3091
|
-
}, 1, 0,
|
|
3089
|
+
}, 1, 0, 144);
|
|
3092
3090
|
}
|
|
3093
3091
|
function Dot() {
|
|
3094
3092
|
Dot_instance = this;
|
|
3095
3093
|
RuleWrapper_init_$Init$('.', 2, VOID, this);
|
|
3096
|
-
this.
|
|
3097
|
-
this.
|
|
3098
|
-
this.
|
|
3094
|
+
this.g56_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```";
|
|
3095
|
+
this.h56_1 = this.z21_1;
|
|
3096
|
+
this.i56_1 = this.z21_1;
|
|
3099
3097
|
}
|
|
3100
3098
|
protoOf(Dot).i1x = function () {
|
|
3101
|
-
return this.
|
|
3099
|
+
return this.g56_1;
|
|
3102
3100
|
};
|
|
3103
|
-
protoOf(Dot).
|
|
3101
|
+
protoOf(Dot).o2o = function (_this__u8e3s4) {
|
|
3104
3102
|
return listOf([_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)]);
|
|
3105
3103
|
};
|
|
3106
|
-
protoOf(Dot).
|
|
3107
|
-
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.
|
|
3104
|
+
protoOf(Dot).p2o = function (_this__u8e3s4) {
|
|
3105
|
+
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.m12()]);
|
|
3108
3106
|
};
|
|
3109
3107
|
var Dot_instance;
|
|
3110
3108
|
function Dot_getInstance() {
|
|
@@ -3114,61 +3112,61 @@
|
|
|
3114
3112
|
}
|
|
3115
3113
|
function _get_P__7mlo1t_0($this) {
|
|
3116
3114
|
var tmp = KProperty1;
|
|
3117
|
-
return $this.
|
|
3115
|
+
return $this.o56_1.getValue($this, getPropertyCallableRef('P', 1, tmp, FluentReduce$Recursive$_get_P_$ref_qmyw78(), null));
|
|
3118
3116
|
}
|
|
3119
3117
|
function _get_M__7mlnz8_0($this) {
|
|
3120
3118
|
var tmp = KProperty1;
|
|
3121
|
-
return $this.
|
|
3119
|
+
return $this.p56_1.getValue($this, getPropertyCallableRef('M', 1, tmp, FluentReduce$Recursive$_get_M_$ref_s23rdt(), null));
|
|
3122
3120
|
}
|
|
3123
3121
|
function _get_P1__ndbjd6($this) {
|
|
3124
3122
|
var tmp = KProperty1;
|
|
3125
|
-
return $this.
|
|
3123
|
+
return $this.q56_1.getValue($this, getPropertyCallableRef('P1', 1, tmp, FluentReduce$Recursive$_get_P1_$ref_ksmyi5(), null));
|
|
3126
3124
|
}
|
|
3127
3125
|
function _get_X__7mlo8p_0($this) {
|
|
3128
3126
|
var tmp = KProperty1;
|
|
3129
|
-
return $this.
|
|
3127
|
+
return $this.r56_1.getValue($this, getPropertyCallableRef('X', 1, tmp, FluentReduce$Recursive$_get_X_$ref_mulx1o(), null));
|
|
3130
3128
|
}
|
|
3131
3129
|
function FluentReduce$Recursive$_get_P_$ref_qmyw78() {
|
|
3132
3130
|
return constructCallableReference(function (p0) {
|
|
3133
3131
|
return _get_P__7mlo1t_0(p0);
|
|
3134
|
-
}, 1, 0,
|
|
3132
|
+
}, 1, 0, 145);
|
|
3135
3133
|
}
|
|
3136
3134
|
function FluentReduce$Recursive$_get_M_$ref_s23rdt() {
|
|
3137
3135
|
return constructCallableReference(function (p0) {
|
|
3138
3136
|
return _get_M__7mlnz8_0(p0);
|
|
3139
|
-
}, 1, 0,
|
|
3137
|
+
}, 1, 0, 146);
|
|
3140
3138
|
}
|
|
3141
3139
|
function FluentReduce$Recursive$_get_P1_$ref_ksmyi5() {
|
|
3142
3140
|
return constructCallableReference(function (p0) {
|
|
3143
3141
|
return _get_P1__ndbjd6(p0);
|
|
3144
|
-
}, 1, 0,
|
|
3142
|
+
}, 1, 0, 147);
|
|
3145
3143
|
}
|
|
3146
3144
|
function FluentReduce$Recursive$_get_X_$ref_mulx1o() {
|
|
3147
3145
|
return constructCallableReference(function (p0) {
|
|
3148
3146
|
return _get_X__7mlo8p_0(p0);
|
|
3149
|
-
}, 1, 0,
|
|
3147
|
+
}, 1, 0, 148);
|
|
3150
3148
|
}
|
|
3151
3149
|
function _get_P__7mlo1t_1($this) {
|
|
3152
3150
|
var tmp = KProperty1;
|
|
3153
|
-
return $this.
|
|
3151
|
+
return $this.x56_1.getValue($this, getPropertyCallableRef('P', 1, tmp, FluentReduce$Couple$_get_P_$ref_o7vzn6(), null));
|
|
3154
3152
|
}
|
|
3155
3153
|
function _get_M__7mlnz8_1($this) {
|
|
3156
3154
|
var tmp = KProperty1;
|
|
3157
|
-
return $this.
|
|
3155
|
+
return $this.y56_1.getValue($this, getPropertyCallableRef('M', 1, tmp, FluentReduce$Couple$_get_M_$ref_pn0utr(), null));
|
|
3158
3156
|
}
|
|
3159
3157
|
function FluentReduce$Couple$_get_P_$ref_o7vzn6() {
|
|
3160
3158
|
return constructCallableReference(function (p0) {
|
|
3161
3159
|
return _get_P__7mlo1t_1(p0);
|
|
3162
|
-
}, 1, 0,
|
|
3160
|
+
}, 1, 0, 149);
|
|
3163
3161
|
}
|
|
3164
3162
|
function FluentReduce$Couple$_get_M_$ref_pn0utr() {
|
|
3165
3163
|
return constructCallableReference(function (p0) {
|
|
3166
3164
|
return _get_M__7mlnz8_1(p0);
|
|
3167
|
-
}, 1, 0,
|
|
3165
|
+
}, 1, 0, 150);
|
|
3168
3166
|
}
|
|
3169
3167
|
function Companion_8() {
|
|
3170
|
-
this.
|
|
3171
|
-
this.
|
|
3168
|
+
this.z56_1 = 'fluent_reduce';
|
|
3169
|
+
this.a57_1 = 2;
|
|
3172
3170
|
}
|
|
3173
3171
|
var Companion_instance_16;
|
|
3174
3172
|
function Companion_getInstance_19() {
|
|
@@ -3177,19 +3175,19 @@
|
|
|
3177
3175
|
function Recursive() {
|
|
3178
3176
|
Recursive_instance = this;
|
|
3179
3177
|
FluentReduce.call(this);
|
|
3180
|
-
this.
|
|
3181
|
-
this.
|
|
3182
|
-
this.
|
|
3183
|
-
this.
|
|
3178
|
+
this.o56_1 = this.z21_1;
|
|
3179
|
+
this.p56_1 = this.z21_1;
|
|
3180
|
+
this.q56_1 = this.z21_1;
|
|
3181
|
+
this.r56_1 = this.z21_1;
|
|
3184
3182
|
}
|
|
3185
|
-
protoOf(Recursive).
|
|
3186
|
-
return listOf([_this__u8e3s4.
|
|
3183
|
+
protoOf(Recursive).o2o = function (_this__u8e3s4) {
|
|
3184
|
+
return listOf([_this__u8e3s4.n12([_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this)], _get_X__7mlo8p_0(this)), this.g57()]);
|
|
3187
3185
|
};
|
|
3188
|
-
protoOf(Recursive).
|
|
3186
|
+
protoOf(Recursive).p2o = function (_this__u8e3s4) {
|
|
3189
3187
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3190
3188
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3191
3189
|
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.
|
|
3190
|
+
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.g57()])]);
|
|
3193
3191
|
};
|
|
3194
3192
|
var Recursive_instance;
|
|
3195
3193
|
function Recursive_getInstance() {
|
|
@@ -3200,17 +3198,17 @@
|
|
|
3200
3198
|
function Couple() {
|
|
3201
3199
|
Couple_instance = this;
|
|
3202
3200
|
FluentReduce.call(this);
|
|
3203
|
-
this.
|
|
3204
|
-
this.
|
|
3201
|
+
this.x56_1 = this.z21_1;
|
|
3202
|
+
this.y56_1 = this.z21_1;
|
|
3205
3203
|
}
|
|
3206
|
-
protoOf(Couple).
|
|
3207
|
-
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.
|
|
3204
|
+
protoOf(Couple).o2o = function (_this__u8e3s4) {
|
|
3205
|
+
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.g57()]);
|
|
3208
3206
|
};
|
|
3209
|
-
protoOf(Couple).
|
|
3207
|
+
protoOf(Couple).p2o = function (_this__u8e3s4) {
|
|
3210
3208
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3211
3209
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3212
3210
|
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.
|
|
3211
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.g57()])]);
|
|
3214
3212
|
};
|
|
3215
3213
|
var Couple_instance;
|
|
3216
3214
|
function Couple_getInstance() {
|
|
@@ -3222,8 +3220,8 @@
|
|
|
3222
3220
|
Trivial_instance = this;
|
|
3223
3221
|
FluentReduce.call(this);
|
|
3224
3222
|
}
|
|
3225
|
-
protoOf(Trivial).
|
|
3226
|
-
return listOf([this.
|
|
3223
|
+
protoOf(Trivial).o2o = function (_this__u8e3s4) {
|
|
3224
|
+
return listOf([this.g57(), this.g57()]);
|
|
3227
3225
|
};
|
|
3228
3226
|
var Trivial_instance;
|
|
3229
3227
|
function Trivial_getInstance() {
|
|
@@ -3233,61 +3231,61 @@
|
|
|
3233
3231
|
}
|
|
3234
3232
|
function FluentReduce$_get_R_$ref_ypb4y4() {
|
|
3235
3233
|
return constructCallableReference(function (p0) {
|
|
3236
|
-
return p0.
|
|
3237
|
-
}, 1, 0,
|
|
3234
|
+
return p0.g57();
|
|
3235
|
+
}, 1, 0, 151);
|
|
3238
3236
|
}
|
|
3239
3237
|
function FluentReduce() {
|
|
3240
3238
|
RuleWrapper_init_$Init$('fluent_reduce', 2, VOID, this);
|
|
3241
|
-
this.
|
|
3242
|
-
this.
|
|
3239
|
+
this.e57_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```";
|
|
3240
|
+
this.f57_1 = this.z21_1;
|
|
3243
3241
|
}
|
|
3244
3242
|
protoOf(FluentReduce).i1x = function () {
|
|
3245
|
-
return this.
|
|
3243
|
+
return this.e57_1;
|
|
3246
3244
|
};
|
|
3247
|
-
protoOf(FluentReduce).
|
|
3245
|
+
protoOf(FluentReduce).g57 = function () {
|
|
3248
3246
|
var tmp = KProperty1;
|
|
3249
|
-
return this.
|
|
3247
|
+
return this.f57_1.getValue(this, getPropertyCallableRef('R', 1, tmp, FluentReduce$_get_R_$ref_ypb4y4(), null));
|
|
3250
3248
|
};
|
|
3251
|
-
protoOf(FluentReduce).
|
|
3249
|
+
protoOf(FluentReduce).p2o = function (_this__u8e3s4) {
|
|
3252
3250
|
return _this__u8e3s4.atomOf('!');
|
|
3253
3251
|
};
|
|
3254
3252
|
function _get_Type__cwwv8x($this) {
|
|
3255
3253
|
var tmp = KProperty1;
|
|
3256
|
-
return $this.
|
|
3254
|
+
return $this.q57_1.getValue($this, getPropertyCallableRef('Type', 1, tmp, NewObject2$_get_Type_$ref_gxw6of(), null));
|
|
3257
3255
|
}
|
|
3258
3256
|
function _get_Instance__cwfjuy($this) {
|
|
3259
3257
|
var tmp = KProperty1;
|
|
3260
|
-
return $this.
|
|
3258
|
+
return $this.r57_1.getValue($this, getPropertyCallableRef('Instance', 1, tmp, NewObject2$_get_Instance_$ref_jt2xca(), null));
|
|
3261
3259
|
}
|
|
3262
3260
|
function NewObject2$_get_Type_$ref_gxw6of() {
|
|
3263
3261
|
return constructCallableReference(function (p0) {
|
|
3264
3262
|
return _get_Type__cwwv8x(p0);
|
|
3265
|
-
}, 1, 0,
|
|
3263
|
+
}, 1, 0, 152);
|
|
3266
3264
|
}
|
|
3267
3265
|
function NewObject2$_get_Instance_$ref_jt2xca() {
|
|
3268
3266
|
return constructCallableReference(function (p0) {
|
|
3269
3267
|
return _get_Instance__cwfjuy(p0);
|
|
3270
|
-
}, 1, 0,
|
|
3268
|
+
}, 1, 0, 153);
|
|
3271
3269
|
}
|
|
3272
3270
|
function NewObject2() {
|
|
3273
3271
|
NewObject2_instance = this;
|
|
3274
3272
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3275
3273
|
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3276
3274
|
RuleWrapper_init_$Init$(tmp$ret$0, 2, VOID, this);
|
|
3277
|
-
this.
|
|
3278
|
-
this.
|
|
3279
|
-
this.
|
|
3275
|
+
this.p57_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```";
|
|
3276
|
+
this.q57_1 = this.z21_1;
|
|
3277
|
+
this.r57_1 = this.z21_1;
|
|
3280
3278
|
}
|
|
3281
3279
|
protoOf(NewObject2).i1x = function () {
|
|
3282
|
-
return this.
|
|
3280
|
+
return this.p57_1;
|
|
3283
3281
|
};
|
|
3284
|
-
protoOf(NewObject2).
|
|
3282
|
+
protoOf(NewObject2).o2o = function (_this__u8e3s4) {
|
|
3285
3283
|
return listOf([_get_Type__cwwv8x(this), _get_Instance__cwfjuy(this)]);
|
|
3286
3284
|
};
|
|
3287
|
-
protoOf(NewObject2).
|
|
3285
|
+
protoOf(NewObject2).p2o = function (_this__u8e3s4) {
|
|
3288
3286
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3289
3287
|
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3290
|
-
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.
|
|
3288
|
+
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.l12(), _get_Instance__cwfjuy(this)]);
|
|
3291
3289
|
};
|
|
3292
3290
|
var NewObject2_instance;
|
|
3293
3291
|
function NewObject2_getInstance() {
|
|
@@ -3297,43 +3295,43 @@
|
|
|
3297
3295
|
}
|
|
3298
3296
|
function _get_B1__ndb8zg($this) {
|
|
3299
3297
|
var tmp = KProperty1;
|
|
3300
|
-
return $this.
|
|
3298
|
+
return $this.y57_1.getValue($this, getPropertyCallableRef('B1', 1, tmp, PropertyReduce$Recursive$_get_B1_$ref_kiryiu(), null));
|
|
3301
3299
|
}
|
|
3302
3300
|
function _get_C__7mlnqm_0($this) {
|
|
3303
3301
|
var tmp = KProperty1;
|
|
3304
|
-
return $this.
|
|
3302
|
+
return $this.z57_1.getValue($this, getPropertyCallableRef('C', 1, tmp, PropertyReduce$Recursive$_get_C_$ref_epsz1a(), null));
|
|
3305
3303
|
}
|
|
3306
3304
|
function _get_O__7mlo0y($this) {
|
|
3307
3305
|
var tmp = KProperty1;
|
|
3308
|
-
return $this.
|
|
3306
|
+
return $this.a58_1.getValue($this, getPropertyCallableRef('O', 1, tmp, PropertyReduce$Recursive$_get_O_$ref_919iay(), null));
|
|
3309
3307
|
}
|
|
3310
3308
|
function _get_P__7mlo1t_2($this) {
|
|
3311
3309
|
var tmp = KProperty1;
|
|
3312
|
-
return $this.
|
|
3310
|
+
return $this.b58_1.getValue($this, getPropertyCallableRef('P', 1, tmp, PropertyReduce$Recursive$_get_P_$ref_8k7vwr(), null));
|
|
3313
3311
|
}
|
|
3314
3312
|
function PropertyReduce$Recursive$_get_B1_$ref_kiryiu() {
|
|
3315
3313
|
return constructCallableReference(function (p0) {
|
|
3316
3314
|
return _get_B1__ndb8zg(p0);
|
|
3317
|
-
}, 1, 0,
|
|
3315
|
+
}, 1, 0, 154);
|
|
3318
3316
|
}
|
|
3319
3317
|
function PropertyReduce$Recursive$_get_C_$ref_epsz1a() {
|
|
3320
3318
|
return constructCallableReference(function (p0) {
|
|
3321
3319
|
return _get_C__7mlnqm_0(p0);
|
|
3322
|
-
}, 1, 0,
|
|
3320
|
+
}, 1, 0, 155);
|
|
3323
3321
|
}
|
|
3324
3322
|
function PropertyReduce$Recursive$_get_O_$ref_919iay() {
|
|
3325
3323
|
return constructCallableReference(function (p0) {
|
|
3326
3324
|
return _get_O__7mlo0y(p0);
|
|
3327
|
-
}, 1, 0,
|
|
3325
|
+
}, 1, 0, 156);
|
|
3328
3326
|
}
|
|
3329
3327
|
function PropertyReduce$Recursive$_get_P_$ref_8k7vwr() {
|
|
3330
3328
|
return constructCallableReference(function (p0) {
|
|
3331
3329
|
return _get_P__7mlo1t_2(p0);
|
|
3332
|
-
}, 1, 0,
|
|
3330
|
+
}, 1, 0, 157);
|
|
3333
3331
|
}
|
|
3334
3332
|
function Companion_9() {
|
|
3335
|
-
this.
|
|
3336
|
-
this.
|
|
3333
|
+
this.c58_1 = 'property_reduce';
|
|
3334
|
+
this.d58_1 = 3;
|
|
3337
3335
|
}
|
|
3338
3336
|
var Companion_instance_17;
|
|
3339
3337
|
function Companion_getInstance_20() {
|
|
@@ -3342,19 +3340,19 @@
|
|
|
3342
3340
|
function Recursive_0() {
|
|
3343
3341
|
Recursive_instance_0 = this;
|
|
3344
3342
|
PropertyReduce.call(this);
|
|
3345
|
-
this.
|
|
3346
|
-
this.
|
|
3347
|
-
this.
|
|
3348
|
-
this.
|
|
3343
|
+
this.y57_1 = this.z21_1;
|
|
3344
|
+
this.z57_1 = this.z21_1;
|
|
3345
|
+
this.a58_1 = this.z21_1;
|
|
3346
|
+
this.b58_1 = this.z21_1;
|
|
3349
3347
|
}
|
|
3350
|
-
protoOf(Recursive_0).
|
|
3351
|
-
return listOf([_this__u8e3s4.
|
|
3348
|
+
protoOf(Recursive_0).o2o = function (_this__u8e3s4) {
|
|
3349
|
+
return listOf([_this__u8e3s4.n12([this.k58(), this.l58()], _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)]);
|
|
3352
3350
|
};
|
|
3353
|
-
protoOf(Recursive_0).
|
|
3351
|
+
protoOf(Recursive_0).p2o = function (_this__u8e3s4) {
|
|
3354
3352
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3355
3353
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3356
3354
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3357
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.
|
|
3355
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.k58(), this.l58(), _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
3356
|
};
|
|
3359
3357
|
var Recursive_instance_0;
|
|
3360
3358
|
function Recursive_getInstance_0() {
|
|
@@ -3366,8 +3364,8 @@
|
|
|
3366
3364
|
Base_instance = this;
|
|
3367
3365
|
PropertyReduce.call(this);
|
|
3368
3366
|
}
|
|
3369
|
-
protoOf(Base).
|
|
3370
|
-
return listOf([_this__u8e3s4.consOf(this.
|
|
3367
|
+
protoOf(Base).o2o = function (_this__u8e3s4) {
|
|
3368
|
+
return listOf([_this__u8e3s4.consOf(this.k58(), this.l58()), this.k58(), this.l58()]);
|
|
3371
3369
|
};
|
|
3372
3370
|
var Base_instance;
|
|
3373
3371
|
function Base_getInstance() {
|
|
@@ -3377,32 +3375,32 @@
|
|
|
3377
3375
|
}
|
|
3378
3376
|
function PropertyReduce$_get_A_$ref_14cvqu() {
|
|
3379
3377
|
return constructCallableReference(function (p0) {
|
|
3380
|
-
return p0.
|
|
3381
|
-
}, 1, 0,
|
|
3378
|
+
return p0.k58();
|
|
3379
|
+
}, 1, 0, 158);
|
|
3382
3380
|
}
|
|
3383
3381
|
function PropertyReduce$_get_B_$ref_1lei51() {
|
|
3384
3382
|
return constructCallableReference(function (p0) {
|
|
3385
|
-
return p0.
|
|
3386
|
-
}, 1, 0,
|
|
3383
|
+
return p0.l58();
|
|
3384
|
+
}, 1, 0, 159);
|
|
3387
3385
|
}
|
|
3388
3386
|
function PropertyReduce() {
|
|
3389
3387
|
RuleWrapper_init_$Init$('property_reduce', 3, VOID, this);
|
|
3390
|
-
this.
|
|
3391
|
-
this.
|
|
3392
|
-
this.
|
|
3388
|
+
this.h58_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```";
|
|
3389
|
+
this.i58_1 = this.z21_1;
|
|
3390
|
+
this.j58_1 = this.z21_1;
|
|
3393
3391
|
}
|
|
3394
3392
|
protoOf(PropertyReduce).i1x = function () {
|
|
3395
|
-
return this.
|
|
3393
|
+
return this.h58_1;
|
|
3396
3394
|
};
|
|
3397
|
-
protoOf(PropertyReduce).
|
|
3395
|
+
protoOf(PropertyReduce).k58 = function () {
|
|
3398
3396
|
var tmp = KProperty1;
|
|
3399
|
-
return this.
|
|
3397
|
+
return this.i58_1.getValue(this, getPropertyCallableRef('A', 1, tmp, PropertyReduce$_get_A_$ref_14cvqu(), null));
|
|
3400
3398
|
};
|
|
3401
|
-
protoOf(PropertyReduce).
|
|
3399
|
+
protoOf(PropertyReduce).l58 = function () {
|
|
3402
3400
|
var tmp = KProperty1;
|
|
3403
|
-
return this.
|
|
3401
|
+
return this.j58_1.getValue(this, getPropertyCallableRef('B', 1, tmp, PropertyReduce$_get_B_$ref_1lei51(), null));
|
|
3404
3402
|
};
|
|
3405
|
-
protoOf(PropertyReduce).
|
|
3403
|
+
protoOf(PropertyReduce).p2o = function (_this__u8e3s4) {
|
|
3406
3404
|
return _this__u8e3s4.atomOf('!');
|
|
3407
3405
|
};
|
|
3408
3406
|
function get_platformSpecificAliases() {
|
|
@@ -3423,11 +3421,11 @@
|
|
|
3423
3421
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3424
3422
|
throw get_TODO_EXCEPTION();
|
|
3425
3423
|
}
|
|
3426
|
-
function
|
|
3424
|
+
function get_fullName(_this__u8e3s4) {
|
|
3427
3425
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3428
3426
|
throw get_TODO_EXCEPTION();
|
|
3429
3427
|
}
|
|
3430
|
-
function
|
|
3428
|
+
function get_name(_this__u8e3s4) {
|
|
3431
3429
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3432
3430
|
throw get_TODO_EXCEPTION();
|
|
3433
3431
|
}
|
|
@@ -3437,7 +3435,7 @@
|
|
|
3437
3435
|
}
|
|
3438
3436
|
function get_companionObjectRef(_this__u8e3s4) {
|
|
3439
3437
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3440
|
-
return Companion_instance.
|
|
3438
|
+
return Companion_instance.kr();
|
|
3441
3439
|
}
|
|
3442
3440
|
function kClassFromName(qualifiedName) {
|
|
3443
3441
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
@@ -3447,8 +3445,8 @@
|
|
|
3447
3445
|
var message = '`' + qualifiedName + '` should match ' + get_CLASS_NAME_PATTERN().cb_1 + ", while is doesn't";
|
|
3448
3446
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
3449
3447
|
}
|
|
3450
|
-
var module_0 = ensureNotNull(match.yb().
|
|
3451
|
-
var packageSteps = split(ensureNotNull(match.yb().
|
|
3448
|
+
var module_0 = ensureNotNull(match.yb().t(1)).xb_1;
|
|
3449
|
+
var packageSteps = split(ensureNotNull(match.yb().t(2)).xb_1, charArrayOf([_Char___init__impl__6a9atx(46)]));
|
|
3452
3450
|
var kClass = require(module_0);
|
|
3453
3451
|
// Inline function 'kotlin.let' call
|
|
3454
3452
|
var it = packageSteps.n();
|
|
@@ -3460,9 +3458,9 @@
|
|
|
3460
3458
|
var tmp_0 = Companion_instance;
|
|
3461
3459
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3462
3460
|
var tmp$ret$4 = kClass;
|
|
3463
|
-
tmp = tmp_0.
|
|
3461
|
+
tmp = tmp_0.xt(get_kotlin(tmp$ret$4));
|
|
3464
3462
|
} else {
|
|
3465
|
-
tmp = Companion_instance.
|
|
3463
|
+
tmp = Companion_instance.kr();
|
|
3466
3464
|
}
|
|
3467
3465
|
return tmp;
|
|
3468
3466
|
}
|
|
@@ -3501,12 +3499,12 @@
|
|
|
3501
3499
|
}
|
|
3502
3500
|
}
|
|
3503
3501
|
//region block: post-declaration
|
|
3504
|
-
protoOf(NullRefImpl).
|
|
3505
|
-
protoOf(NullRefImpl).
|
|
3506
|
-
protoOf(NullRefImpl).
|
|
3507
|
-
protoOf(TermToObjectConverterImpl).
|
|
3508
|
-
protoOf(TypeFactoryImpl).
|
|
3509
|
-
protoOf(TypeRefImpl).
|
|
3502
|
+
protoOf(NullRefImpl).m51 = get_object;
|
|
3503
|
+
protoOf(NullRefImpl).n51 = invoke;
|
|
3504
|
+
protoOf(NullRefImpl).o51 = assign;
|
|
3505
|
+
protoOf(TermToObjectConverterImpl).k52 = convert;
|
|
3506
|
+
protoOf(TypeFactoryImpl).n52 = typeRefFromName;
|
|
3507
|
+
protoOf(TypeRefImpl).o52 = create;
|
|
3510
3508
|
//endregion
|
|
3511
3509
|
//region block: init
|
|
3512
3510
|
Companion_instance_9 = new Companion_1();
|