@tuprolog/2p-full 3.0.8 → 4.0.1
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 +166 -166
- package/2p-core.js +3467 -3417
- package/2p-core.js.map +1 -1
- package/2p-io-lib.js +878 -874
- package/2p-io-lib.js.map +1 -1
- package/2p-oop-lib.js +1009 -1005
- package/2p-oop-lib.js.map +1 -1
- package/2p-parser-core.js +124 -124
- package/2p-parser-core.js.map +1 -1
- package/2p-parser-impl.js +1404 -1404
- package/2p-parser-impl.js.map +1 -1
- package/2p-parser-theory.js +87 -87
- package/2p-parser-theory.js.map +1 -1
- package/2p-repl.js +224 -187
- package/2p-repl.js.map +1 -1
- package/2p-solve-plp.js +3 -3
- package/2p-solve-problog.js +1528 -1338
- package/2p-solve-problog.js.map +1 -1
- package/2p-solve-prolog.js +3500 -2070
- package/2p-solve-prolog.js.map +1 -1
- package/2p-solve.js +6297 -5520
- package/2p-solve.js.map +1 -1
- package/2p-theory.js +2301 -4039
- package/2p-theory.js.map +1 -1
- package/2p-unify.js +1057 -950
- package/2p-unify.js.map +1 -1
- package/2p-utils.js +875 -940
- package/2p-utils.js.map +1 -1
- package/clikt-clikt-mordant.js +98 -98
- package/clikt-clikt.js +1673 -1672
- package/clikt-clikt.js.map +1 -1
- package/colormath-root-colormath.js +474 -474
- package/kotlin-kotlin-stdlib.js +4092 -2272
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kt-math.js +11773 -8235
- package/kt-math.js.map +1 -1
- package/mordant-mordant.js +1585 -1535
- package/mordant-mordant.js.map +1 -1
- package/okio-parent-okio-nodefilesystem.js +50 -50
- package/okio-parent-okio.js +655 -655
- package/package.json +1 -1
package/2p-oop-lib.js
CHANGED
|
@@ -27,142 +27,143 @@
|
|
|
27
27
|
}(function (_, kotlin_kotlin, kotlin_io_github_gciatto_kt_math, kotlin_it_unibo_tuprolog_solve, kotlin_it_unibo_tuprolog_core, kotlin_it_unibo_tuprolog_utils, kotlin_it_unibo_tuprolog_unify) {
|
|
28
28
|
'use strict';
|
|
29
29
|
//region block: imports
|
|
30
|
-
var NullPointerException_init_$Create$ = kotlin_kotlin.$_$.
|
|
31
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
32
|
-
var initMetadataForInterface = kotlin_kotlin.$_$.
|
|
30
|
+
var NullPointerException_init_$Create$ = kotlin_kotlin.$_$.q2;
|
|
31
|
+
var protoOf = kotlin_kotlin.$_$.ba;
|
|
32
|
+
var initMetadataForInterface = kotlin_kotlin.$_$.n9;
|
|
33
33
|
var VOID = kotlin_kotlin.$_$.b;
|
|
34
|
-
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.
|
|
35
|
-
var KtList = kotlin_kotlin.$_$.
|
|
36
|
-
var getKClass = kotlin_kotlin.$_$.
|
|
37
|
-
var ArrayList = kotlin_kotlin.$_$.
|
|
38
|
-
var KtMap = kotlin_kotlin.$_$.
|
|
39
|
-
var LinkedHashMap = kotlin_kotlin.$_$.
|
|
40
|
-
var Char = kotlin_kotlin.$_$.
|
|
41
|
-
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.
|
|
42
|
-
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.
|
|
34
|
+
var PrimitiveClasses_getInstance = kotlin_kotlin.$_$.g1;
|
|
35
|
+
var KtList = kotlin_kotlin.$_$.c3;
|
|
36
|
+
var getKClass = kotlin_kotlin.$_$.bb;
|
|
37
|
+
var ArrayList = kotlin_kotlin.$_$.y2;
|
|
38
|
+
var KtMap = kotlin_kotlin.$_$.d3;
|
|
39
|
+
var LinkedHashMap = kotlin_kotlin.$_$.b3;
|
|
40
|
+
var Char = kotlin_kotlin.$_$.ef;
|
|
41
|
+
var BigInteger = kotlin_io_github_gciatto_kt_math.$_$.s;
|
|
42
|
+
var BigDecimal = kotlin_io_github_gciatto_kt_math.$_$.r;
|
|
43
43
|
var arrayConcat = kotlin_kotlin.$_$.a;
|
|
44
|
-
var listOf = kotlin_kotlin.$_$.
|
|
45
|
-
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
46
|
-
var to = kotlin_kotlin.$_$.
|
|
47
|
-
var mapOf = kotlin_kotlin.$_$.
|
|
48
|
-
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
49
|
-
var collectionSizeOrDefault = kotlin_kotlin.$_$.
|
|
50
|
-
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.
|
|
51
|
-
var Unit_instance = kotlin_kotlin.$_$.
|
|
52
|
-
var toMap = kotlin_kotlin.$_$.
|
|
44
|
+
var listOf = kotlin_kotlin.$_$.l5;
|
|
45
|
+
var Signature = kotlin_it_unibo_tuprolog_solve.$_$.h5;
|
|
46
|
+
var to = kotlin_kotlin.$_$.kg;
|
|
47
|
+
var mapOf = kotlin_kotlin.$_$.o5;
|
|
48
|
+
var AbstractLibrary = kotlin_it_unibo_tuprolog_solve.$_$.n3;
|
|
49
|
+
var collectionSizeOrDefault = kotlin_kotlin.$_$.u3;
|
|
50
|
+
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.p1;
|
|
51
|
+
var Unit_instance = kotlin_kotlin.$_$.m1;
|
|
52
|
+
var toMap = kotlin_kotlin.$_$.f7;
|
|
53
53
|
var Specifier_XFY_getInstance = kotlin_it_unibo_tuprolog_core.$_$.c;
|
|
54
|
-
var Operator = kotlin_it_unibo_tuprolog_core.$_$.
|
|
54
|
+
var Operator = kotlin_it_unibo_tuprolog_core.$_$.o1;
|
|
55
55
|
var Specifier_XFX_getInstance = kotlin_it_unibo_tuprolog_core.$_$.b;
|
|
56
56
|
var Specifier_FX_getInstance = kotlin_it_unibo_tuprolog_core.$_$.a;
|
|
57
|
-
var OperatorSet_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.
|
|
58
|
-
var asSequence = kotlin_kotlin.$_$.
|
|
59
|
-
var documentationOf = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
60
|
-
var mergeDocumentation = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
61
|
-
var initMetadataForObject = kotlin_kotlin.$_$.
|
|
62
|
-
var getKClassFromExpression = kotlin_kotlin.$_$.
|
|
63
|
-
var initMetadataForCompanion = kotlin_kotlin.$_$.
|
|
64
|
-
var Atom = kotlin_it_unibo_tuprolog_core.$_$.
|
|
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.$_$.
|
|
74
|
-
var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
75
|
-
var contains = kotlin_kotlin.$_$.
|
|
76
|
-
var listOf_0 = kotlin_kotlin.$_$.
|
|
77
|
-
var checkIndexOverflow = kotlin_kotlin.$_$.
|
|
78
|
-
var copyToArray = kotlin_kotlin.$_$.
|
|
79
|
-
var toString_0 = kotlin_kotlin.$_$.
|
|
80
|
-
var trimMargin = kotlin_kotlin.$_$.
|
|
81
|
-
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.
|
|
82
|
-
var setOf = kotlin_kotlin.$_$.
|
|
83
|
-
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
84
|
-
var format = kotlin_it_unibo_tuprolog_core.$_$.
|
|
85
|
-
var captureStack = kotlin_kotlin.$_$.
|
|
86
|
-
var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
57
|
+
var OperatorSet_init_$Create$ = kotlin_it_unibo_tuprolog_core.$_$.k1;
|
|
58
|
+
var asSequence = kotlin_kotlin.$_$.p3;
|
|
59
|
+
var documentationOf = kotlin_it_unibo_tuprolog_solve.$_$.p3;
|
|
60
|
+
var mergeDocumentation = kotlin_it_unibo_tuprolog_solve.$_$.q3;
|
|
61
|
+
var initMetadataForObject = kotlin_kotlin.$_$.p9;
|
|
62
|
+
var getKClassFromExpression = kotlin_kotlin.$_$.ab;
|
|
63
|
+
var initMetadataForCompanion = kotlin_kotlin.$_$.l9;
|
|
64
|
+
var Atom = kotlin_it_unibo_tuprolog_core.$_$.p1;
|
|
65
|
+
var KProperty1 = kotlin_kotlin.$_$.eb;
|
|
66
|
+
var getPropertyCallableRef = kotlin_kotlin.$_$.h9;
|
|
67
|
+
var constructCallableReference = kotlin_kotlin.$_$.a9;
|
|
68
|
+
var isInterface = kotlin_kotlin.$_$.t9;
|
|
69
|
+
var lazy = kotlin_kotlin.$_$.eg;
|
|
70
|
+
var toString = kotlin_kotlin.$_$.jg;
|
|
71
|
+
var hashCode = kotlin_kotlin.$_$.j9;
|
|
72
|
+
var equals = kotlin_kotlin.$_$.c9;
|
|
73
|
+
var initMetadataForClass = kotlin_kotlin.$_$.k9;
|
|
74
|
+
var Companion_instance = kotlin_it_unibo_tuprolog_utils.$_$.c;
|
|
75
|
+
var contains = kotlin_kotlin.$_$.v3;
|
|
76
|
+
var listOf_0 = kotlin_kotlin.$_$.k5;
|
|
77
|
+
var checkIndexOverflow = kotlin_kotlin.$_$.t3;
|
|
78
|
+
var copyToArray = kotlin_kotlin.$_$.g4;
|
|
79
|
+
var toString_0 = kotlin_kotlin.$_$.ea;
|
|
80
|
+
var trimMargin = kotlin_kotlin.$_$.ve;
|
|
81
|
+
var IllegalArgumentException_init_$Create$ = kotlin_kotlin.$_$.g2;
|
|
82
|
+
var setOf = kotlin_kotlin.$_$.l6;
|
|
83
|
+
var Companion_instance_0 = kotlin_it_unibo_tuprolog_core.$_$.a1;
|
|
84
|
+
var format = kotlin_it_unibo_tuprolog_core.$_$.d3;
|
|
85
|
+
var captureStack = kotlin_kotlin.$_$.s8;
|
|
86
|
+
var Companion_instance_1 = kotlin_it_unibo_tuprolog_solve.$_$.l1;
|
|
87
87
|
var Expected_DEALIASING_EXPRESSION_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.m;
|
|
88
|
-
var charSequenceLength = kotlin_kotlin.$_$.
|
|
89
|
-
var charCodeAt = kotlin_kotlin.$_$.
|
|
90
|
-
var toString_1 = kotlin_kotlin.$_$.
|
|
91
|
-
var substring = kotlin_kotlin.$_$.
|
|
92
|
-
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.
|
|
93
|
-
var Struct = kotlin_it_unibo_tuprolog_core.$_$.
|
|
94
|
-
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
88
|
+
var charSequenceLength = kotlin_kotlin.$_$.x8;
|
|
89
|
+
var charCodeAt = kotlin_kotlin.$_$.v8;
|
|
90
|
+
var toString_1 = kotlin_kotlin.$_$.v;
|
|
91
|
+
var substring = kotlin_kotlin.$_$.he;
|
|
92
|
+
var Companion_getInstance = kotlin_it_unibo_tuprolog_unify.$_$.c;
|
|
93
|
+
var Struct = kotlin_it_unibo_tuprolog_core.$_$.b2;
|
|
94
|
+
var Companion_instance_2 = kotlin_it_unibo_tuprolog_solve.$_$.f1;
|
|
95
95
|
var ObjectType_OOP_ALIAS_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.h;
|
|
96
|
-
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.
|
|
97
|
-
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.
|
|
98
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
99
|
-
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
96
|
+
var TuPrologException_init_$Init$ = kotlin_it_unibo_tuprolog_core.$_$.j1;
|
|
97
|
+
var TuPrologException = kotlin_it_unibo_tuprolog_core.$_$.m1;
|
|
98
|
+
var objectCreate = kotlin_kotlin.$_$.aa;
|
|
99
|
+
var Companion_instance_3 = kotlin_it_unibo_tuprolog_solve.$_$.i1;
|
|
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.$_$.
|
|
103
|
-
var Term = kotlin_it_unibo_tuprolog_core.$_$.
|
|
104
|
-
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
105
|
-
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
106
|
-
var charArrayOf = kotlin_kotlin.$_$.
|
|
107
|
-
var concatToString = kotlin_kotlin.$_$.
|
|
108
|
-
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
109
|
-
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
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.$_$.
|
|
118
|
-
var Integer = kotlin_it_unibo_tuprolog_core.$_$.
|
|
119
|
-
var sequenceOf_0 = kotlin_kotlin.$_$.
|
|
120
|
-
var Real = kotlin_it_unibo_tuprolog_core.$_$.
|
|
121
|
-
var Truth = kotlin_it_unibo_tuprolog_core.$_$.
|
|
122
|
-
var first = kotlin_kotlin.$_$.
|
|
123
|
-
var toSet = kotlin_kotlin.$_$.
|
|
124
|
-
var Some = kotlin_it_unibo_tuprolog_utils.$_$.
|
|
125
|
-
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
126
|
-
var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
127
|
-
var Functional = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
128
|
-
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
129
|
-
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
130
|
-
var Functional_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
102
|
+
var THROW_CCE = kotlin_kotlin.$_$.sf;
|
|
103
|
+
var Term = kotlin_it_unibo_tuprolog_core.$_$.a3;
|
|
104
|
+
var NumberTypeTester = kotlin_it_unibo_tuprolog_utils.$_$.g;
|
|
105
|
+
var Companion_getInstance_1 = kotlin_it_unibo_tuprolog_core.$_$.b1;
|
|
106
|
+
var charArrayOf = kotlin_kotlin.$_$.t8;
|
|
107
|
+
var concatToString = kotlin_kotlin.$_$.vc;
|
|
108
|
+
var Companion_getInstance_2 = kotlin_it_unibo_tuprolog_core.$_$.v;
|
|
109
|
+
var Companion_getInstance_3 = kotlin_it_unibo_tuprolog_core.$_$.s;
|
|
110
|
+
var isNumber = kotlin_kotlin.$_$.u9;
|
|
111
|
+
var Exception = kotlin_kotlin.$_$.jf;
|
|
112
|
+
var Var = kotlin_it_unibo_tuprolog_core.$_$.c3;
|
|
113
|
+
var sequenceOf = kotlin_kotlin.$_$.jc;
|
|
114
|
+
var plus = kotlin_kotlin.$_$.hc;
|
|
115
|
+
var Companion_getInstance_4 = kotlin_io_github_gciatto_kt_math.$_$.g;
|
|
116
|
+
var Companion_getInstance_5 = kotlin_io_github_gciatto_kt_math.$_$.f;
|
|
117
|
+
var compareTo = kotlin_kotlin.$_$.z8;
|
|
118
|
+
var Integer = kotlin_it_unibo_tuprolog_core.$_$.w1;
|
|
119
|
+
var sequenceOf_0 = kotlin_kotlin.$_$.ic;
|
|
120
|
+
var Real = kotlin_it_unibo_tuprolog_core.$_$.z1;
|
|
121
|
+
var Truth = kotlin_it_unibo_tuprolog_core.$_$.b3;
|
|
122
|
+
var first = kotlin_kotlin.$_$.sb;
|
|
123
|
+
var toSet = kotlin_kotlin.$_$.pc;
|
|
124
|
+
var Some = kotlin_it_unibo_tuprolog_utils.$_$.h;
|
|
125
|
+
var Companion_getInstance_6 = kotlin_it_unibo_tuprolog_core.$_$.z;
|
|
126
|
+
var Companion_getInstance_7 = kotlin_it_unibo_tuprolog_solve.$_$.w1;
|
|
127
|
+
var Functional = kotlin_it_unibo_tuprolog_solve.$_$.a4;
|
|
128
|
+
var Companion_instance_4 = kotlin_it_unibo_tuprolog_solve.$_$.k1;
|
|
129
|
+
var ResolutionException = kotlin_it_unibo_tuprolog_solve.$_$.g3;
|
|
130
|
+
var Functional_0 = kotlin_it_unibo_tuprolog_solve.$_$.r3;
|
|
131
131
|
var Expected_OBJECT_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.o;
|
|
132
|
-
var map = kotlin_kotlin.$_$.
|
|
133
|
-
var Companion_instance_5 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
134
|
-
var List = kotlin_it_unibo_tuprolog_core.$_$.
|
|
135
|
-
var toList = kotlin_kotlin.$_$.
|
|
136
|
-
var isArray = kotlin_kotlin.$_$.
|
|
137
|
-
var asSequence_0 = kotlin_kotlin.$_$.
|
|
138
|
-
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
139
|
-
var TernaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
140
|
-
var
|
|
141
|
-
var
|
|
142
|
-
var
|
|
132
|
+
var map = kotlin_kotlin.$_$.dc;
|
|
133
|
+
var Companion_instance_5 = kotlin_it_unibo_tuprolog_core.$_$.t;
|
|
134
|
+
var List = kotlin_it_unibo_tuprolog_core.$_$.x1;
|
|
135
|
+
var toList = kotlin_kotlin.$_$.oc;
|
|
136
|
+
var isArray = kotlin_kotlin.$_$.q9;
|
|
137
|
+
var asSequence_0 = kotlin_kotlin.$_$.q3;
|
|
138
|
+
var Predicative = kotlin_it_unibo_tuprolog_solve.$_$.c4;
|
|
139
|
+
var TernaryRelation = kotlin_it_unibo_tuprolog_solve.$_$.e4;
|
|
140
|
+
var Alternatives_LOOKAHEAD_SAFE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.y;
|
|
141
|
+
var flatMap = kotlin_kotlin.$_$.tb;
|
|
142
|
+
var distinct = kotlin_kotlin.$_$.lb;
|
|
143
|
+
var TypeTester = kotlin_it_unibo_tuprolog_solve.$_$.f4;
|
|
143
144
|
var Expected_TYPE_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.q;
|
|
144
145
|
var Expected_REFERENCE_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.p;
|
|
145
|
-
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
146
|
-
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_core.$_$.
|
|
147
|
-
var filter = kotlin_kotlin.$_$.
|
|
148
|
-
var Sequence = kotlin_kotlin.$_$.
|
|
149
|
-
var firstOrNull = kotlin_kotlin.$_$.
|
|
150
|
-
var Yes = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
151
|
-
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
152
|
-
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
153
|
-
var KtSet = kotlin_kotlin.$_$.
|
|
154
|
-
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
155
|
-
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
156
|
-
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
157
|
-
var Var_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.
|
|
158
|
-
var getStringHashCode = kotlin_kotlin.$_$.
|
|
159
|
-
var toString_2 = kotlin_kotlin.$_$.
|
|
160
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
161
|
-
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.
|
|
162
|
-
var split = kotlin_kotlin.$_$.
|
|
163
|
-
var get_kotlin = kotlin_kotlin.$_$.
|
|
164
|
-
var NotImplementedError = kotlin_kotlin.$_$.
|
|
165
|
-
var Regex_init_$Create$ = kotlin_kotlin.$_$.
|
|
146
|
+
var Companion_getInstance_8 = kotlin_it_unibo_tuprolog_core.$_$.d1;
|
|
147
|
+
var Companion_getInstance_9 = kotlin_it_unibo_tuprolog_core.$_$.y;
|
|
148
|
+
var filter = kotlin_kotlin.$_$.qb;
|
|
149
|
+
var Sequence = kotlin_kotlin.$_$.gb;
|
|
150
|
+
var firstOrNull = kotlin_kotlin.$_$.rb;
|
|
151
|
+
var Yes = kotlin_it_unibo_tuprolog_solve.$_$.j5;
|
|
152
|
+
var NonBacktrackable = kotlin_it_unibo_tuprolog_solve.$_$.s3;
|
|
153
|
+
var Companion_instance_6 = kotlin_it_unibo_tuprolog_solve.$_$.g1;
|
|
154
|
+
var KtSet = kotlin_kotlin.$_$.e3;
|
|
155
|
+
var NonBacktrackable_0 = kotlin_it_unibo_tuprolog_solve.$_$.g4;
|
|
156
|
+
var RuleWrapper = kotlin_it_unibo_tuprolog_solve.$_$.j4;
|
|
157
|
+
var RuleWrapper_init_$Init$ = kotlin_it_unibo_tuprolog_solve.$_$.x2;
|
|
158
|
+
var Var_getInstance = kotlin_it_unibo_tuprolog_solve.$_$.a2;
|
|
159
|
+
var getStringHashCode = kotlin_kotlin.$_$.i9;
|
|
160
|
+
var toString_2 = kotlin_kotlin.$_$.re;
|
|
161
|
+
var ensureNotNull = kotlin_kotlin.$_$.zf;
|
|
162
|
+
var _Char___init__impl__6a9atx = kotlin_kotlin.$_$.q;
|
|
163
|
+
var split = kotlin_kotlin.$_$.ae;
|
|
164
|
+
var get_kotlin = kotlin_kotlin.$_$.v9;
|
|
165
|
+
var NotImplementedError = kotlin_kotlin.$_$.nf;
|
|
166
|
+
var Regex_init_$Create$ = kotlin_kotlin.$_$.x1;
|
|
166
167
|
//endregion
|
|
167
168
|
//region block: pre-declaration
|
|
168
169
|
initMetadataForInterface(Ref, 'Ref', VOID, VOID, [Atom]);
|
|
@@ -185,18 +186,18 @@
|
|
|
185
186
|
initMetadataForClass(Value, 'Value', VOID, Result);
|
|
186
187
|
initMetadataForCompanion(Companion_2);
|
|
187
188
|
function convert(term) {
|
|
188
|
-
return this.
|
|
189
|
+
return this.m55(this.o55(term), term);
|
|
189
190
|
}
|
|
190
191
|
initMetadataForInterface(TermToObjectConverter, 'TermToObjectConverter');
|
|
191
192
|
initMetadataForCompanion(Companion_3);
|
|
192
193
|
function typeRefFromName(typeName) {
|
|
193
|
-
var tmp = Companion_instance.
|
|
194
|
-
return tmp.
|
|
194
|
+
var tmp = Companion_instance.cz(this.r55(typeName));
|
|
195
|
+
return tmp.ez(TypeFactory$typeRefFromName$lambda).f1();
|
|
195
196
|
}
|
|
196
197
|
initMetadataForInterface(TypeFactory, 'TypeFactory');
|
|
197
198
|
initMetadataForCompanion(Companion_4);
|
|
198
199
|
function create(objectConverter, arguments_0) {
|
|
199
|
-
return this.
|
|
200
|
+
return this.u55(objectConverter, listOf(arguments_0.slice()));
|
|
200
201
|
}
|
|
201
202
|
initMetadataForInterface(TypeRef, 'TypeRef', VOID, VOID, [Ref]);
|
|
202
203
|
initMetadataForClass(OopException, 'OopException', VOID, TuPrologException);
|
|
@@ -249,7 +250,7 @@
|
|
|
249
250
|
function NullRef() {
|
|
250
251
|
}
|
|
251
252
|
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.
|
|
253
|
+
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.v54('string', PrimitiveClasses_getInstance().ma()), Companion_instance_15.v54('array', PrimitiveClasses_getInstance().la()), Companion_instance_15.v54('list', getKClass(KtList)), Companion_instance_15.v54('arraylist', getKClass(ArrayList)), Companion_instance_15.v54('map', getKClass(KtMap)), Companion_instance_15.v54('hashmap', getKClass(LinkedHashMap)), Companion_instance_15.v54('int', PrimitiveClasses_getInstance().ha()), Companion_instance_15.v54('integer', PrimitiveClasses_getInstance().ha()), Companion_instance_15.v54('double', PrimitiveClasses_getInstance().ka()), Companion_instance_15.v54('float', PrimitiveClasses_getInstance().ja()), Companion_instance_15.v54('long', PrimitiveClasses_getInstance().ia()), Companion_instance_15.v54('short', PrimitiveClasses_getInstance().ga()), Companion_instance_15.v54('byte', PrimitiveClasses_getInstance().fa()), Companion_instance_15.v54('char', getKClass(Char)), Companion_instance_15.v54('bool', PrimitiveClasses_getInstance().ea()), Companion_instance_15.v54('boolean', PrimitiveClasses_getInstance().ea()), Companion_instance_15.v54('any', PrimitiveClasses_getInstance().ba()), Companion_instance_15.v54('nothing', PrimitiveClasses_getInstance().da()), Companion_instance_15.v54('big_integer', getKClass(BigInteger)), Companion_instance_15.v54('big_decimal', getKClass(BigDecimal))], get_platformSpecificAliases()]));
|
|
253
254
|
}
|
|
254
255
|
function _get_operatorDocumentation__vy55az($this) {
|
|
255
256
|
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 +258,15 @@
|
|
|
257
258
|
function OOPLib() {
|
|
258
259
|
OOPLib_instance = this;
|
|
259
260
|
AbstractLibrary.call(this);
|
|
260
|
-
this.
|
|
261
|
+
this.x54_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
262
|
}
|
|
262
|
-
protoOf(OOPLib).
|
|
263
|
+
protoOf(OOPLib).c2r = function () {
|
|
263
264
|
return 'prolog.oop';
|
|
264
265
|
};
|
|
265
|
-
protoOf(OOPLib).
|
|
266
|
-
return this.
|
|
266
|
+
protoOf(OOPLib).a23 = function () {
|
|
267
|
+
return this.x54_1;
|
|
267
268
|
};
|
|
268
|
-
protoOf(OOPLib).
|
|
269
|
+
protoOf(OOPLib).x2q = function () {
|
|
269
270
|
// Inline function 'kotlin.collections.map' call
|
|
270
271
|
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
272
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -274,12 +275,12 @@
|
|
|
274
275
|
while (_iterator__ex2g4s.q()) {
|
|
275
276
|
var item = _iterator__ex2g4s.r();
|
|
276
277
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.descriptionPair' call
|
|
277
|
-
var tmp$ret$2 = to(item.signature, item.
|
|
278
|
+
var tmp$ret$2 = to(item.signature, item.y22());
|
|
278
279
|
destination.l(tmp$ret$2);
|
|
279
280
|
}
|
|
280
281
|
return toMap(destination);
|
|
281
282
|
};
|
|
282
|
-
protoOf(OOPLib).
|
|
283
|
+
protoOf(OOPLib).w1u = function () {
|
|
283
284
|
// Inline function 'kotlin.collections.map' call
|
|
284
285
|
var this_0 = _get_ruleWrappers__mybpf3(this);
|
|
285
286
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -287,16 +288,16 @@
|
|
|
287
288
|
var _iterator__ex2g4s = this_0.n();
|
|
288
289
|
while (_iterator__ex2g4s.q()) {
|
|
289
290
|
var item = _iterator__ex2g4s.r();
|
|
290
|
-
var tmp$ret$2 = item.
|
|
291
|
+
var tmp$ret$2 = item.y22();
|
|
291
292
|
destination.l(tmp$ret$2);
|
|
292
293
|
}
|
|
293
294
|
return destination;
|
|
294
295
|
};
|
|
295
|
-
protoOf(OOPLib).
|
|
296
|
+
protoOf(OOPLib).u23 = function () {
|
|
296
297
|
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
298
|
};
|
|
298
|
-
protoOf(OOPLib).
|
|
299
|
-
return mergeDocumentation([protoOf(AbstractLibrary).
|
|
299
|
+
protoOf(OOPLib).d2r = function () {
|
|
300
|
+
return mergeDocumentation([protoOf(AbstractLibrary).d2r.call(this), documentationOf(asSequence(_get_ruleWrappers__mybpf3(this))), _get_operatorDocumentation__vy55az(this)]);
|
|
300
301
|
};
|
|
301
302
|
var OOPLib_instance;
|
|
302
303
|
function OOPLib_getInstance() {
|
|
@@ -309,13 +310,13 @@
|
|
|
309
310
|
}
|
|
310
311
|
function Companion() {
|
|
311
312
|
Companion_instance_7 = this;
|
|
312
|
-
this.
|
|
313
|
+
this.y54_1 = NullRefImpl_getInstance();
|
|
313
314
|
}
|
|
314
|
-
protoOf(Companion).
|
|
315
|
-
return any == null ? nameOf(this, PrimitiveClasses_getInstance().
|
|
315
|
+
protoOf(Companion).z54 = function (any) {
|
|
316
|
+
return any == null ? nameOf(this, PrimitiveClasses_getInstance().da(), 'null') : nameOf(this, getKClassFromExpression(any), get_identifier(any));
|
|
316
317
|
};
|
|
317
|
-
protoOf(Companion).
|
|
318
|
-
return any == null ? this.
|
|
318
|
+
protoOf(Companion).a55 = function (any) {
|
|
319
|
+
return any == null ? this.y54_1 : new ObjectRefImpl(any);
|
|
319
320
|
};
|
|
320
321
|
var Companion_instance_7;
|
|
321
322
|
function Companion_getInstance_10() {
|
|
@@ -327,7 +328,7 @@
|
|
|
327
328
|
}
|
|
328
329
|
function Companion_0() {
|
|
329
330
|
Companion_instance_8 = this;
|
|
330
|
-
this.
|
|
331
|
+
this.b55_1 = new ObjectToTermConverterImpl();
|
|
331
332
|
}
|
|
332
333
|
var Companion_instance_8;
|
|
333
334
|
function Companion_getInstance_11() {
|
|
@@ -337,7 +338,7 @@
|
|
|
337
338
|
}
|
|
338
339
|
function Companion_1() {
|
|
339
340
|
}
|
|
340
|
-
protoOf(Companion_1).
|
|
341
|
+
protoOf(Companion_1).c55 = function (type, termToObjectConverter) {
|
|
341
342
|
return overloadSelector(type, termToObjectConverter);
|
|
342
343
|
};
|
|
343
344
|
var Companion_instance_9;
|
|
@@ -347,14 +348,14 @@
|
|
|
347
348
|
function Ref() {
|
|
348
349
|
}
|
|
349
350
|
function _get_termValue__ikgccs($this) {
|
|
350
|
-
var tmp0 = $this.
|
|
351
|
+
var tmp0 = $this.e55_1;
|
|
351
352
|
var tmp = KProperty1;
|
|
352
353
|
// Inline function 'kotlin.getValue' call
|
|
353
354
|
getPropertyCallableRef('termValue', 1, tmp, Result$Value$_get_termValue_$ref_u3cirl(), null);
|
|
354
355
|
return tmp0.f1();
|
|
355
356
|
}
|
|
356
357
|
function _get_objectRef__3zhern($this) {
|
|
357
|
-
var tmp0 = $this.
|
|
358
|
+
var tmp0 = $this.f55_1;
|
|
358
359
|
var tmp = KProperty1;
|
|
359
360
|
// Inline function 'kotlin.getValue' call
|
|
360
361
|
getPropertyCallableRef('objectRef', 1, tmp, Result$Value$_get_objectRef_$ref_8a6ozy(), null);
|
|
@@ -362,13 +363,13 @@
|
|
|
362
363
|
}
|
|
363
364
|
function Result$Value$termValue$delegate$lambda(this$0) {
|
|
364
365
|
return function () {
|
|
365
|
-
return Companion_getInstance_11().
|
|
366
|
+
return Companion_getInstance_11().b55_1.g55(this$0.d55_1);
|
|
366
367
|
};
|
|
367
368
|
}
|
|
368
369
|
function Result$Value$_get_termValue_$ref_u3cirl() {
|
|
369
370
|
return constructCallableReference(function (p0) {
|
|
370
371
|
return _get_termValue__ikgccs(p0);
|
|
371
|
-
}, 1, 0,
|
|
372
|
+
}, 1, 0, 82);
|
|
372
373
|
}
|
|
373
374
|
function Result$Value$objectRef$delegate$lambda(this$0) {
|
|
374
375
|
return function () {
|
|
@@ -378,7 +379,7 @@
|
|
|
378
379
|
if (isInterface(it, ObjectRef)) {
|
|
379
380
|
tmp = it;
|
|
380
381
|
} else {
|
|
381
|
-
tmp = Companion_getInstance_10().
|
|
382
|
+
tmp = Companion_getInstance_10().a55(this$0.d55_1);
|
|
382
383
|
}
|
|
383
384
|
return tmp;
|
|
384
385
|
};
|
|
@@ -386,37 +387,37 @@
|
|
|
386
387
|
function Result$Value$_get_objectRef_$ref_8a6ozy() {
|
|
387
388
|
return constructCallableReference(function (p0) {
|
|
388
389
|
return _get_objectRef__3zhern(p0);
|
|
389
|
-
}, 1, 0,
|
|
390
|
+
}, 1, 0, 83);
|
|
390
391
|
}
|
|
391
392
|
function Value(value) {
|
|
392
393
|
Result.call(this);
|
|
393
|
-
this.
|
|
394
|
+
this.d55_1 = value;
|
|
394
395
|
var tmp = this;
|
|
395
|
-
tmp.
|
|
396
|
+
tmp.e55_1 = lazy(Result$Value$termValue$delegate$lambda(this));
|
|
396
397
|
var tmp_0 = this;
|
|
397
|
-
tmp_0.
|
|
398
|
+
tmp_0.f55_1 = lazy(Result$Value$objectRef$delegate$lambda(this));
|
|
398
399
|
}
|
|
399
|
-
protoOf(Value).
|
|
400
|
+
protoOf(Value).l1r = function () {
|
|
400
401
|
return _get_termValue__ikgccs(this);
|
|
401
402
|
};
|
|
402
403
|
protoOf(Value).toTerm = function () {
|
|
403
|
-
return this.
|
|
404
|
+
return this.l1r();
|
|
404
405
|
};
|
|
405
|
-
protoOf(Value).
|
|
406
|
+
protoOf(Value).h55 = function () {
|
|
406
407
|
return _get_objectRef__3zhern(this);
|
|
407
408
|
};
|
|
408
409
|
protoOf(Value).toString = function () {
|
|
409
|
-
return 'Value(value=' + toString(this.
|
|
410
|
+
return 'Value(value=' + toString(this.d55_1) + ')';
|
|
410
411
|
};
|
|
411
412
|
protoOf(Value).hashCode = function () {
|
|
412
|
-
return this.
|
|
413
|
+
return this.d55_1 == null ? 0 : hashCode(this.d55_1);
|
|
413
414
|
};
|
|
414
415
|
protoOf(Value).equals = function (other) {
|
|
415
416
|
if (this === other)
|
|
416
417
|
return true;
|
|
417
418
|
if (!(other instanceof Value))
|
|
418
419
|
return false;
|
|
419
|
-
if (!equals(this.
|
|
420
|
+
if (!equals(this.d55_1, other.d55_1))
|
|
420
421
|
return false;
|
|
421
422
|
return true;
|
|
422
423
|
};
|
|
@@ -427,13 +428,13 @@
|
|
|
427
428
|
}
|
|
428
429
|
function Companion_2() {
|
|
429
430
|
Companion_instance_10 = this;
|
|
430
|
-
this.
|
|
431
|
+
this.i55_1 = this.j55();
|
|
431
432
|
}
|
|
432
|
-
protoOf(Companion_2).
|
|
433
|
+
protoOf(Companion_2).k55 = function (typeFactory, dealiaser) {
|
|
433
434
|
return new TermToObjectConverterImpl(typeFactory, dealiaser);
|
|
434
435
|
};
|
|
435
|
-
protoOf(Companion_2).
|
|
436
|
-
typeFactory = typeFactory === VOID ? Companion_getInstance_14().
|
|
436
|
+
protoOf(Companion_2).j55 = function (typeFactory, dealiaser, $super) {
|
|
437
|
+
typeFactory = typeFactory === VOID ? Companion_getInstance_14().l55_1 : typeFactory;
|
|
437
438
|
var tmp;
|
|
438
439
|
if (dealiaser === VOID) {
|
|
439
440
|
tmp = TermToObjectConverter$Companion$of$lambda;
|
|
@@ -441,7 +442,7 @@
|
|
|
441
442
|
tmp = dealiaser;
|
|
442
443
|
}
|
|
443
444
|
dealiaser = tmp;
|
|
444
|
-
return $super === VOID ? this.
|
|
445
|
+
return $super === VOID ? this.k55(typeFactory, dealiaser) : $super.k55.call(this, typeFactory, dealiaser);
|
|
445
446
|
};
|
|
446
447
|
var Companion_instance_10;
|
|
447
448
|
function Companion_getInstance_13() {
|
|
@@ -453,7 +454,7 @@
|
|
|
453
454
|
}
|
|
454
455
|
function Companion_3() {
|
|
455
456
|
Companion_instance_11 = this;
|
|
456
|
-
this.
|
|
457
|
+
this.l55_1 = new TypeFactoryImpl();
|
|
457
458
|
}
|
|
458
459
|
var Companion_instance_11;
|
|
459
460
|
function Companion_getInstance_14() {
|
|
@@ -462,13 +463,13 @@
|
|
|
462
463
|
return Companion_instance_11;
|
|
463
464
|
}
|
|
464
465
|
function TypeFactory$typeRefFromName$lambda(it) {
|
|
465
|
-
return Companion_instance_12.
|
|
466
|
+
return Companion_instance_12.q55(it);
|
|
466
467
|
}
|
|
467
468
|
function TypeFactory() {
|
|
468
469
|
}
|
|
469
470
|
function Companion_4() {
|
|
470
471
|
}
|
|
471
|
-
protoOf(Companion_4).
|
|
472
|
+
protoOf(Companion_4).q55 = function (type) {
|
|
472
473
|
return new TypeRefImpl(type);
|
|
473
474
|
};
|
|
474
475
|
var Companion_instance_12;
|
|
@@ -492,7 +493,7 @@
|
|
|
492
493
|
}
|
|
493
494
|
function create_0(_this__u8e3s4, objectConverter, arguments_0) {
|
|
494
495
|
_init_properties_TypeUtils_kt__wnsx0l();
|
|
495
|
-
var constructorRef = Companion_instance_9.
|
|
496
|
+
var constructorRef = Companion_instance_9.c55(_this__u8e3s4, objectConverter).v55(arguments_0);
|
|
496
497
|
return callWithPrologArguments(constructorRef, objectConverter, arguments_0);
|
|
497
498
|
}
|
|
498
499
|
function invoke_0(_this__u8e3s4, objectConverter, methodName, arguments_0) {
|
|
@@ -501,7 +502,7 @@
|
|
|
501
502
|
}
|
|
502
503
|
function invoke_1(_this__u8e3s4, objectConverter, methodName, arguments_0, instance) {
|
|
503
504
|
_init_properties_TypeUtils_kt__wnsx0l();
|
|
504
|
-
var methodRef = Companion_instance_9.
|
|
505
|
+
var methodRef = Companion_instance_9.c55(_this__u8e3s4, objectConverter).w55(methodName, arguments_0);
|
|
505
506
|
return callWithPrologArguments(methodRef, objectConverter, arguments_0, instance);
|
|
506
507
|
}
|
|
507
508
|
function assign_0(_this__u8e3s4, objectConverter, propertyName, value) {
|
|
@@ -510,7 +511,7 @@
|
|
|
510
511
|
}
|
|
511
512
|
function assign_1(_this__u8e3s4, objectConverter, propertyName, value, instance) {
|
|
512
513
|
_init_properties_TypeUtils_kt__wnsx0l();
|
|
513
|
-
var setterRef = get_setterMethod(Companion_instance_9.
|
|
514
|
+
var setterRef = get_setterMethod(Companion_instance_9.c55(_this__u8e3s4, objectConverter).x55(propertyName, value));
|
|
514
515
|
return callWithPrologArguments(setterRef, objectConverter, listOf_0(value), instance);
|
|
515
516
|
}
|
|
516
517
|
function isSubtypeOf_0(_this__u8e3s4, other, strict) {
|
|
@@ -531,7 +532,7 @@
|
|
|
531
532
|
var _unary__edvuaz = index;
|
|
532
533
|
index = _unary__edvuaz + 1 | 0;
|
|
533
534
|
var i = checkIndexOverflow(_unary__edvuaz);
|
|
534
|
-
var tmp$ret$2 = converter.
|
|
535
|
+
var tmp$ret$2 = converter.m55(formalArgumentsTypes.t(i), item);
|
|
535
536
|
destination.l(tmp$ret$2);
|
|
536
537
|
}
|
|
537
538
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
@@ -587,18 +588,18 @@
|
|
|
587
588
|
function _init_properties_TypeUtils_kt__wnsx0l() {
|
|
588
589
|
if (!properties_initialized_TypeUtils_kt_7pe6qv) {
|
|
589
590
|
properties_initialized_TypeUtils_kt_7pe6qv = true;
|
|
590
|
-
PRIMITIVE_TYPES = setOf([PrimitiveClasses_getInstance().
|
|
591
|
+
PRIMITIVE_TYPES = setOf([PrimitiveClasses_getInstance().ia(), PrimitiveClasses_getInstance().ha(), PrimitiveClasses_getInstance().ga(), PrimitiveClasses_getInstance().fa(), getKClass(Char), PrimitiveClasses_getInstance().ka(), PrimitiveClasses_getInstance().ja()]);
|
|
591
592
|
}
|
|
592
593
|
}
|
|
593
594
|
function MalformedAliasException(dealiasingExpression) {
|
|
594
595
|
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
596
|
captureStack(this, MalformedAliasException);
|
|
596
|
-
this.
|
|
597
|
+
this.y55_1 = dealiasingExpression;
|
|
597
598
|
}
|
|
598
|
-
protoOf(MalformedAliasException).
|
|
599
|
+
protoOf(MalformedAliasException).z55 = function (context, signature) {
|
|
599
600
|
var tmp = Companion_instance_1;
|
|
600
601
|
var tmp_0 = Expected_DEALIASING_EXPRESSION_getInstance();
|
|
601
|
-
var tmp_1 = this.
|
|
602
|
+
var tmp_1 = this.a2f();
|
|
602
603
|
var tmp_2 = signature.toIndicator().toString();
|
|
603
604
|
var tmp0_safe_receiver = this.message;
|
|
604
605
|
var tmp_3;
|
|
@@ -622,20 +623,20 @@
|
|
|
622
623
|
}
|
|
623
624
|
return tmp.of(context, tmp_0, tmp_1, 'Error in ' + tmp_2 + ': ' + tmp_3);
|
|
624
625
|
};
|
|
625
|
-
protoOf(MalformedAliasException).
|
|
626
|
-
return this.
|
|
626
|
+
protoOf(MalformedAliasException).a2f = function () {
|
|
627
|
+
return this.y55_1;
|
|
627
628
|
};
|
|
628
629
|
function NoSuchAnAliasException(dealiasingExpression) {
|
|
629
630
|
OopException_init_$Init$('There exists no reference whose alias is `' + dealiasingExpression.get(0).toString() + '`', VOID, this);
|
|
630
631
|
captureStack(this, NoSuchAnAliasException);
|
|
631
|
-
this.
|
|
632
|
+
this.a56_1 = dealiasingExpression;
|
|
632
633
|
// Inline function 'kotlin.require' call
|
|
633
634
|
// Inline function 'kotlin.require' call
|
|
634
|
-
if (!Companion_getInstance().matches(this.
|
|
635
|
+
if (!Companion_getInstance().matches(this.a56_1, get_DEALIASING_TEMPLATE())) {
|
|
635
636
|
var message = 'Failed requirement.';
|
|
636
637
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
637
638
|
}
|
|
638
|
-
var tmp = this.
|
|
639
|
+
var tmp = this.a56_1.get(0);
|
|
639
640
|
// Inline function 'kotlin.require' call
|
|
640
641
|
// Inline function 'kotlin.require' call
|
|
641
642
|
if (!isInterface(tmp, Struct)) {
|
|
@@ -643,15 +644,15 @@
|
|
|
643
644
|
throw IllegalArgumentException_init_$Create$(toString_0(message_0));
|
|
644
645
|
}
|
|
645
646
|
}
|
|
646
|
-
protoOf(NoSuchAnAliasException).
|
|
647
|
+
protoOf(NoSuchAnAliasException).z55 = function (context, signature) {
|
|
647
648
|
var tmp = Companion_instance_2;
|
|
648
649
|
var tmp_0 = ObjectType_OOP_ALIAS_getInstance();
|
|
649
|
-
var tmp_1 = this.
|
|
650
|
+
var tmp_1 = this.a2f();
|
|
650
651
|
var tmp0_elvis_lhs = this.message;
|
|
651
652
|
return tmp.of(context, tmp_0, tmp_1, tmp0_elvis_lhs == null ? '' : tmp0_elvis_lhs);
|
|
652
653
|
};
|
|
653
|
-
protoOf(NoSuchAnAliasException).
|
|
654
|
-
return this.
|
|
654
|
+
protoOf(NoSuchAnAliasException).a2f = function () {
|
|
655
|
+
return this.a56_1;
|
|
655
656
|
};
|
|
656
657
|
function OopException_init_$Init$(message, cause, $this) {
|
|
657
658
|
message = message === VOID ? null : message;
|
|
@@ -690,336 +691,336 @@
|
|
|
690
691
|
var tmp1_elvis_lhs = tmp;
|
|
691
692
|
OopException_init_$Init$(tmp1_elvis_lhs == null ? 'Term `' + term.toString() + '` cannot be converted into an object' : tmp1_elvis_lhs, VOID, this);
|
|
692
693
|
captureStack(this, TermToObjectConversionException);
|
|
693
|
-
this.
|
|
694
|
-
this.
|
|
694
|
+
this.b56_1 = term;
|
|
695
|
+
this.c56_1 = targetType;
|
|
695
696
|
}
|
|
696
|
-
protoOf(TermToObjectConversionException).
|
|
697
|
-
return Companion_instance_3.
|
|
697
|
+
protoOf(TermToObjectConversionException).z55 = function (context, signature) {
|
|
698
|
+
return Companion_instance_3.w2g(context, signature, Limit_OOP_OBJECT_getInstance(), this);
|
|
698
699
|
};
|
|
699
700
|
function NullRefImpl() {
|
|
700
701
|
NullRefImpl_instance = this;
|
|
701
|
-
this.
|
|
702
|
+
this.d56_1 = Companion_getInstance_0().of(Companion_getInstance_10().z54(null));
|
|
702
703
|
}
|
|
703
|
-
protoOf(NullRefImpl).
|
|
704
|
+
protoOf(NullRefImpl).w14 = function () {
|
|
704
705
|
return true;
|
|
705
706
|
};
|
|
706
|
-
protoOf(NullRefImpl).
|
|
707
|
+
protoOf(NullRefImpl).z14 = function () {
|
|
707
708
|
return this;
|
|
708
709
|
};
|
|
709
710
|
protoOf(NullRefImpl).asConstant = function () {
|
|
710
|
-
return this.
|
|
711
|
+
return this.z14();
|
|
711
712
|
};
|
|
712
|
-
protoOf(NullRefImpl).
|
|
713
|
+
protoOf(NullRefImpl).a14 = function () {
|
|
713
714
|
return this;
|
|
714
715
|
};
|
|
715
716
|
protoOf(NullRefImpl).freshCopy = function () {
|
|
716
|
-
return this.
|
|
717
|
+
return this.a14();
|
|
717
718
|
};
|
|
718
|
-
protoOf(NullRefImpl).
|
|
719
|
+
protoOf(NullRefImpl).b14 = function (scope) {
|
|
719
720
|
return this;
|
|
720
721
|
};
|
|
721
722
|
protoOf(NullRefImpl).freshCopyFromScope = function (scope) {
|
|
722
|
-
return this.
|
|
723
|
+
return this.b14(scope);
|
|
723
724
|
};
|
|
724
|
-
protoOf(NullRefImpl).
|
|
725
|
+
protoOf(NullRefImpl).r14 = function () {
|
|
725
726
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
726
727
|
};
|
|
727
|
-
protoOf(NullRefImpl).
|
|
728
|
-
return this.
|
|
728
|
+
protoOf(NullRefImpl).wx = function () {
|
|
729
|
+
return this.r14();
|
|
729
730
|
};
|
|
730
|
-
protoOf(NullRefImpl).
|
|
731
|
+
protoOf(NullRefImpl).x1e = function (substitution) {
|
|
731
732
|
return this;
|
|
732
733
|
};
|
|
733
734
|
protoOf(NullRefImpl).applySubstitution = function (substitution) {
|
|
734
|
-
return this.
|
|
735
|
+
return this.x1e(substitution);
|
|
735
736
|
};
|
|
736
|
-
protoOf(NullRefImpl).
|
|
737
|
+
protoOf(NullRefImpl).v32 = function (substitution, substitutions) {
|
|
737
738
|
return this;
|
|
738
739
|
};
|
|
739
740
|
protoOf(NullRefImpl).apply = function (substitution, substitutions) {
|
|
740
|
-
return this.
|
|
741
|
+
return this.v32(substitution, substitutions);
|
|
741
742
|
};
|
|
742
|
-
protoOf(NullRefImpl).
|
|
743
|
+
protoOf(NullRefImpl).u32 = function (substitution, substitutions) {
|
|
743
744
|
return this;
|
|
744
745
|
};
|
|
745
746
|
protoOf(NullRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
746
|
-
return this.
|
|
747
|
+
return this.u32(substitution, substitutions);
|
|
747
748
|
};
|
|
748
|
-
protoOf(NullRefImpl).
|
|
749
|
+
protoOf(NullRefImpl).v1d = function (visitor) {
|
|
749
750
|
return visitor.visitAtom(this);
|
|
750
751
|
};
|
|
751
752
|
protoOf(NullRefImpl).accept = function (visitor) {
|
|
752
|
-
return this.
|
|
753
|
+
return this.v1d(visitor);
|
|
753
754
|
};
|
|
754
|
-
protoOf(NullRefImpl).
|
|
755
|
-
return this.
|
|
755
|
+
protoOf(NullRefImpl).c14 = function () {
|
|
756
|
+
return this.d56_1.c14();
|
|
756
757
|
};
|
|
757
758
|
protoOf(NullRefImpl).asAtom = function () {
|
|
758
|
-
return this.
|
|
759
|
+
return this.c14();
|
|
759
760
|
};
|
|
760
|
-
protoOf(NullRefImpl).
|
|
761
|
-
return this.
|
|
761
|
+
protoOf(NullRefImpl).r13 = function () {
|
|
762
|
+
return this.d56_1.r13();
|
|
762
763
|
};
|
|
763
|
-
protoOf(NullRefImpl).
|
|
764
|
-
return this.
|
|
764
|
+
protoOf(NullRefImpl).s13 = function () {
|
|
765
|
+
return this.d56_1.s13();
|
|
765
766
|
};
|
|
766
|
-
protoOf(NullRefImpl).
|
|
767
|
-
return this.
|
|
767
|
+
protoOf(NullRefImpl).t13 = function () {
|
|
768
|
+
return this.d56_1.t13();
|
|
768
769
|
};
|
|
769
|
-
protoOf(NullRefImpl).
|
|
770
|
-
return this.
|
|
770
|
+
protoOf(NullRefImpl).u13 = function () {
|
|
771
|
+
return this.d56_1.u13();
|
|
771
772
|
};
|
|
772
|
-
protoOf(NullRefImpl).
|
|
773
|
-
return this.
|
|
773
|
+
protoOf(NullRefImpl).v13 = function () {
|
|
774
|
+
return this.d56_1.v13();
|
|
774
775
|
};
|
|
775
776
|
protoOf(NullRefImpl).f1 = function () {
|
|
776
|
-
return this.
|
|
777
|
+
return this.d56_1.f1();
|
|
777
778
|
};
|
|
778
|
-
protoOf(NullRefImpl).
|
|
779
|
-
return this.
|
|
779
|
+
protoOf(NullRefImpl).y13 = function () {
|
|
780
|
+
return this.d56_1.y13();
|
|
780
781
|
};
|
|
781
|
-
protoOf(NullRefImpl).
|
|
782
|
-
return this.
|
|
782
|
+
protoOf(NullRefImpl).z13 = function () {
|
|
783
|
+
return this.d56_1.z13();
|
|
783
784
|
};
|
|
784
|
-
protoOf(NullRefImpl).
|
|
785
|
-
return this.
|
|
785
|
+
protoOf(NullRefImpl).n14 = function () {
|
|
786
|
+
return this.d56_1.n14();
|
|
786
787
|
};
|
|
787
788
|
protoOf(NullRefImpl).asStruct = function () {
|
|
788
|
-
return this.
|
|
789
|
+
return this.n14();
|
|
789
790
|
};
|
|
790
791
|
protoOf(NullRefImpl).append = function (argument) {
|
|
791
|
-
return this.
|
|
792
|
+
return this.d56_1.append(argument);
|
|
792
793
|
};
|
|
793
794
|
protoOf(NullRefImpl).addLast = function (argument) {
|
|
794
|
-
return this.
|
|
795
|
+
return this.d56_1.addLast(argument);
|
|
795
796
|
};
|
|
796
797
|
protoOf(NullRefImpl).addFirst = function (argument) {
|
|
797
|
-
return this.
|
|
798
|
+
return this.d56_1.addFirst(argument);
|
|
798
799
|
};
|
|
799
800
|
protoOf(NullRefImpl).insertAt = function (index, argument) {
|
|
800
|
-
return this.
|
|
801
|
+
return this.d56_1.insertAt(index, argument);
|
|
801
802
|
};
|
|
802
803
|
protoOf(NullRefImpl).setFunctor = function (functor) {
|
|
803
|
-
return this.
|
|
804
|
+
return this.d56_1.setFunctor(functor);
|
|
804
805
|
};
|
|
805
806
|
protoOf(NullRefImpl).getArgAt = function (index) {
|
|
806
|
-
return this.
|
|
807
|
+
return this.d56_1.getArgAt(index);
|
|
807
808
|
};
|
|
808
809
|
protoOf(NullRefImpl).setArgs = function (args) {
|
|
809
|
-
return this.
|
|
810
|
+
return this.d56_1.setArgs(args);
|
|
810
811
|
};
|
|
811
812
|
protoOf(NullRefImpl).setArgsIterable = function (args) {
|
|
812
|
-
return this.
|
|
813
|
+
return this.d56_1.setArgsIterable(args);
|
|
813
814
|
};
|
|
814
815
|
protoOf(NullRefImpl).setArgsSequence = function (args) {
|
|
815
|
-
return this.
|
|
816
|
+
return this.d56_1.setArgsSequence(args);
|
|
816
817
|
};
|
|
817
818
|
protoOf(NullRefImpl).get = function (index) {
|
|
818
|
-
return this.
|
|
819
|
+
return this.d56_1.get(index);
|
|
819
820
|
};
|
|
820
|
-
protoOf(NullRefImpl).
|
|
821
|
-
return this.
|
|
821
|
+
protoOf(NullRefImpl).d14 = function () {
|
|
822
|
+
return this.d56_1.d14();
|
|
822
823
|
};
|
|
823
|
-
protoOf(NullRefImpl).
|
|
824
|
-
return this.
|
|
824
|
+
protoOf(NullRefImpl).e14 = function () {
|
|
825
|
+
return this.d56_1.e14();
|
|
825
826
|
};
|
|
826
|
-
protoOf(NullRefImpl).
|
|
827
|
-
return this.
|
|
827
|
+
protoOf(NullRefImpl).f14 = function () {
|
|
828
|
+
return this.d56_1.f14();
|
|
828
829
|
};
|
|
829
|
-
protoOf(NullRefImpl).
|
|
830
|
-
return this.
|
|
830
|
+
protoOf(NullRefImpl).i14 = function () {
|
|
831
|
+
return this.d56_1.i14();
|
|
831
832
|
};
|
|
832
|
-
protoOf(NullRefImpl).
|
|
833
|
-
return this.
|
|
833
|
+
protoOf(NullRefImpl).j14 = function () {
|
|
834
|
+
return this.d56_1.j14();
|
|
834
835
|
};
|
|
835
|
-
protoOf(NullRefImpl).
|
|
836
|
-
return this.
|
|
836
|
+
protoOf(NullRefImpl).k14 = function () {
|
|
837
|
+
return this.d56_1.k14();
|
|
837
838
|
};
|
|
838
|
-
protoOf(NullRefImpl).
|
|
839
|
-
return this.
|
|
839
|
+
protoOf(NullRefImpl).m14 = function () {
|
|
840
|
+
return this.d56_1.m14();
|
|
840
841
|
};
|
|
841
|
-
protoOf(NullRefImpl).
|
|
842
|
-
return this.
|
|
842
|
+
protoOf(NullRefImpl).x13 = function () {
|
|
843
|
+
return this.d56_1.x13();
|
|
843
844
|
};
|
|
844
|
-
protoOf(NullRefImpl).
|
|
845
|
-
return this.
|
|
845
|
+
protoOf(NullRefImpl).o14 = function () {
|
|
846
|
+
return this.d56_1.o14();
|
|
846
847
|
};
|
|
847
|
-
protoOf(NullRefImpl).
|
|
848
|
-
return this.
|
|
848
|
+
protoOf(NullRefImpl).p14 = function () {
|
|
849
|
+
return this.d56_1.p14();
|
|
849
850
|
};
|
|
850
|
-
protoOf(NullRefImpl).
|
|
851
|
-
return this.
|
|
851
|
+
protoOf(NullRefImpl).q14 = function () {
|
|
852
|
+
return this.d56_1.q14();
|
|
852
853
|
};
|
|
853
|
-
protoOf(NullRefImpl).
|
|
854
|
-
return this.
|
|
854
|
+
protoOf(NullRefImpl).s14 = function (other) {
|
|
855
|
+
return this.d56_1.s14(other);
|
|
855
856
|
};
|
|
856
857
|
protoOf(NullRefImpl).d = function (other) {
|
|
857
|
-
return this.
|
|
858
|
+
return this.s14((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
858
859
|
};
|
|
859
860
|
protoOf(NullRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
860
|
-
return this.
|
|
861
|
+
return this.d56_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
861
862
|
};
|
|
862
863
|
protoOf(NullRefImpl).equals = function (other) {
|
|
863
|
-
return this.
|
|
864
|
+
return this.d56_1.equals(other);
|
|
864
865
|
};
|
|
865
866
|
protoOf(NullRefImpl).structurallyEquals = function (other) {
|
|
866
|
-
return this.
|
|
867
|
+
return this.d56_1.structurallyEquals(other);
|
|
867
868
|
};
|
|
868
869
|
protoOf(NullRefImpl).castToAtom = function () {
|
|
869
|
-
return this.
|
|
870
|
+
return this.d56_1.castToAtom();
|
|
870
871
|
};
|
|
871
872
|
protoOf(NullRefImpl).castToClause = function () {
|
|
872
|
-
return this.
|
|
873
|
+
return this.d56_1.castToClause();
|
|
873
874
|
};
|
|
874
875
|
protoOf(NullRefImpl).castToCons = function () {
|
|
875
|
-
return this.
|
|
876
|
+
return this.d56_1.castToCons();
|
|
876
877
|
};
|
|
877
878
|
protoOf(NullRefImpl).castToConstant = function () {
|
|
878
|
-
return this.
|
|
879
|
+
return this.d56_1.castToConstant();
|
|
879
880
|
};
|
|
880
881
|
protoOf(NullRefImpl).castToDirective = function () {
|
|
881
|
-
return this.
|
|
882
|
+
return this.d56_1.castToDirective();
|
|
882
883
|
};
|
|
883
884
|
protoOf(NullRefImpl).castToEmptyList = function () {
|
|
884
|
-
return this.
|
|
885
|
+
return this.d56_1.castToEmptyList();
|
|
885
886
|
};
|
|
886
887
|
protoOf(NullRefImpl).castToEmptyBlock = function () {
|
|
887
|
-
return this.
|
|
888
|
+
return this.d56_1.castToEmptyBlock();
|
|
888
889
|
};
|
|
889
890
|
protoOf(NullRefImpl).castToFact = function () {
|
|
890
|
-
return this.
|
|
891
|
+
return this.d56_1.castToFact();
|
|
891
892
|
};
|
|
892
893
|
protoOf(NullRefImpl).castToIndicator = function () {
|
|
893
|
-
return this.
|
|
894
|
+
return this.d56_1.castToIndicator();
|
|
894
895
|
};
|
|
895
896
|
protoOf(NullRefImpl).castToInteger = function () {
|
|
896
|
-
return this.
|
|
897
|
+
return this.d56_1.castToInteger();
|
|
897
898
|
};
|
|
898
899
|
protoOf(NullRefImpl).castToList = function () {
|
|
899
|
-
return this.
|
|
900
|
+
return this.d56_1.castToList();
|
|
900
901
|
};
|
|
901
902
|
protoOf(NullRefImpl).castToNumeric = function () {
|
|
902
|
-
return this.
|
|
903
|
+
return this.d56_1.castToNumeric();
|
|
903
904
|
};
|
|
904
905
|
protoOf(NullRefImpl).castToReal = function () {
|
|
905
|
-
return this.
|
|
906
|
+
return this.d56_1.castToReal();
|
|
906
907
|
};
|
|
907
908
|
protoOf(NullRefImpl).castToRule = function () {
|
|
908
|
-
return this.
|
|
909
|
+
return this.d56_1.castToRule();
|
|
909
910
|
};
|
|
910
911
|
protoOf(NullRefImpl).castToBlock = function () {
|
|
911
|
-
return this.
|
|
912
|
+
return this.d56_1.castToBlock();
|
|
912
913
|
};
|
|
913
914
|
protoOf(NullRefImpl).castToStruct = function () {
|
|
914
|
-
return this.
|
|
915
|
+
return this.d56_1.castToStruct();
|
|
915
916
|
};
|
|
916
917
|
protoOf(NullRefImpl).castToRecursive = function () {
|
|
917
|
-
return this.
|
|
918
|
+
return this.d56_1.castToRecursive();
|
|
918
919
|
};
|
|
919
920
|
protoOf(NullRefImpl).castToTerm = function () {
|
|
920
|
-
return this.
|
|
921
|
+
return this.d56_1.castToTerm();
|
|
921
922
|
};
|
|
922
923
|
protoOf(NullRefImpl).castToTruth = function () {
|
|
923
|
-
return this.
|
|
924
|
+
return this.d56_1.castToTruth();
|
|
924
925
|
};
|
|
925
926
|
protoOf(NullRefImpl).castToTuple = function () {
|
|
926
|
-
return this.
|
|
927
|
+
return this.d56_1.castToTuple();
|
|
927
928
|
};
|
|
928
929
|
protoOf(NullRefImpl).castToVar = function () {
|
|
929
|
-
return this.
|
|
930
|
+
return this.d56_1.castToVar();
|
|
930
931
|
};
|
|
931
932
|
protoOf(NullRefImpl).asClause = function () {
|
|
932
|
-
return this.
|
|
933
|
+
return this.d56_1.asClause();
|
|
933
934
|
};
|
|
934
935
|
protoOf(NullRefImpl).asCons = function () {
|
|
935
|
-
return this.
|
|
936
|
+
return this.d56_1.asCons();
|
|
936
937
|
};
|
|
937
938
|
protoOf(NullRefImpl).asDirective = function () {
|
|
938
|
-
return this.
|
|
939
|
+
return this.d56_1.asDirective();
|
|
939
940
|
};
|
|
940
941
|
protoOf(NullRefImpl).asEmptyList = function () {
|
|
941
|
-
return this.
|
|
942
|
+
return this.d56_1.asEmptyList();
|
|
942
943
|
};
|
|
943
944
|
protoOf(NullRefImpl).asEmptyBlock = function () {
|
|
944
|
-
return this.
|
|
945
|
+
return this.d56_1.asEmptyBlock();
|
|
945
946
|
};
|
|
946
947
|
protoOf(NullRefImpl).asFact = function () {
|
|
947
|
-
return this.
|
|
948
|
+
return this.d56_1.asFact();
|
|
948
949
|
};
|
|
949
950
|
protoOf(NullRefImpl).asIndicator = function () {
|
|
950
|
-
return this.
|
|
951
|
+
return this.d56_1.asIndicator();
|
|
951
952
|
};
|
|
952
953
|
protoOf(NullRefImpl).asInteger = function () {
|
|
953
|
-
return this.
|
|
954
|
+
return this.d56_1.asInteger();
|
|
954
955
|
};
|
|
955
956
|
protoOf(NullRefImpl).asList = function () {
|
|
956
|
-
return this.
|
|
957
|
+
return this.d56_1.asList();
|
|
957
958
|
};
|
|
958
959
|
protoOf(NullRefImpl).asNumeric = function () {
|
|
959
|
-
return this.
|
|
960
|
+
return this.d56_1.asNumeric();
|
|
960
961
|
};
|
|
961
962
|
protoOf(NullRefImpl).asReal = function () {
|
|
962
|
-
return this.
|
|
963
|
+
return this.d56_1.asReal();
|
|
963
964
|
};
|
|
964
965
|
protoOf(NullRefImpl).asRule = function () {
|
|
965
|
-
return this.
|
|
966
|
+
return this.d56_1.asRule();
|
|
966
967
|
};
|
|
967
968
|
protoOf(NullRefImpl).asBlock = function () {
|
|
968
|
-
return this.
|
|
969
|
+
return this.d56_1.asBlock();
|
|
969
970
|
};
|
|
970
971
|
protoOf(NullRefImpl).asRecursive = function () {
|
|
971
|
-
return this.
|
|
972
|
+
return this.d56_1.asRecursive();
|
|
972
973
|
};
|
|
973
974
|
protoOf(NullRefImpl).asTerm = function () {
|
|
974
|
-
return this.
|
|
975
|
+
return this.d56_1.asTerm();
|
|
975
976
|
};
|
|
976
977
|
protoOf(NullRefImpl).asTruth = function () {
|
|
977
|
-
return this.
|
|
978
|
+
return this.d56_1.asTruth();
|
|
978
979
|
};
|
|
979
980
|
protoOf(NullRefImpl).asTuple = function () {
|
|
980
|
-
return this.
|
|
981
|
+
return this.d56_1.asTuple();
|
|
981
982
|
};
|
|
982
983
|
protoOf(NullRefImpl).asVar = function () {
|
|
983
|
-
return this.
|
|
984
|
+
return this.d56_1.asVar();
|
|
984
985
|
};
|
|
985
986
|
protoOf(NullRefImpl).hashCode = function () {
|
|
986
|
-
return this.
|
|
987
|
+
return this.d56_1.hashCode();
|
|
987
988
|
};
|
|
988
989
|
protoOf(NullRefImpl).toString = function () {
|
|
989
|
-
return this.
|
|
990
|
+
return this.d56_1.toString();
|
|
990
991
|
};
|
|
991
|
-
protoOf(NullRefImpl).
|
|
992
|
-
return this.
|
|
992
|
+
protoOf(NullRefImpl).t14 = function () {
|
|
993
|
+
return this.d56_1.t14();
|
|
993
994
|
};
|
|
994
|
-
protoOf(NullRefImpl).
|
|
995
|
-
return this.
|
|
995
|
+
protoOf(NullRefImpl).u14 = function () {
|
|
996
|
+
return this.d56_1.u14();
|
|
996
997
|
};
|
|
997
|
-
protoOf(NullRefImpl).
|
|
998
|
-
return this.
|
|
998
|
+
protoOf(NullRefImpl).v14 = function () {
|
|
999
|
+
return this.d56_1.v14();
|
|
999
1000
|
};
|
|
1000
|
-
protoOf(NullRefImpl).
|
|
1001
|
-
return this.
|
|
1001
|
+
protoOf(NullRefImpl).x14 = function () {
|
|
1002
|
+
return this.d56_1.x14();
|
|
1002
1003
|
};
|
|
1003
|
-
protoOf(NullRefImpl).
|
|
1004
|
-
return this.
|
|
1004
|
+
protoOf(NullRefImpl).xo = function () {
|
|
1005
|
+
return this.d56_1.xo();
|
|
1005
1006
|
};
|
|
1006
|
-
protoOf(NullRefImpl).
|
|
1007
|
-
return this.
|
|
1007
|
+
protoOf(NullRefImpl).y14 = function () {
|
|
1008
|
+
return this.d56_1.y14();
|
|
1008
1009
|
};
|
|
1009
1010
|
protoOf(NullRefImpl).getTag = function (name) {
|
|
1010
|
-
return this.
|
|
1011
|
+
return this.d56_1.getTag(name);
|
|
1011
1012
|
};
|
|
1012
1013
|
protoOf(NullRefImpl).resetTags = function (tags) {
|
|
1013
|
-
return this.
|
|
1014
|
+
return this.d56_1.resetTags(tags);
|
|
1014
1015
|
};
|
|
1015
1016
|
protoOf(NullRefImpl).containsTag = function (name) {
|
|
1016
|
-
return this.
|
|
1017
|
+
return this.d56_1.containsTag(name);
|
|
1017
1018
|
};
|
|
1018
|
-
protoOf(NullRefImpl).
|
|
1019
|
-
return this.
|
|
1019
|
+
protoOf(NullRefImpl).gz = function () {
|
|
1020
|
+
return this.d56_1.gz();
|
|
1020
1021
|
};
|
|
1021
|
-
protoOf(NullRefImpl).
|
|
1022
|
-
return this.
|
|
1022
|
+
protoOf(NullRefImpl).a15 = function () {
|
|
1023
|
+
return this.d56_1.a15();
|
|
1023
1024
|
};
|
|
1024
1025
|
var NullRefImpl_instance;
|
|
1025
1026
|
function NullRefImpl_getInstance() {
|
|
@@ -1028,349 +1029,349 @@
|
|
|
1028
1029
|
return NullRefImpl_instance;
|
|
1029
1030
|
}
|
|
1030
1031
|
function ObjectRefImpl(object) {
|
|
1031
|
-
this.
|
|
1032
|
-
this.
|
|
1032
|
+
this.e56_1 = Companion_getInstance_0().of(Companion_getInstance_10().z54(object));
|
|
1033
|
+
this.f56_1 = object;
|
|
1033
1034
|
}
|
|
1034
|
-
protoOf(ObjectRefImpl).
|
|
1035
|
-
return this.
|
|
1035
|
+
protoOf(ObjectRefImpl).r54 = function () {
|
|
1036
|
+
return this.f56_1;
|
|
1036
1037
|
};
|
|
1037
|
-
protoOf(ObjectRefImpl).
|
|
1038
|
+
protoOf(ObjectRefImpl).w14 = function () {
|
|
1038
1039
|
return true;
|
|
1039
1040
|
};
|
|
1040
|
-
protoOf(ObjectRefImpl).
|
|
1041
|
+
protoOf(ObjectRefImpl).z14 = function () {
|
|
1041
1042
|
return this;
|
|
1042
1043
|
};
|
|
1043
1044
|
protoOf(ObjectRefImpl).asConstant = function () {
|
|
1044
|
-
return this.
|
|
1045
|
+
return this.z14();
|
|
1045
1046
|
};
|
|
1046
|
-
protoOf(ObjectRefImpl).
|
|
1047
|
-
return invoke_0(this.
|
|
1047
|
+
protoOf(ObjectRefImpl).s54 = function (objectConverter, methodName, arguments_0) {
|
|
1048
|
+
return invoke_0(this.f56_1, objectConverter, methodName, arguments_0);
|
|
1048
1049
|
};
|
|
1049
|
-
protoOf(ObjectRefImpl).
|
|
1050
|
-
assign_0(this.
|
|
1050
|
+
protoOf(ObjectRefImpl).t54 = function (objectConverter, propertyName, value) {
|
|
1051
|
+
assign_0(this.f56_1, objectConverter, propertyName, value);
|
|
1051
1052
|
return true;
|
|
1052
1053
|
};
|
|
1053
|
-
protoOf(ObjectRefImpl).
|
|
1054
|
+
protoOf(ObjectRefImpl).a14 = function () {
|
|
1054
1055
|
return this;
|
|
1055
1056
|
};
|
|
1056
1057
|
protoOf(ObjectRefImpl).freshCopy = function () {
|
|
1057
|
-
return this.
|
|
1058
|
+
return this.a14();
|
|
1058
1059
|
};
|
|
1059
|
-
protoOf(ObjectRefImpl).
|
|
1060
|
+
protoOf(ObjectRefImpl).b14 = function (scope) {
|
|
1060
1061
|
return this;
|
|
1061
1062
|
};
|
|
1062
1063
|
protoOf(ObjectRefImpl).freshCopyFromScope = function (scope) {
|
|
1063
|
-
return this.
|
|
1064
|
+
return this.b14(scope);
|
|
1064
1065
|
};
|
|
1065
|
-
protoOf(ObjectRefImpl).
|
|
1066
|
+
protoOf(ObjectRefImpl).r14 = function () {
|
|
1066
1067
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1067
1068
|
};
|
|
1068
|
-
protoOf(ObjectRefImpl).
|
|
1069
|
-
return this.
|
|
1069
|
+
protoOf(ObjectRefImpl).wx = function () {
|
|
1070
|
+
return this.r14();
|
|
1070
1071
|
};
|
|
1071
|
-
protoOf(ObjectRefImpl).
|
|
1072
|
+
protoOf(ObjectRefImpl).x1e = function (substitution) {
|
|
1072
1073
|
return this;
|
|
1073
1074
|
};
|
|
1074
1075
|
protoOf(ObjectRefImpl).applySubstitution = function (substitution) {
|
|
1075
|
-
return this.
|
|
1076
|
+
return this.x1e(substitution);
|
|
1076
1077
|
};
|
|
1077
|
-
protoOf(ObjectRefImpl).
|
|
1078
|
+
protoOf(ObjectRefImpl).v32 = function (substitution, substitutions) {
|
|
1078
1079
|
return this;
|
|
1079
1080
|
};
|
|
1080
1081
|
protoOf(ObjectRefImpl).apply = function (substitution, substitutions) {
|
|
1081
|
-
return this.
|
|
1082
|
+
return this.v32(substitution, substitutions);
|
|
1082
1083
|
};
|
|
1083
|
-
protoOf(ObjectRefImpl).
|
|
1084
|
+
protoOf(ObjectRefImpl).u32 = function (substitution, substitutions) {
|
|
1084
1085
|
return this;
|
|
1085
1086
|
};
|
|
1086
1087
|
protoOf(ObjectRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1087
|
-
return this.
|
|
1088
|
+
return this.u32(substitution, substitutions);
|
|
1088
1089
|
};
|
|
1089
|
-
protoOf(ObjectRefImpl).
|
|
1090
|
+
protoOf(ObjectRefImpl).v1d = function (visitor) {
|
|
1090
1091
|
return visitor.visitAtom(this);
|
|
1091
1092
|
};
|
|
1092
1093
|
protoOf(ObjectRefImpl).accept = function (visitor) {
|
|
1093
|
-
return this.
|
|
1094
|
+
return this.v1d(visitor);
|
|
1094
1095
|
};
|
|
1095
|
-
protoOf(ObjectRefImpl).
|
|
1096
|
-
return this.
|
|
1096
|
+
protoOf(ObjectRefImpl).c14 = function () {
|
|
1097
|
+
return this.e56_1.c14();
|
|
1097
1098
|
};
|
|
1098
1099
|
protoOf(ObjectRefImpl).asAtom = function () {
|
|
1099
|
-
return this.
|
|
1100
|
+
return this.c14();
|
|
1100
1101
|
};
|
|
1101
|
-
protoOf(ObjectRefImpl).
|
|
1102
|
-
return this.
|
|
1102
|
+
protoOf(ObjectRefImpl).r13 = function () {
|
|
1103
|
+
return this.e56_1.r13();
|
|
1103
1104
|
};
|
|
1104
|
-
protoOf(ObjectRefImpl).
|
|
1105
|
-
return this.
|
|
1105
|
+
protoOf(ObjectRefImpl).s13 = function () {
|
|
1106
|
+
return this.e56_1.s13();
|
|
1106
1107
|
};
|
|
1107
|
-
protoOf(ObjectRefImpl).
|
|
1108
|
-
return this.
|
|
1108
|
+
protoOf(ObjectRefImpl).t13 = function () {
|
|
1109
|
+
return this.e56_1.t13();
|
|
1109
1110
|
};
|
|
1110
|
-
protoOf(ObjectRefImpl).
|
|
1111
|
-
return this.
|
|
1111
|
+
protoOf(ObjectRefImpl).u13 = function () {
|
|
1112
|
+
return this.e56_1.u13();
|
|
1112
1113
|
};
|
|
1113
|
-
protoOf(ObjectRefImpl).
|
|
1114
|
-
return this.
|
|
1114
|
+
protoOf(ObjectRefImpl).v13 = function () {
|
|
1115
|
+
return this.e56_1.v13();
|
|
1115
1116
|
};
|
|
1116
1117
|
protoOf(ObjectRefImpl).f1 = function () {
|
|
1117
|
-
return this.
|
|
1118
|
+
return this.e56_1.f1();
|
|
1118
1119
|
};
|
|
1119
|
-
protoOf(ObjectRefImpl).
|
|
1120
|
-
return this.
|
|
1120
|
+
protoOf(ObjectRefImpl).y13 = function () {
|
|
1121
|
+
return this.e56_1.y13();
|
|
1121
1122
|
};
|
|
1122
|
-
protoOf(ObjectRefImpl).
|
|
1123
|
-
return this.
|
|
1123
|
+
protoOf(ObjectRefImpl).z13 = function () {
|
|
1124
|
+
return this.e56_1.z13();
|
|
1124
1125
|
};
|
|
1125
|
-
protoOf(ObjectRefImpl).
|
|
1126
|
-
return this.
|
|
1126
|
+
protoOf(ObjectRefImpl).n14 = function () {
|
|
1127
|
+
return this.e56_1.n14();
|
|
1127
1128
|
};
|
|
1128
1129
|
protoOf(ObjectRefImpl).asStruct = function () {
|
|
1129
|
-
return this.
|
|
1130
|
+
return this.n14();
|
|
1130
1131
|
};
|
|
1131
1132
|
protoOf(ObjectRefImpl).append = function (argument) {
|
|
1132
|
-
return this.
|
|
1133
|
+
return this.e56_1.append(argument);
|
|
1133
1134
|
};
|
|
1134
1135
|
protoOf(ObjectRefImpl).addLast = function (argument) {
|
|
1135
|
-
return this.
|
|
1136
|
+
return this.e56_1.addLast(argument);
|
|
1136
1137
|
};
|
|
1137
1138
|
protoOf(ObjectRefImpl).addFirst = function (argument) {
|
|
1138
|
-
return this.
|
|
1139
|
+
return this.e56_1.addFirst(argument);
|
|
1139
1140
|
};
|
|
1140
1141
|
protoOf(ObjectRefImpl).insertAt = function (index, argument) {
|
|
1141
|
-
return this.
|
|
1142
|
+
return this.e56_1.insertAt(index, argument);
|
|
1142
1143
|
};
|
|
1143
1144
|
protoOf(ObjectRefImpl).setFunctor = function (functor) {
|
|
1144
|
-
return this.
|
|
1145
|
+
return this.e56_1.setFunctor(functor);
|
|
1145
1146
|
};
|
|
1146
1147
|
protoOf(ObjectRefImpl).getArgAt = function (index) {
|
|
1147
|
-
return this.
|
|
1148
|
+
return this.e56_1.getArgAt(index);
|
|
1148
1149
|
};
|
|
1149
1150
|
protoOf(ObjectRefImpl).setArgs = function (args) {
|
|
1150
|
-
return this.
|
|
1151
|
+
return this.e56_1.setArgs(args);
|
|
1151
1152
|
};
|
|
1152
1153
|
protoOf(ObjectRefImpl).setArgsIterable = function (args) {
|
|
1153
|
-
return this.
|
|
1154
|
+
return this.e56_1.setArgsIterable(args);
|
|
1154
1155
|
};
|
|
1155
1156
|
protoOf(ObjectRefImpl).setArgsSequence = function (args) {
|
|
1156
|
-
return this.
|
|
1157
|
+
return this.e56_1.setArgsSequence(args);
|
|
1157
1158
|
};
|
|
1158
1159
|
protoOf(ObjectRefImpl).get = function (index) {
|
|
1159
|
-
return this.
|
|
1160
|
+
return this.e56_1.get(index);
|
|
1160
1161
|
};
|
|
1161
|
-
protoOf(ObjectRefImpl).
|
|
1162
|
-
return this.
|
|
1162
|
+
protoOf(ObjectRefImpl).d14 = function () {
|
|
1163
|
+
return this.e56_1.d14();
|
|
1163
1164
|
};
|
|
1164
|
-
protoOf(ObjectRefImpl).
|
|
1165
|
-
return this.
|
|
1165
|
+
protoOf(ObjectRefImpl).e14 = function () {
|
|
1166
|
+
return this.e56_1.e14();
|
|
1166
1167
|
};
|
|
1167
|
-
protoOf(ObjectRefImpl).
|
|
1168
|
-
return this.
|
|
1168
|
+
protoOf(ObjectRefImpl).f14 = function () {
|
|
1169
|
+
return this.e56_1.f14();
|
|
1169
1170
|
};
|
|
1170
|
-
protoOf(ObjectRefImpl).
|
|
1171
|
-
return this.
|
|
1171
|
+
protoOf(ObjectRefImpl).i14 = function () {
|
|
1172
|
+
return this.e56_1.i14();
|
|
1172
1173
|
};
|
|
1173
|
-
protoOf(ObjectRefImpl).
|
|
1174
|
-
return this.
|
|
1174
|
+
protoOf(ObjectRefImpl).j14 = function () {
|
|
1175
|
+
return this.e56_1.j14();
|
|
1175
1176
|
};
|
|
1176
|
-
protoOf(ObjectRefImpl).
|
|
1177
|
-
return this.
|
|
1177
|
+
protoOf(ObjectRefImpl).k14 = function () {
|
|
1178
|
+
return this.e56_1.k14();
|
|
1178
1179
|
};
|
|
1179
|
-
protoOf(ObjectRefImpl).
|
|
1180
|
-
return this.
|
|
1180
|
+
protoOf(ObjectRefImpl).m14 = function () {
|
|
1181
|
+
return this.e56_1.m14();
|
|
1181
1182
|
};
|
|
1182
|
-
protoOf(ObjectRefImpl).
|
|
1183
|
-
return this.
|
|
1183
|
+
protoOf(ObjectRefImpl).x13 = function () {
|
|
1184
|
+
return this.e56_1.x13();
|
|
1184
1185
|
};
|
|
1185
|
-
protoOf(ObjectRefImpl).
|
|
1186
|
-
return this.
|
|
1186
|
+
protoOf(ObjectRefImpl).o14 = function () {
|
|
1187
|
+
return this.e56_1.o14();
|
|
1187
1188
|
};
|
|
1188
|
-
protoOf(ObjectRefImpl).
|
|
1189
|
-
return this.
|
|
1189
|
+
protoOf(ObjectRefImpl).p14 = function () {
|
|
1190
|
+
return this.e56_1.p14();
|
|
1190
1191
|
};
|
|
1191
|
-
protoOf(ObjectRefImpl).
|
|
1192
|
-
return this.
|
|
1192
|
+
protoOf(ObjectRefImpl).q14 = function () {
|
|
1193
|
+
return this.e56_1.q14();
|
|
1193
1194
|
};
|
|
1194
|
-
protoOf(ObjectRefImpl).
|
|
1195
|
-
return this.
|
|
1195
|
+
protoOf(ObjectRefImpl).s14 = function (other) {
|
|
1196
|
+
return this.e56_1.s14(other);
|
|
1196
1197
|
};
|
|
1197
1198
|
protoOf(ObjectRefImpl).d = function (other) {
|
|
1198
|
-
return this.
|
|
1199
|
+
return this.s14((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1199
1200
|
};
|
|
1200
1201
|
protoOf(ObjectRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1201
|
-
return this.
|
|
1202
|
+
return this.e56_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1202
1203
|
};
|
|
1203
1204
|
protoOf(ObjectRefImpl).equals = function (other) {
|
|
1204
|
-
return this.
|
|
1205
|
+
return this.e56_1.equals(other);
|
|
1205
1206
|
};
|
|
1206
1207
|
protoOf(ObjectRefImpl).structurallyEquals = function (other) {
|
|
1207
|
-
return this.
|
|
1208
|
+
return this.e56_1.structurallyEquals(other);
|
|
1208
1209
|
};
|
|
1209
1210
|
protoOf(ObjectRefImpl).castToAtom = function () {
|
|
1210
|
-
return this.
|
|
1211
|
+
return this.e56_1.castToAtom();
|
|
1211
1212
|
};
|
|
1212
1213
|
protoOf(ObjectRefImpl).castToClause = function () {
|
|
1213
|
-
return this.
|
|
1214
|
+
return this.e56_1.castToClause();
|
|
1214
1215
|
};
|
|
1215
1216
|
protoOf(ObjectRefImpl).castToCons = function () {
|
|
1216
|
-
return this.
|
|
1217
|
+
return this.e56_1.castToCons();
|
|
1217
1218
|
};
|
|
1218
1219
|
protoOf(ObjectRefImpl).castToConstant = function () {
|
|
1219
|
-
return this.
|
|
1220
|
+
return this.e56_1.castToConstant();
|
|
1220
1221
|
};
|
|
1221
1222
|
protoOf(ObjectRefImpl).castToDirective = function () {
|
|
1222
|
-
return this.
|
|
1223
|
+
return this.e56_1.castToDirective();
|
|
1223
1224
|
};
|
|
1224
1225
|
protoOf(ObjectRefImpl).castToEmptyList = function () {
|
|
1225
|
-
return this.
|
|
1226
|
+
return this.e56_1.castToEmptyList();
|
|
1226
1227
|
};
|
|
1227
1228
|
protoOf(ObjectRefImpl).castToEmptyBlock = function () {
|
|
1228
|
-
return this.
|
|
1229
|
+
return this.e56_1.castToEmptyBlock();
|
|
1229
1230
|
};
|
|
1230
1231
|
protoOf(ObjectRefImpl).castToFact = function () {
|
|
1231
|
-
return this.
|
|
1232
|
+
return this.e56_1.castToFact();
|
|
1232
1233
|
};
|
|
1233
1234
|
protoOf(ObjectRefImpl).castToIndicator = function () {
|
|
1234
|
-
return this.
|
|
1235
|
+
return this.e56_1.castToIndicator();
|
|
1235
1236
|
};
|
|
1236
1237
|
protoOf(ObjectRefImpl).castToInteger = function () {
|
|
1237
|
-
return this.
|
|
1238
|
+
return this.e56_1.castToInteger();
|
|
1238
1239
|
};
|
|
1239
1240
|
protoOf(ObjectRefImpl).castToList = function () {
|
|
1240
|
-
return this.
|
|
1241
|
+
return this.e56_1.castToList();
|
|
1241
1242
|
};
|
|
1242
1243
|
protoOf(ObjectRefImpl).castToNumeric = function () {
|
|
1243
|
-
return this.
|
|
1244
|
+
return this.e56_1.castToNumeric();
|
|
1244
1245
|
};
|
|
1245
1246
|
protoOf(ObjectRefImpl).castToReal = function () {
|
|
1246
|
-
return this.
|
|
1247
|
+
return this.e56_1.castToReal();
|
|
1247
1248
|
};
|
|
1248
1249
|
protoOf(ObjectRefImpl).castToRule = function () {
|
|
1249
|
-
return this.
|
|
1250
|
+
return this.e56_1.castToRule();
|
|
1250
1251
|
};
|
|
1251
1252
|
protoOf(ObjectRefImpl).castToBlock = function () {
|
|
1252
|
-
return this.
|
|
1253
|
+
return this.e56_1.castToBlock();
|
|
1253
1254
|
};
|
|
1254
1255
|
protoOf(ObjectRefImpl).castToStruct = function () {
|
|
1255
|
-
return this.
|
|
1256
|
+
return this.e56_1.castToStruct();
|
|
1256
1257
|
};
|
|
1257
1258
|
protoOf(ObjectRefImpl).castToRecursive = function () {
|
|
1258
|
-
return this.
|
|
1259
|
+
return this.e56_1.castToRecursive();
|
|
1259
1260
|
};
|
|
1260
1261
|
protoOf(ObjectRefImpl).castToTerm = function () {
|
|
1261
|
-
return this.
|
|
1262
|
+
return this.e56_1.castToTerm();
|
|
1262
1263
|
};
|
|
1263
1264
|
protoOf(ObjectRefImpl).castToTruth = function () {
|
|
1264
|
-
return this.
|
|
1265
|
+
return this.e56_1.castToTruth();
|
|
1265
1266
|
};
|
|
1266
1267
|
protoOf(ObjectRefImpl).castToTuple = function () {
|
|
1267
|
-
return this.
|
|
1268
|
+
return this.e56_1.castToTuple();
|
|
1268
1269
|
};
|
|
1269
1270
|
protoOf(ObjectRefImpl).castToVar = function () {
|
|
1270
|
-
return this.
|
|
1271
|
+
return this.e56_1.castToVar();
|
|
1271
1272
|
};
|
|
1272
1273
|
protoOf(ObjectRefImpl).asClause = function () {
|
|
1273
|
-
return this.
|
|
1274
|
+
return this.e56_1.asClause();
|
|
1274
1275
|
};
|
|
1275
1276
|
protoOf(ObjectRefImpl).asCons = function () {
|
|
1276
|
-
return this.
|
|
1277
|
+
return this.e56_1.asCons();
|
|
1277
1278
|
};
|
|
1278
1279
|
protoOf(ObjectRefImpl).asDirective = function () {
|
|
1279
|
-
return this.
|
|
1280
|
+
return this.e56_1.asDirective();
|
|
1280
1281
|
};
|
|
1281
1282
|
protoOf(ObjectRefImpl).asEmptyList = function () {
|
|
1282
|
-
return this.
|
|
1283
|
+
return this.e56_1.asEmptyList();
|
|
1283
1284
|
};
|
|
1284
1285
|
protoOf(ObjectRefImpl).asEmptyBlock = function () {
|
|
1285
|
-
return this.
|
|
1286
|
+
return this.e56_1.asEmptyBlock();
|
|
1286
1287
|
};
|
|
1287
1288
|
protoOf(ObjectRefImpl).asFact = function () {
|
|
1288
|
-
return this.
|
|
1289
|
+
return this.e56_1.asFact();
|
|
1289
1290
|
};
|
|
1290
1291
|
protoOf(ObjectRefImpl).asIndicator = function () {
|
|
1291
|
-
return this.
|
|
1292
|
+
return this.e56_1.asIndicator();
|
|
1292
1293
|
};
|
|
1293
1294
|
protoOf(ObjectRefImpl).asInteger = function () {
|
|
1294
|
-
return this.
|
|
1295
|
+
return this.e56_1.asInteger();
|
|
1295
1296
|
};
|
|
1296
1297
|
protoOf(ObjectRefImpl).asList = function () {
|
|
1297
|
-
return this.
|
|
1298
|
+
return this.e56_1.asList();
|
|
1298
1299
|
};
|
|
1299
1300
|
protoOf(ObjectRefImpl).asNumeric = function () {
|
|
1300
|
-
return this.
|
|
1301
|
+
return this.e56_1.asNumeric();
|
|
1301
1302
|
};
|
|
1302
1303
|
protoOf(ObjectRefImpl).asReal = function () {
|
|
1303
|
-
return this.
|
|
1304
|
+
return this.e56_1.asReal();
|
|
1304
1305
|
};
|
|
1305
1306
|
protoOf(ObjectRefImpl).asRule = function () {
|
|
1306
|
-
return this.
|
|
1307
|
+
return this.e56_1.asRule();
|
|
1307
1308
|
};
|
|
1308
1309
|
protoOf(ObjectRefImpl).asBlock = function () {
|
|
1309
|
-
return this.
|
|
1310
|
+
return this.e56_1.asBlock();
|
|
1310
1311
|
};
|
|
1311
1312
|
protoOf(ObjectRefImpl).asRecursive = function () {
|
|
1312
|
-
return this.
|
|
1313
|
+
return this.e56_1.asRecursive();
|
|
1313
1314
|
};
|
|
1314
1315
|
protoOf(ObjectRefImpl).asTerm = function () {
|
|
1315
|
-
return this.
|
|
1316
|
+
return this.e56_1.asTerm();
|
|
1316
1317
|
};
|
|
1317
1318
|
protoOf(ObjectRefImpl).asTruth = function () {
|
|
1318
|
-
return this.
|
|
1319
|
+
return this.e56_1.asTruth();
|
|
1319
1320
|
};
|
|
1320
1321
|
protoOf(ObjectRefImpl).asTuple = function () {
|
|
1321
|
-
return this.
|
|
1322
|
+
return this.e56_1.asTuple();
|
|
1322
1323
|
};
|
|
1323
1324
|
protoOf(ObjectRefImpl).asVar = function () {
|
|
1324
|
-
return this.
|
|
1325
|
+
return this.e56_1.asVar();
|
|
1325
1326
|
};
|
|
1326
1327
|
protoOf(ObjectRefImpl).hashCode = function () {
|
|
1327
|
-
return this.
|
|
1328
|
+
return this.e56_1.hashCode();
|
|
1328
1329
|
};
|
|
1329
1330
|
protoOf(ObjectRefImpl).toString = function () {
|
|
1330
|
-
return this.
|
|
1331
|
+
return this.e56_1.toString();
|
|
1331
1332
|
};
|
|
1332
|
-
protoOf(ObjectRefImpl).
|
|
1333
|
-
return this.
|
|
1333
|
+
protoOf(ObjectRefImpl).t14 = function () {
|
|
1334
|
+
return this.e56_1.t14();
|
|
1334
1335
|
};
|
|
1335
|
-
protoOf(ObjectRefImpl).
|
|
1336
|
-
return this.
|
|
1336
|
+
protoOf(ObjectRefImpl).u14 = function () {
|
|
1337
|
+
return this.e56_1.u14();
|
|
1337
1338
|
};
|
|
1338
|
-
protoOf(ObjectRefImpl).
|
|
1339
|
-
return this.
|
|
1339
|
+
protoOf(ObjectRefImpl).v14 = function () {
|
|
1340
|
+
return this.e56_1.v14();
|
|
1340
1341
|
};
|
|
1341
|
-
protoOf(ObjectRefImpl).
|
|
1342
|
-
return this.
|
|
1342
|
+
protoOf(ObjectRefImpl).x14 = function () {
|
|
1343
|
+
return this.e56_1.x14();
|
|
1343
1344
|
};
|
|
1344
|
-
protoOf(ObjectRefImpl).
|
|
1345
|
-
return this.
|
|
1345
|
+
protoOf(ObjectRefImpl).xo = function () {
|
|
1346
|
+
return this.e56_1.xo();
|
|
1346
1347
|
};
|
|
1347
|
-
protoOf(ObjectRefImpl).
|
|
1348
|
-
return this.
|
|
1348
|
+
protoOf(ObjectRefImpl).y14 = function () {
|
|
1349
|
+
return this.e56_1.y14();
|
|
1349
1350
|
};
|
|
1350
1351
|
protoOf(ObjectRefImpl).getTag = function (name) {
|
|
1351
|
-
return this.
|
|
1352
|
+
return this.e56_1.getTag(name);
|
|
1352
1353
|
};
|
|
1353
1354
|
protoOf(ObjectRefImpl).resetTags = function (tags) {
|
|
1354
|
-
return this.
|
|
1355
|
+
return this.e56_1.resetTags(tags);
|
|
1355
1356
|
};
|
|
1356
1357
|
protoOf(ObjectRefImpl).containsTag = function (name) {
|
|
1357
|
-
return this.
|
|
1358
|
+
return this.e56_1.containsTag(name);
|
|
1358
1359
|
};
|
|
1359
|
-
protoOf(ObjectRefImpl).
|
|
1360
|
-
return this.
|
|
1360
|
+
protoOf(ObjectRefImpl).gz = function () {
|
|
1361
|
+
return this.e56_1.gz();
|
|
1361
1362
|
};
|
|
1362
|
-
protoOf(ObjectRefImpl).
|
|
1363
|
-
return this.
|
|
1363
|
+
protoOf(ObjectRefImpl).a15 = function () {
|
|
1364
|
+
return this.e56_1.a15();
|
|
1364
1365
|
};
|
|
1365
1366
|
function ObjectToTermConverterImpl() {
|
|
1366
|
-
this.
|
|
1367
|
+
this.g56_1 = new NumberTypeTester();
|
|
1367
1368
|
}
|
|
1368
|
-
protoOf(ObjectToTermConverterImpl).
|
|
1369
|
+
protoOf(ObjectToTermConverterImpl).g55 = function (source) {
|
|
1369
1370
|
// Inline function 'kotlin.with' call
|
|
1370
|
-
var $this$with = this.
|
|
1371
|
+
var $this$with = this.g56_1;
|
|
1371
1372
|
var tmp;
|
|
1372
1373
|
if (source == null) {
|
|
1373
|
-
tmp = Companion_getInstance_10().
|
|
1374
|
+
tmp = Companion_getInstance_10().y54_1;
|
|
1374
1375
|
} else {
|
|
1375
1376
|
if (typeof source === 'string') {
|
|
1376
1377
|
tmp = Companion_getInstance_0().of(source);
|
|
@@ -1382,7 +1383,7 @@
|
|
|
1382
1383
|
tmp = Companion_getInstance_2().ofBigDecimal(source);
|
|
1383
1384
|
} else {
|
|
1384
1385
|
if (isNumber(source)) {
|
|
1385
|
-
tmp = $this$with.
|
|
1386
|
+
tmp = $this$with.yy(source) ? Companion_getInstance_3().ofBigInteger($this$with.zy(source)) : Companion_getInstance_2().ofBigDecimal($this$with.az(source));
|
|
1386
1387
|
} else {
|
|
1387
1388
|
if (source instanceof Char) {
|
|
1388
1389
|
var tmp_0 = Companion_getInstance_0();
|
|
@@ -1393,7 +1394,7 @@
|
|
|
1393
1394
|
if (typeof source === 'boolean') {
|
|
1394
1395
|
tmp = Companion_getInstance_1().of(source);
|
|
1395
1396
|
} else {
|
|
1396
|
-
tmp = Companion_getInstance_10().
|
|
1397
|
+
tmp = Companion_getInstance_10().a55(source);
|
|
1397
1398
|
}
|
|
1398
1399
|
}
|
|
1399
1400
|
}
|
|
@@ -1406,7 +1407,7 @@
|
|
|
1406
1407
|
function explicitConversion($this, castExpression, term, type) {
|
|
1407
1408
|
var targetType = getType($this, castExpression, type);
|
|
1408
1409
|
try {
|
|
1409
|
-
return $this.
|
|
1410
|
+
return $this.m55(targetType, term);
|
|
1410
1411
|
} catch ($p) {
|
|
1411
1412
|
if ($p instanceof TermToObjectConversionException) {
|
|
1412
1413
|
var e = $p;
|
|
@@ -1424,10 +1425,10 @@
|
|
|
1424
1425
|
function getType($this, castExpression, typeTerm) {
|
|
1425
1426
|
var tmp;
|
|
1426
1427
|
if (isInterface(typeTerm, TypeRef)) {
|
|
1427
|
-
tmp = typeTerm.
|
|
1428
|
+
tmp = typeTerm.b2e();
|
|
1428
1429
|
} else {
|
|
1429
1430
|
if (isInterface(typeTerm, Atom)) {
|
|
1430
|
-
var tmp1_elvis_lhs = $this.
|
|
1431
|
+
var tmp1_elvis_lhs = $this.h56_1.r55(typeTerm.f1());
|
|
1431
1432
|
var tmp_0;
|
|
1432
1433
|
if (tmp1_elvis_lhs == null) {
|
|
1433
1434
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
@@ -1439,10 +1440,10 @@
|
|
|
1439
1440
|
if (isInterface(typeTerm, Struct)) {
|
|
1440
1441
|
var tmp_1;
|
|
1441
1442
|
if (Companion_getInstance().matches(typeTerm, get_DEALIASING_TEMPLATE())) {
|
|
1442
|
-
var ref = $this.
|
|
1443
|
+
var ref = $this.i56_1(typeTerm);
|
|
1443
1444
|
var tmp_2;
|
|
1444
1445
|
if (!(ref == null) ? isInterface(ref, TypeRef) : false) {
|
|
1445
|
-
tmp_2 = ref.
|
|
1446
|
+
tmp_2 = ref.b2e();
|
|
1446
1447
|
} else {
|
|
1447
1448
|
throw TermToObjectConversionException_init_$Create$(castExpression);
|
|
1448
1449
|
}
|
|
@@ -1467,50 +1468,50 @@
|
|
|
1467
1468
|
tmp_0 = isInterface(term, Var);
|
|
1468
1469
|
}
|
|
1469
1470
|
if (tmp_0) {
|
|
1470
|
-
tmp = sequenceOf(PrimitiveClasses_getInstance().
|
|
1471
|
+
tmp = sequenceOf(PrimitiveClasses_getInstance().da());
|
|
1471
1472
|
} else {
|
|
1472
1473
|
if (isInterface(term, ObjectRef)) {
|
|
1473
|
-
tmp = sequenceOf(getKClassFromExpression(term.
|
|
1474
|
+
tmp = sequenceOf(getKClassFromExpression(term.r54()));
|
|
1474
1475
|
} else {
|
|
1475
1476
|
if (isInterface(term, Truth)) {
|
|
1476
|
-
tmp = sequenceOf_0([PrimitiveClasses_getInstance().
|
|
1477
|
+
tmp = sequenceOf_0([PrimitiveClasses_getInstance().ea(), PrimitiveClasses_getInstance().ma()]);
|
|
1477
1478
|
} else {
|
|
1478
1479
|
if (isInterface(term, Atom)) {
|
|
1479
|
-
var admissible = sequenceOf(PrimitiveClasses_getInstance().
|
|
1480
|
+
var admissible = sequenceOf(PrimitiveClasses_getInstance().ma());
|
|
1480
1481
|
if (term.f1().length === 1) {
|
|
1481
1482
|
admissible = plus(admissible, sequenceOf(getKClass(Char)));
|
|
1482
1483
|
}
|
|
1483
1484
|
tmp = admissible;
|
|
1484
1485
|
} else {
|
|
1485
1486
|
if (isInterface(term, Real)) {
|
|
1486
|
-
tmp = sequenceOf_0([getKClass(BigDecimal), PrimitiveClasses_getInstance().
|
|
1487
|
+
tmp = sequenceOf_0([getKClass(BigDecimal), PrimitiveClasses_getInstance().ka(), PrimitiveClasses_getInstance().ja()]);
|
|
1487
1488
|
} else {
|
|
1488
1489
|
if (isInterface(term, Integer)) {
|
|
1489
1490
|
var admissible_0 = sequenceOf(getKClass(BigInteger));
|
|
1490
|
-
if (Companion_getInstance_4().ofLong(-9223372036854775808n).rangeTo(Companion_getInstance_4().ofLong(9223372036854775807n)).
|
|
1491
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1491
|
+
if (Companion_getInstance_4().ofLong(-9223372036854775808n).rangeTo(Companion_getInstance_4().ofLong(9223372036854775807n)).j1(term.t17())) {
|
|
1492
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ia()));
|
|
1492
1493
|
}
|
|
1493
|
-
if (Companion_getInstance_4().of(-2147483648).rangeTo(Companion_getInstance_4().of(2147483647)).
|
|
1494
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1494
|
+
if (Companion_getInstance_4().of(-2147483648).rangeTo(Companion_getInstance_4().of(2147483647)).j1(term.t17())) {
|
|
1495
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ha()));
|
|
1495
1496
|
}
|
|
1496
|
-
if (Companion_getInstance_4().of(-32768).rangeTo(Companion_getInstance_4().of(32767)).
|
|
1497
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1497
|
+
if (Companion_getInstance_4().of(-32768).rangeTo(Companion_getInstance_4().of(32767)).j1(term.t17())) {
|
|
1498
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ga()));
|
|
1498
1499
|
}
|
|
1499
|
-
if (Companion_getInstance_4().of(-128).rangeTo(Companion_getInstance_4().of(127)).
|
|
1500
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1500
|
+
if (Companion_getInstance_4().of(-128).rangeTo(Companion_getInstance_4().of(127)).j1(term.t17())) {
|
|
1501
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().fa()));
|
|
1501
1502
|
}
|
|
1502
1503
|
admissible_0 = plus(admissible_0, sequenceOf(getKClass(BigDecimal)));
|
|
1503
1504
|
var containsLower = Companion_getInstance_5().ofDouble(4.9E-324);
|
|
1504
1505
|
var containsUpper = Companion_getInstance_5().ofDouble(1.7976931348623157E308);
|
|
1505
|
-
var containsArg = term.
|
|
1506
|
+
var containsArg = term.b18();
|
|
1506
1507
|
if (0 <= compareTo(containsArg, containsLower) ? compareTo(containsArg, containsUpper) <= 0 : false) {
|
|
1507
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1508
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ka()));
|
|
1508
1509
|
}
|
|
1509
1510
|
var containsLower_0 = Companion_getInstance_5().ofFloat(1.4E-45);
|
|
1510
1511
|
var containsUpper_0 = Companion_getInstance_5().ofFloat(3.4028235E38);
|
|
1511
|
-
var containsArg_0 = term.
|
|
1512
|
+
var containsArg_0 = term.b18();
|
|
1512
1513
|
if (0 <= compareTo(containsArg_0, containsLower_0) ? compareTo(containsArg_0, containsUpper_0) <= 0 : false) {
|
|
1513
|
-
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().
|
|
1514
|
+
admissible_0 = plus(admissible_0, sequenceOf(PrimitiveClasses_getInstance().ja()));
|
|
1514
1515
|
}
|
|
1515
1516
|
tmp = admissible_0;
|
|
1516
1517
|
} else {
|
|
@@ -1519,7 +1520,7 @@
|
|
|
1519
1520
|
if (Companion_getInstance().matches(term, get_CAST_TEMPLATE())) {
|
|
1520
1521
|
tmp_1 = sequenceOf(getType($this, term, term.get(1)));
|
|
1521
1522
|
} else if (Companion_getInstance().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1522
|
-
var ref = $this.
|
|
1523
|
+
var ref = $this.i56_1(term);
|
|
1523
1524
|
var tmp_2;
|
|
1524
1525
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1525
1526
|
tmp_2 = admissibleTypesByPriority($this, ref);
|
|
@@ -1543,10 +1544,10 @@
|
|
|
1543
1544
|
return tmp;
|
|
1544
1545
|
}
|
|
1545
1546
|
function TermToObjectConverterImpl(typeFactory, dealiaser) {
|
|
1546
|
-
this.
|
|
1547
|
-
this.
|
|
1547
|
+
this.h56_1 = typeFactory;
|
|
1548
|
+
this.i56_1 = dealiaser;
|
|
1548
1549
|
}
|
|
1549
|
-
protoOf(TermToObjectConverterImpl).
|
|
1550
|
+
protoOf(TermToObjectConverterImpl).m55 = function (type, term) {
|
|
1550
1551
|
var tmp;
|
|
1551
1552
|
var tmp_0;
|
|
1552
1553
|
if (isInterface(term, NullRef)) {
|
|
@@ -1565,8 +1566,8 @@
|
|
|
1565
1566
|
} else {
|
|
1566
1567
|
if (isInterface(term, ObjectRef)) {
|
|
1567
1568
|
var tmp_2;
|
|
1568
|
-
if (isSubtypeOf(getKClassFromExpression(term.
|
|
1569
|
-
tmp_2 = term.
|
|
1569
|
+
if (isSubtypeOf(getKClassFromExpression(term.r54()), type)) {
|
|
1570
|
+
tmp_2 = term.r54();
|
|
1570
1571
|
} else {
|
|
1571
1572
|
throw new TermToObjectConversionException(term, type);
|
|
1572
1573
|
}
|
|
@@ -1574,9 +1575,9 @@
|
|
|
1574
1575
|
} else {
|
|
1575
1576
|
if (isInterface(term, Truth)) {
|
|
1576
1577
|
var tmp_3;
|
|
1577
|
-
if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1578
|
-
tmp_3 = term.
|
|
1579
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1578
|
+
if (isSubtypeOf(PrimitiveClasses_getInstance().ea(), type)) {
|
|
1579
|
+
tmp_3 = term.v13();
|
|
1580
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ma(), type)) {
|
|
1580
1581
|
tmp_3 = term.f1();
|
|
1581
1582
|
} else {
|
|
1582
1583
|
throw new TermToObjectConversionException(term, type);
|
|
@@ -1585,7 +1586,7 @@
|
|
|
1585
1586
|
} else {
|
|
1586
1587
|
if (isInterface(term, Atom)) {
|
|
1587
1588
|
var tmp_4;
|
|
1588
|
-
if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1589
|
+
if (isSubtypeOf(PrimitiveClasses_getInstance().ma(), type)) {
|
|
1589
1590
|
tmp_4 = term.f1();
|
|
1590
1591
|
} else if (isSubtypeOf(getKClass(Char), type)) {
|
|
1591
1592
|
var tmp_5;
|
|
@@ -1603,11 +1604,11 @@
|
|
|
1603
1604
|
if (isInterface(term, Real)) {
|
|
1604
1605
|
var tmp_6;
|
|
1605
1606
|
if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1606
|
-
tmp_6 = term.
|
|
1607
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1608
|
-
tmp_6 = term.
|
|
1609
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1610
|
-
tmp_6 = term.
|
|
1607
|
+
tmp_6 = term.b18();
|
|
1608
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ka(), type)) {
|
|
1609
|
+
tmp_6 = term.b18().toDouble();
|
|
1610
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ja(), type)) {
|
|
1611
|
+
tmp_6 = term.b18().toFloat();
|
|
1611
1612
|
} else {
|
|
1612
1613
|
throw new TermToObjectConversionException(term, type);
|
|
1613
1614
|
}
|
|
@@ -1616,21 +1617,21 @@
|
|
|
1616
1617
|
if (isInterface(term, Integer)) {
|
|
1617
1618
|
var tmp_7;
|
|
1618
1619
|
if (isSubtypeOf(getKClass(BigInteger), type)) {
|
|
1619
|
-
tmp_7 = term.
|
|
1620
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1621
|
-
tmp_7 = term.
|
|
1622
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().
|
|
1623
|
-
tmp_7 = term.
|
|
1624
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ca(), type)) {
|
|
1625
|
-
tmp_7 = term.f11().toShortExact();
|
|
1626
|
-
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ba(), type)) {
|
|
1627
|
-
tmp_7 = term.f11().toByteExact();
|
|
1628
|
-
} else if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1629
|
-
tmp_7 = term.n11();
|
|
1620
|
+
tmp_7 = term.t17();
|
|
1621
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ia(), type)) {
|
|
1622
|
+
tmp_7 = term.t17().toLongExact();
|
|
1623
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ha(), type)) {
|
|
1624
|
+
tmp_7 = term.t17().toIntExact();
|
|
1630
1625
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ga(), type)) {
|
|
1631
|
-
tmp_7 = term.
|
|
1626
|
+
tmp_7 = term.t17().toShortExact();
|
|
1632
1627
|
} else if (isSubtypeOf(PrimitiveClasses_getInstance().fa(), type)) {
|
|
1633
|
-
tmp_7 = term.
|
|
1628
|
+
tmp_7 = term.t17().toByteExact();
|
|
1629
|
+
} else if (isSubtypeOf(getKClass(BigDecimal), type)) {
|
|
1630
|
+
tmp_7 = term.b18();
|
|
1631
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ka(), type)) {
|
|
1632
|
+
tmp_7 = term.b18().toDouble();
|
|
1633
|
+
} else if (isSubtypeOf(PrimitiveClasses_getInstance().ja(), type)) {
|
|
1634
|
+
tmp_7 = term.b18().toFloat();
|
|
1634
1635
|
} else {
|
|
1635
1636
|
throw new TermToObjectConversionException(term, type);
|
|
1636
1637
|
}
|
|
@@ -1641,10 +1642,10 @@
|
|
|
1641
1642
|
if (Companion_getInstance().matches(term, get_CAST_TEMPLATE())) {
|
|
1642
1643
|
tmp_8 = explicitConversion(this, term, term.get(0), term.get(1));
|
|
1643
1644
|
} else if (Companion_getInstance().matches(term, get_DEALIASING_TEMPLATE())) {
|
|
1644
|
-
var ref = this.
|
|
1645
|
+
var ref = this.i56_1(term);
|
|
1645
1646
|
var tmp_9;
|
|
1646
1647
|
if (!(ref == null) ? isInterface(ref, ObjectRef) : false) {
|
|
1647
|
-
tmp_9 = this.
|
|
1648
|
+
tmp_9 = this.m55(type, ref);
|
|
1648
1649
|
} else {
|
|
1649
1650
|
throw TermToObjectConversionException_init_$Create$(term);
|
|
1650
1651
|
}
|
|
@@ -1669,15 +1670,15 @@
|
|
|
1669
1670
|
}
|
|
1670
1671
|
return tmp;
|
|
1671
1672
|
};
|
|
1672
|
-
protoOf(TermToObjectConverterImpl).
|
|
1673
|
+
protoOf(TermToObjectConverterImpl).o55 = function (term) {
|
|
1673
1674
|
return first(admissibleTypesByPriority(this, term));
|
|
1674
1675
|
};
|
|
1675
|
-
protoOf(TermToObjectConverterImpl).
|
|
1676
|
+
protoOf(TermToObjectConverterImpl).n55 = function (term) {
|
|
1676
1677
|
return toSet(admissibleTypesByPriority(this, term));
|
|
1677
1678
|
};
|
|
1678
1679
|
function TypeFactoryImpl() {
|
|
1679
1680
|
}
|
|
1680
|
-
protoOf(TypeFactoryImpl).
|
|
1681
|
+
protoOf(TypeFactoryImpl).r55 = function (typeName) {
|
|
1681
1682
|
return kClassFromName(typeName).f1();
|
|
1682
1683
|
};
|
|
1683
1684
|
function nameOf_0($this, type) {
|
|
@@ -1690,360 +1691,360 @@
|
|
|
1690
1691
|
return Companion_instance_14;
|
|
1691
1692
|
}
|
|
1692
1693
|
function TypeRefImpl(type) {
|
|
1693
|
-
this.
|
|
1694
|
-
this.
|
|
1694
|
+
this.j56_1 = Companion_getInstance_0().of(nameOf_0(Companion_instance_14, type));
|
|
1695
|
+
this.k56_1 = type;
|
|
1695
1696
|
}
|
|
1696
|
-
protoOf(TypeRefImpl).
|
|
1697
|
-
return this.
|
|
1697
|
+
protoOf(TypeRefImpl).b2e = function () {
|
|
1698
|
+
return this.k56_1;
|
|
1698
1699
|
};
|
|
1699
|
-
protoOf(TypeRefImpl).
|
|
1700
|
-
return create_0(this.
|
|
1700
|
+
protoOf(TypeRefImpl).u55 = function (objectConverter, arguments_0) {
|
|
1701
|
+
return create_0(this.k56_1, objectConverter, arguments_0);
|
|
1701
1702
|
};
|
|
1702
|
-
protoOf(TypeRefImpl).
|
|
1703
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
1703
|
+
protoOf(TypeRefImpl).s54 = function (objectConverter, methodName, arguments_0) {
|
|
1704
|
+
var companionObjectRef = get_companionObjectRef(this.k56_1);
|
|
1704
1705
|
var tmp;
|
|
1705
1706
|
if (companionObjectRef instanceof Some) {
|
|
1706
|
-
tmp = invoke_0(companionObjectRef.
|
|
1707
|
+
tmp = invoke_0(companionObjectRef.vx_1, objectConverter, methodName, arguments_0);
|
|
1707
1708
|
} else {
|
|
1708
|
-
tmp = invoke_1(this.
|
|
1709
|
+
tmp = invoke_1(this.k56_1, objectConverter, methodName, arguments_0, null);
|
|
1709
1710
|
}
|
|
1710
1711
|
return tmp;
|
|
1711
1712
|
};
|
|
1712
|
-
protoOf(TypeRefImpl).
|
|
1713
|
+
protoOf(TypeRefImpl).w14 = function () {
|
|
1713
1714
|
return true;
|
|
1714
1715
|
};
|
|
1715
|
-
protoOf(TypeRefImpl).
|
|
1716
|
+
protoOf(TypeRefImpl).z14 = function () {
|
|
1716
1717
|
return this;
|
|
1717
1718
|
};
|
|
1718
1719
|
protoOf(TypeRefImpl).asConstant = function () {
|
|
1719
|
-
return this.
|
|
1720
|
+
return this.z14();
|
|
1720
1721
|
};
|
|
1721
|
-
protoOf(TypeRefImpl).
|
|
1722
|
+
protoOf(TypeRefImpl).a14 = function () {
|
|
1722
1723
|
return this;
|
|
1723
1724
|
};
|
|
1724
1725
|
protoOf(TypeRefImpl).freshCopy = function () {
|
|
1725
|
-
return this.
|
|
1726
|
+
return this.a14();
|
|
1726
1727
|
};
|
|
1727
|
-
protoOf(TypeRefImpl).
|
|
1728
|
+
protoOf(TypeRefImpl).b14 = function (scope) {
|
|
1728
1729
|
return this;
|
|
1729
1730
|
};
|
|
1730
1731
|
protoOf(TypeRefImpl).freshCopyFromScope = function (scope) {
|
|
1731
|
-
return this.
|
|
1732
|
+
return this.b14(scope);
|
|
1732
1733
|
};
|
|
1733
|
-
protoOf(TypeRefImpl).
|
|
1734
|
+
protoOf(TypeRefImpl).r14 = function () {
|
|
1734
1735
|
return isInterface(this, Term) ? this : THROW_CCE();
|
|
1735
1736
|
};
|
|
1736
|
-
protoOf(TypeRefImpl).
|
|
1737
|
-
return this.
|
|
1737
|
+
protoOf(TypeRefImpl).wx = function () {
|
|
1738
|
+
return this.r14();
|
|
1738
1739
|
};
|
|
1739
|
-
protoOf(TypeRefImpl).
|
|
1740
|
+
protoOf(TypeRefImpl).x1e = function (substitution) {
|
|
1740
1741
|
return this;
|
|
1741
1742
|
};
|
|
1742
1743
|
protoOf(TypeRefImpl).applySubstitution = function (substitution) {
|
|
1743
|
-
return this.
|
|
1744
|
+
return this.x1e(substitution);
|
|
1744
1745
|
};
|
|
1745
|
-
protoOf(TypeRefImpl).
|
|
1746
|
+
protoOf(TypeRefImpl).v32 = function (substitution, substitutions) {
|
|
1746
1747
|
return this;
|
|
1747
1748
|
};
|
|
1748
1749
|
protoOf(TypeRefImpl).apply = function (substitution, substitutions) {
|
|
1749
|
-
return this.
|
|
1750
|
+
return this.v32(substitution, substitutions);
|
|
1750
1751
|
};
|
|
1751
|
-
protoOf(TypeRefImpl).
|
|
1752
|
+
protoOf(TypeRefImpl).u32 = function (substitution, substitutions) {
|
|
1752
1753
|
return this;
|
|
1753
1754
|
};
|
|
1754
1755
|
protoOf(TypeRefImpl).getSubstituted = function (substitution, substitutions) {
|
|
1755
|
-
return this.
|
|
1756
|
+
return this.u32(substitution, substitutions);
|
|
1756
1757
|
};
|
|
1757
|
-
protoOf(TypeRefImpl).
|
|
1758
|
+
protoOf(TypeRefImpl).v1d = function (visitor) {
|
|
1758
1759
|
return visitor.visitAtom(this);
|
|
1759
1760
|
};
|
|
1760
1761
|
protoOf(TypeRefImpl).accept = function (visitor) {
|
|
1761
|
-
return this.
|
|
1762
|
+
return this.v1d(visitor);
|
|
1762
1763
|
};
|
|
1763
|
-
protoOf(TypeRefImpl).
|
|
1764
|
-
var companionObjectRef = get_companionObjectRef(this.
|
|
1764
|
+
protoOf(TypeRefImpl).t54 = function (objectConverter, propertyName, value) {
|
|
1765
|
+
var companionObjectRef = get_companionObjectRef(this.k56_1);
|
|
1765
1766
|
if (companionObjectRef instanceof Some)
|
|
1766
|
-
assign_0(companionObjectRef.
|
|
1767
|
+
assign_0(companionObjectRef.vx_1, objectConverter, propertyName, value);
|
|
1767
1768
|
else {
|
|
1768
|
-
assign_1(this.
|
|
1769
|
+
assign_1(this.k56_1, objectConverter, propertyName, value, null);
|
|
1769
1770
|
}
|
|
1770
1771
|
return true;
|
|
1771
1772
|
};
|
|
1772
|
-
protoOf(TypeRefImpl).
|
|
1773
|
-
return this.
|
|
1773
|
+
protoOf(TypeRefImpl).c14 = function () {
|
|
1774
|
+
return this.j56_1.c14();
|
|
1774
1775
|
};
|
|
1775
1776
|
protoOf(TypeRefImpl).asAtom = function () {
|
|
1776
|
-
return this.
|
|
1777
|
+
return this.c14();
|
|
1777
1778
|
};
|
|
1778
|
-
protoOf(TypeRefImpl).
|
|
1779
|
-
return this.
|
|
1779
|
+
protoOf(TypeRefImpl).r13 = function () {
|
|
1780
|
+
return this.j56_1.r13();
|
|
1780
1781
|
};
|
|
1781
|
-
protoOf(TypeRefImpl).
|
|
1782
|
-
return this.
|
|
1782
|
+
protoOf(TypeRefImpl).s13 = function () {
|
|
1783
|
+
return this.j56_1.s13();
|
|
1783
1784
|
};
|
|
1784
|
-
protoOf(TypeRefImpl).
|
|
1785
|
-
return this.
|
|
1785
|
+
protoOf(TypeRefImpl).t13 = function () {
|
|
1786
|
+
return this.j56_1.t13();
|
|
1786
1787
|
};
|
|
1787
|
-
protoOf(TypeRefImpl).
|
|
1788
|
-
return this.
|
|
1788
|
+
protoOf(TypeRefImpl).u13 = function () {
|
|
1789
|
+
return this.j56_1.u13();
|
|
1789
1790
|
};
|
|
1790
|
-
protoOf(TypeRefImpl).
|
|
1791
|
-
return this.
|
|
1791
|
+
protoOf(TypeRefImpl).v13 = function () {
|
|
1792
|
+
return this.j56_1.v13();
|
|
1792
1793
|
};
|
|
1793
1794
|
protoOf(TypeRefImpl).f1 = function () {
|
|
1794
|
-
return this.
|
|
1795
|
+
return this.j56_1.f1();
|
|
1795
1796
|
};
|
|
1796
|
-
protoOf(TypeRefImpl).
|
|
1797
|
-
return this.
|
|
1797
|
+
protoOf(TypeRefImpl).y13 = function () {
|
|
1798
|
+
return this.j56_1.y13();
|
|
1798
1799
|
};
|
|
1799
|
-
protoOf(TypeRefImpl).
|
|
1800
|
-
return this.
|
|
1800
|
+
protoOf(TypeRefImpl).z13 = function () {
|
|
1801
|
+
return this.j56_1.z13();
|
|
1801
1802
|
};
|
|
1802
|
-
protoOf(TypeRefImpl).
|
|
1803
|
-
return this.
|
|
1803
|
+
protoOf(TypeRefImpl).n14 = function () {
|
|
1804
|
+
return this.j56_1.n14();
|
|
1804
1805
|
};
|
|
1805
1806
|
protoOf(TypeRefImpl).asStruct = function () {
|
|
1806
|
-
return this.
|
|
1807
|
+
return this.n14();
|
|
1807
1808
|
};
|
|
1808
1809
|
protoOf(TypeRefImpl).append = function (argument) {
|
|
1809
|
-
return this.
|
|
1810
|
+
return this.j56_1.append(argument);
|
|
1810
1811
|
};
|
|
1811
1812
|
protoOf(TypeRefImpl).addLast = function (argument) {
|
|
1812
|
-
return this.
|
|
1813
|
+
return this.j56_1.addLast(argument);
|
|
1813
1814
|
};
|
|
1814
1815
|
protoOf(TypeRefImpl).addFirst = function (argument) {
|
|
1815
|
-
return this.
|
|
1816
|
+
return this.j56_1.addFirst(argument);
|
|
1816
1817
|
};
|
|
1817
1818
|
protoOf(TypeRefImpl).insertAt = function (index, argument) {
|
|
1818
|
-
return this.
|
|
1819
|
+
return this.j56_1.insertAt(index, argument);
|
|
1819
1820
|
};
|
|
1820
1821
|
protoOf(TypeRefImpl).setFunctor = function (functor) {
|
|
1821
|
-
return this.
|
|
1822
|
+
return this.j56_1.setFunctor(functor);
|
|
1822
1823
|
};
|
|
1823
1824
|
protoOf(TypeRefImpl).getArgAt = function (index) {
|
|
1824
|
-
return this.
|
|
1825
|
+
return this.j56_1.getArgAt(index);
|
|
1825
1826
|
};
|
|
1826
1827
|
protoOf(TypeRefImpl).setArgs = function (args) {
|
|
1827
|
-
return this.
|
|
1828
|
+
return this.j56_1.setArgs(args);
|
|
1828
1829
|
};
|
|
1829
1830
|
protoOf(TypeRefImpl).setArgsIterable = function (args) {
|
|
1830
|
-
return this.
|
|
1831
|
+
return this.j56_1.setArgsIterable(args);
|
|
1831
1832
|
};
|
|
1832
1833
|
protoOf(TypeRefImpl).setArgsSequence = function (args) {
|
|
1833
|
-
return this.
|
|
1834
|
+
return this.j56_1.setArgsSequence(args);
|
|
1834
1835
|
};
|
|
1835
1836
|
protoOf(TypeRefImpl).get = function (index) {
|
|
1836
|
-
return this.
|
|
1837
|
+
return this.j56_1.get(index);
|
|
1837
1838
|
};
|
|
1838
|
-
protoOf(TypeRefImpl).
|
|
1839
|
-
return this.
|
|
1839
|
+
protoOf(TypeRefImpl).d14 = function () {
|
|
1840
|
+
return this.j56_1.d14();
|
|
1840
1841
|
};
|
|
1841
|
-
protoOf(TypeRefImpl).
|
|
1842
|
-
return this.
|
|
1842
|
+
protoOf(TypeRefImpl).e14 = function () {
|
|
1843
|
+
return this.j56_1.e14();
|
|
1843
1844
|
};
|
|
1844
|
-
protoOf(TypeRefImpl).
|
|
1845
|
-
return this.
|
|
1845
|
+
protoOf(TypeRefImpl).f14 = function () {
|
|
1846
|
+
return this.j56_1.f14();
|
|
1846
1847
|
};
|
|
1847
|
-
protoOf(TypeRefImpl).
|
|
1848
|
-
return this.
|
|
1848
|
+
protoOf(TypeRefImpl).i14 = function () {
|
|
1849
|
+
return this.j56_1.i14();
|
|
1849
1850
|
};
|
|
1850
|
-
protoOf(TypeRefImpl).
|
|
1851
|
-
return this.
|
|
1851
|
+
protoOf(TypeRefImpl).j14 = function () {
|
|
1852
|
+
return this.j56_1.j14();
|
|
1852
1853
|
};
|
|
1853
|
-
protoOf(TypeRefImpl).
|
|
1854
|
-
return this.
|
|
1854
|
+
protoOf(TypeRefImpl).k14 = function () {
|
|
1855
|
+
return this.j56_1.k14();
|
|
1855
1856
|
};
|
|
1856
|
-
protoOf(TypeRefImpl).
|
|
1857
|
-
return this.
|
|
1857
|
+
protoOf(TypeRefImpl).m14 = function () {
|
|
1858
|
+
return this.j56_1.m14();
|
|
1858
1859
|
};
|
|
1859
|
-
protoOf(TypeRefImpl).
|
|
1860
|
-
return this.
|
|
1860
|
+
protoOf(TypeRefImpl).x13 = function () {
|
|
1861
|
+
return this.j56_1.x13();
|
|
1861
1862
|
};
|
|
1862
|
-
protoOf(TypeRefImpl).
|
|
1863
|
-
return this.
|
|
1863
|
+
protoOf(TypeRefImpl).o14 = function () {
|
|
1864
|
+
return this.j56_1.o14();
|
|
1864
1865
|
};
|
|
1865
|
-
protoOf(TypeRefImpl).
|
|
1866
|
-
return this.
|
|
1866
|
+
protoOf(TypeRefImpl).p14 = function () {
|
|
1867
|
+
return this.j56_1.p14();
|
|
1867
1868
|
};
|
|
1868
|
-
protoOf(TypeRefImpl).
|
|
1869
|
-
return this.
|
|
1869
|
+
protoOf(TypeRefImpl).q14 = function () {
|
|
1870
|
+
return this.j56_1.q14();
|
|
1870
1871
|
};
|
|
1871
|
-
protoOf(TypeRefImpl).
|
|
1872
|
-
return this.
|
|
1872
|
+
protoOf(TypeRefImpl).s14 = function (other) {
|
|
1873
|
+
return this.j56_1.s14(other);
|
|
1873
1874
|
};
|
|
1874
1875
|
protoOf(TypeRefImpl).d = function (other) {
|
|
1875
|
-
return this.
|
|
1876
|
+
return this.s14((!(other == null) ? isInterface(other, Term) : false) ? other : THROW_CCE());
|
|
1876
1877
|
};
|
|
1877
1878
|
protoOf(TypeRefImpl).equalsUsingVarCompleteNames = function (other, useVarCompleteName) {
|
|
1878
|
-
return this.
|
|
1879
|
+
return this.j56_1.equalsUsingVarCompleteNames(other, useVarCompleteName);
|
|
1879
1880
|
};
|
|
1880
1881
|
protoOf(TypeRefImpl).equals = function (other) {
|
|
1881
|
-
return this.
|
|
1882
|
+
return this.j56_1.equals(other);
|
|
1882
1883
|
};
|
|
1883
1884
|
protoOf(TypeRefImpl).structurallyEquals = function (other) {
|
|
1884
|
-
return this.
|
|
1885
|
+
return this.j56_1.structurallyEquals(other);
|
|
1885
1886
|
};
|
|
1886
1887
|
protoOf(TypeRefImpl).castToAtom = function () {
|
|
1887
|
-
return this.
|
|
1888
|
+
return this.j56_1.castToAtom();
|
|
1888
1889
|
};
|
|
1889
1890
|
protoOf(TypeRefImpl).castToClause = function () {
|
|
1890
|
-
return this.
|
|
1891
|
+
return this.j56_1.castToClause();
|
|
1891
1892
|
};
|
|
1892
1893
|
protoOf(TypeRefImpl).castToCons = function () {
|
|
1893
|
-
return this.
|
|
1894
|
+
return this.j56_1.castToCons();
|
|
1894
1895
|
};
|
|
1895
1896
|
protoOf(TypeRefImpl).castToConstant = function () {
|
|
1896
|
-
return this.
|
|
1897
|
+
return this.j56_1.castToConstant();
|
|
1897
1898
|
};
|
|
1898
1899
|
protoOf(TypeRefImpl).castToDirective = function () {
|
|
1899
|
-
return this.
|
|
1900
|
+
return this.j56_1.castToDirective();
|
|
1900
1901
|
};
|
|
1901
1902
|
protoOf(TypeRefImpl).castToEmptyList = function () {
|
|
1902
|
-
return this.
|
|
1903
|
+
return this.j56_1.castToEmptyList();
|
|
1903
1904
|
};
|
|
1904
1905
|
protoOf(TypeRefImpl).castToEmptyBlock = function () {
|
|
1905
|
-
return this.
|
|
1906
|
+
return this.j56_1.castToEmptyBlock();
|
|
1906
1907
|
};
|
|
1907
1908
|
protoOf(TypeRefImpl).castToFact = function () {
|
|
1908
|
-
return this.
|
|
1909
|
+
return this.j56_1.castToFact();
|
|
1909
1910
|
};
|
|
1910
1911
|
protoOf(TypeRefImpl).castToIndicator = function () {
|
|
1911
|
-
return this.
|
|
1912
|
+
return this.j56_1.castToIndicator();
|
|
1912
1913
|
};
|
|
1913
1914
|
protoOf(TypeRefImpl).castToInteger = function () {
|
|
1914
|
-
return this.
|
|
1915
|
+
return this.j56_1.castToInteger();
|
|
1915
1916
|
};
|
|
1916
1917
|
protoOf(TypeRefImpl).castToList = function () {
|
|
1917
|
-
return this.
|
|
1918
|
+
return this.j56_1.castToList();
|
|
1918
1919
|
};
|
|
1919
1920
|
protoOf(TypeRefImpl).castToNumeric = function () {
|
|
1920
|
-
return this.
|
|
1921
|
+
return this.j56_1.castToNumeric();
|
|
1921
1922
|
};
|
|
1922
1923
|
protoOf(TypeRefImpl).castToReal = function () {
|
|
1923
|
-
return this.
|
|
1924
|
+
return this.j56_1.castToReal();
|
|
1924
1925
|
};
|
|
1925
1926
|
protoOf(TypeRefImpl).castToRule = function () {
|
|
1926
|
-
return this.
|
|
1927
|
+
return this.j56_1.castToRule();
|
|
1927
1928
|
};
|
|
1928
1929
|
protoOf(TypeRefImpl).castToBlock = function () {
|
|
1929
|
-
return this.
|
|
1930
|
+
return this.j56_1.castToBlock();
|
|
1930
1931
|
};
|
|
1931
1932
|
protoOf(TypeRefImpl).castToStruct = function () {
|
|
1932
|
-
return this.
|
|
1933
|
+
return this.j56_1.castToStruct();
|
|
1933
1934
|
};
|
|
1934
1935
|
protoOf(TypeRefImpl).castToRecursive = function () {
|
|
1935
|
-
return this.
|
|
1936
|
+
return this.j56_1.castToRecursive();
|
|
1936
1937
|
};
|
|
1937
1938
|
protoOf(TypeRefImpl).castToTerm = function () {
|
|
1938
|
-
return this.
|
|
1939
|
+
return this.j56_1.castToTerm();
|
|
1939
1940
|
};
|
|
1940
1941
|
protoOf(TypeRefImpl).castToTruth = function () {
|
|
1941
|
-
return this.
|
|
1942
|
+
return this.j56_1.castToTruth();
|
|
1942
1943
|
};
|
|
1943
1944
|
protoOf(TypeRefImpl).castToTuple = function () {
|
|
1944
|
-
return this.
|
|
1945
|
+
return this.j56_1.castToTuple();
|
|
1945
1946
|
};
|
|
1946
1947
|
protoOf(TypeRefImpl).castToVar = function () {
|
|
1947
|
-
return this.
|
|
1948
|
+
return this.j56_1.castToVar();
|
|
1948
1949
|
};
|
|
1949
1950
|
protoOf(TypeRefImpl).asClause = function () {
|
|
1950
|
-
return this.
|
|
1951
|
+
return this.j56_1.asClause();
|
|
1951
1952
|
};
|
|
1952
1953
|
protoOf(TypeRefImpl).asCons = function () {
|
|
1953
|
-
return this.
|
|
1954
|
+
return this.j56_1.asCons();
|
|
1954
1955
|
};
|
|
1955
1956
|
protoOf(TypeRefImpl).asDirective = function () {
|
|
1956
|
-
return this.
|
|
1957
|
+
return this.j56_1.asDirective();
|
|
1957
1958
|
};
|
|
1958
1959
|
protoOf(TypeRefImpl).asEmptyList = function () {
|
|
1959
|
-
return this.
|
|
1960
|
+
return this.j56_1.asEmptyList();
|
|
1960
1961
|
};
|
|
1961
1962
|
protoOf(TypeRefImpl).asEmptyBlock = function () {
|
|
1962
|
-
return this.
|
|
1963
|
+
return this.j56_1.asEmptyBlock();
|
|
1963
1964
|
};
|
|
1964
1965
|
protoOf(TypeRefImpl).asFact = function () {
|
|
1965
|
-
return this.
|
|
1966
|
+
return this.j56_1.asFact();
|
|
1966
1967
|
};
|
|
1967
1968
|
protoOf(TypeRefImpl).asIndicator = function () {
|
|
1968
|
-
return this.
|
|
1969
|
+
return this.j56_1.asIndicator();
|
|
1969
1970
|
};
|
|
1970
1971
|
protoOf(TypeRefImpl).asInteger = function () {
|
|
1971
|
-
return this.
|
|
1972
|
+
return this.j56_1.asInteger();
|
|
1972
1973
|
};
|
|
1973
1974
|
protoOf(TypeRefImpl).asList = function () {
|
|
1974
|
-
return this.
|
|
1975
|
+
return this.j56_1.asList();
|
|
1975
1976
|
};
|
|
1976
1977
|
protoOf(TypeRefImpl).asNumeric = function () {
|
|
1977
|
-
return this.
|
|
1978
|
+
return this.j56_1.asNumeric();
|
|
1978
1979
|
};
|
|
1979
1980
|
protoOf(TypeRefImpl).asReal = function () {
|
|
1980
|
-
return this.
|
|
1981
|
+
return this.j56_1.asReal();
|
|
1981
1982
|
};
|
|
1982
1983
|
protoOf(TypeRefImpl).asRule = function () {
|
|
1983
|
-
return this.
|
|
1984
|
+
return this.j56_1.asRule();
|
|
1984
1985
|
};
|
|
1985
1986
|
protoOf(TypeRefImpl).asBlock = function () {
|
|
1986
|
-
return this.
|
|
1987
|
+
return this.j56_1.asBlock();
|
|
1987
1988
|
};
|
|
1988
1989
|
protoOf(TypeRefImpl).asRecursive = function () {
|
|
1989
|
-
return this.
|
|
1990
|
+
return this.j56_1.asRecursive();
|
|
1990
1991
|
};
|
|
1991
1992
|
protoOf(TypeRefImpl).asTerm = function () {
|
|
1992
|
-
return this.
|
|
1993
|
+
return this.j56_1.asTerm();
|
|
1993
1994
|
};
|
|
1994
1995
|
protoOf(TypeRefImpl).asTruth = function () {
|
|
1995
|
-
return this.
|
|
1996
|
+
return this.j56_1.asTruth();
|
|
1996
1997
|
};
|
|
1997
1998
|
protoOf(TypeRefImpl).asTuple = function () {
|
|
1998
|
-
return this.
|
|
1999
|
+
return this.j56_1.asTuple();
|
|
1999
2000
|
};
|
|
2000
2001
|
protoOf(TypeRefImpl).asVar = function () {
|
|
2001
|
-
return this.
|
|
2002
|
+
return this.j56_1.asVar();
|
|
2002
2003
|
};
|
|
2003
2004
|
protoOf(TypeRefImpl).hashCode = function () {
|
|
2004
|
-
return this.
|
|
2005
|
+
return this.j56_1.hashCode();
|
|
2005
2006
|
};
|
|
2006
2007
|
protoOf(TypeRefImpl).toString = function () {
|
|
2007
|
-
return this.
|
|
2008
|
+
return this.j56_1.toString();
|
|
2008
2009
|
};
|
|
2009
|
-
protoOf(TypeRefImpl).
|
|
2010
|
-
return this.
|
|
2010
|
+
protoOf(TypeRefImpl).t14 = function () {
|
|
2011
|
+
return this.j56_1.t14();
|
|
2011
2012
|
};
|
|
2012
|
-
protoOf(TypeRefImpl).
|
|
2013
|
-
return this.
|
|
2013
|
+
protoOf(TypeRefImpl).u14 = function () {
|
|
2014
|
+
return this.j56_1.u14();
|
|
2014
2015
|
};
|
|
2015
|
-
protoOf(TypeRefImpl).
|
|
2016
|
-
return this.
|
|
2016
|
+
protoOf(TypeRefImpl).v14 = function () {
|
|
2017
|
+
return this.j56_1.v14();
|
|
2017
2018
|
};
|
|
2018
|
-
protoOf(TypeRefImpl).
|
|
2019
|
-
return this.
|
|
2019
|
+
protoOf(TypeRefImpl).x14 = function () {
|
|
2020
|
+
return this.j56_1.x14();
|
|
2020
2021
|
};
|
|
2021
|
-
protoOf(TypeRefImpl).
|
|
2022
|
-
return this.
|
|
2022
|
+
protoOf(TypeRefImpl).xo = function () {
|
|
2023
|
+
return this.j56_1.xo();
|
|
2023
2024
|
};
|
|
2024
|
-
protoOf(TypeRefImpl).
|
|
2025
|
-
return this.
|
|
2025
|
+
protoOf(TypeRefImpl).y14 = function () {
|
|
2026
|
+
return this.j56_1.y14();
|
|
2026
2027
|
};
|
|
2027
2028
|
protoOf(TypeRefImpl).getTag = function (name) {
|
|
2028
|
-
return this.
|
|
2029
|
+
return this.j56_1.getTag(name);
|
|
2029
2030
|
};
|
|
2030
2031
|
protoOf(TypeRefImpl).resetTags = function (tags) {
|
|
2031
|
-
return this.
|
|
2032
|
+
return this.j56_1.resetTags(tags);
|
|
2032
2033
|
};
|
|
2033
2034
|
protoOf(TypeRefImpl).containsTag = function (name) {
|
|
2034
|
-
return this.
|
|
2035
|
+
return this.j56_1.containsTag(name);
|
|
2035
2036
|
};
|
|
2036
|
-
protoOf(TypeRefImpl).
|
|
2037
|
-
return this.
|
|
2037
|
+
protoOf(TypeRefImpl).gz = function () {
|
|
2038
|
+
return this.j56_1.gz();
|
|
2038
2039
|
};
|
|
2039
|
-
protoOf(TypeRefImpl).
|
|
2040
|
-
return this.
|
|
2040
|
+
protoOf(TypeRefImpl).a15 = function () {
|
|
2041
|
+
return this.j56_1.a15();
|
|
2041
2042
|
};
|
|
2042
2043
|
function actuallyInvoke($this, $receiver, ref, method, resultTerm) {
|
|
2043
|
-
var result = ref.
|
|
2044
|
+
var result = ref.s54(get_termToObjectConverter($receiver), method.x13(), method.y13());
|
|
2044
2045
|
var tmp;
|
|
2045
2046
|
if (result instanceof Value) {
|
|
2046
|
-
tmp = Companion_getInstance_7().
|
|
2047
|
+
tmp = Companion_getInstance_7().p2t($receiver, resultTerm, $this.m56(result));
|
|
2047
2048
|
} else {
|
|
2048
2049
|
tmp = Companion_getInstance_6().failed();
|
|
2049
2050
|
}
|
|
@@ -2052,9 +2053,9 @@
|
|
|
2052
2053
|
function AbstractInvoke(suffix) {
|
|
2053
2054
|
Functional.call(this, 'invoke_' + suffix);
|
|
2054
2055
|
}
|
|
2055
|
-
protoOf(AbstractInvoke).
|
|
2056
|
-
Companion_getInstance_7().
|
|
2057
|
-
Companion_getInstance_7().
|
|
2056
|
+
protoOf(AbstractInvoke).r33 = function (_this__u8e3s4, first, second, third) {
|
|
2057
|
+
Companion_getInstance_7().a2u(_this__u8e3s4, 0);
|
|
2058
|
+
Companion_getInstance_7().a2u(_this__u8e3s4, 1);
|
|
2058
2059
|
var method = isInterface(second, Struct) ? second : THROW_CCE();
|
|
2059
2060
|
var tmp$ret$0;
|
|
2060
2061
|
$l$block: {
|
|
@@ -2076,7 +2077,7 @@
|
|
|
2076
2077
|
} catch ($p) {
|
|
2077
2078
|
if ($p instanceof OopException) {
|
|
2078
2079
|
var e = $p;
|
|
2079
|
-
throw e.
|
|
2080
|
+
throw e.z55(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2080
2081
|
} else {
|
|
2081
2082
|
if ($p instanceof ResolutionException) {
|
|
2082
2083
|
var e_0 = $p;
|
|
@@ -2094,21 +2095,21 @@
|
|
|
2094
2095
|
}
|
|
2095
2096
|
return tmp$ret$0;
|
|
2096
2097
|
};
|
|
2097
|
-
protoOf(AbstractInvoke).
|
|
2098
|
-
return this.
|
|
2098
|
+
protoOf(AbstractInvoke).b2w = function (_this__u8e3s4, first, second, third) {
|
|
2099
|
+
return this.r33(_this__u8e3s4, first, second, third);
|
|
2099
2100
|
};
|
|
2100
2101
|
function AbstractIterableItems$computeOneSubstitution$lambda($converter) {
|
|
2101
2102
|
return function (it) {
|
|
2102
|
-
return $converter.
|
|
2103
|
+
return $converter.p55(it);
|
|
2103
2104
|
};
|
|
2104
2105
|
}
|
|
2105
2106
|
function AbstractIterableItems$computeOneSubstitution$lambda_0(it) {
|
|
2106
|
-
return Companion_getInstance_11().
|
|
2107
|
+
return Companion_getInstance_11().b55_1.g55(it);
|
|
2107
2108
|
}
|
|
2108
2109
|
function AbstractIterableItems(iterable) {
|
|
2109
2110
|
Functional_0.call(this, iterable + '_items');
|
|
2110
2111
|
}
|
|
2111
|
-
protoOf(AbstractIterableItems).
|
|
2112
|
+
protoOf(AbstractIterableItems).t34 = function (_this__u8e3s4, first, second) {
|
|
2112
2113
|
var tmp;
|
|
2113
2114
|
var tmp_0;
|
|
2114
2115
|
if (isInterface(first, Var)) {
|
|
@@ -2118,58 +2119,58 @@
|
|
|
2118
2119
|
}
|
|
2119
2120
|
if (tmp_0) {
|
|
2120
2121
|
// Inline function 'kotlin.let' call
|
|
2121
|
-
Companion_getInstance_7().
|
|
2122
|
+
Companion_getInstance_7().r2s(_this__u8e3s4);
|
|
2122
2123
|
tmp = Companion_getInstance_6().failed();
|
|
2123
2124
|
} else {
|
|
2124
2125
|
if (isInterface(second, List)) {
|
|
2125
2126
|
var converter = get_termToObjectConverter(_this__u8e3s4);
|
|
2126
|
-
var tmp_1 = second.
|
|
2127
|
-
var items = this.
|
|
2128
|
-
var objectRef = Companion_getInstance_10().
|
|
2129
|
-
tmp = Companion_getInstance_7().
|
|
2127
|
+
var tmp_1 = second.a10();
|
|
2128
|
+
var items = this.o56(map(tmp_1, AbstractIterableItems$computeOneSubstitution$lambda(converter)));
|
|
2129
|
+
var objectRef = Companion_getInstance_10().a55(items);
|
|
2130
|
+
tmp = Companion_getInstance_7().p2t(_this__u8e3s4, first, objectRef);
|
|
2130
2131
|
} else {
|
|
2131
2132
|
if (isInterface(first, ObjectRef)) {
|
|
2132
|
-
var obj = first.
|
|
2133
|
+
var obj = first.r54();
|
|
2133
2134
|
var tmp_2;
|
|
2134
|
-
if (this.
|
|
2135
|
-
var tmp_3 = this.
|
|
2135
|
+
if (this.p56(obj)) {
|
|
2136
|
+
var tmp_3 = this.q56(!(obj == null) ? obj : THROW_CCE());
|
|
2136
2137
|
var items_0 = map(tmp_3, AbstractIterableItems$computeOneSubstitution$lambda_0);
|
|
2137
|
-
tmp_2 = Companion_getInstance_7().
|
|
2138
|
+
tmp_2 = Companion_getInstance_7().p2t(_this__u8e3s4, second, Companion_instance_5.ofSequence(items_0));
|
|
2138
2139
|
} else {
|
|
2139
2140
|
tmp_2 = Companion_getInstance_6().failed();
|
|
2140
2141
|
}
|
|
2141
2142
|
tmp = tmp_2;
|
|
2142
2143
|
} else {
|
|
2143
|
-
throw Companion_instance_1.
|
|
2144
|
+
throw Companion_instance_1.q2h(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_OBJECT_REFERENCE_getInstance(), first, 0);
|
|
2144
2145
|
}
|
|
2145
2146
|
}
|
|
2146
2147
|
}
|
|
2147
2148
|
return tmp;
|
|
2148
2149
|
};
|
|
2149
|
-
protoOf(AbstractIterableItems).
|
|
2150
|
-
return this.
|
|
2150
|
+
protoOf(AbstractIterableItems).d2t = function (_this__u8e3s4, first, second) {
|
|
2151
|
+
return this.t34(_this__u8e3s4, first, second);
|
|
2151
2152
|
};
|
|
2152
2153
|
function ArrayItems() {
|
|
2153
2154
|
ArrayItems_instance = this;
|
|
2154
2155
|
AbstractIterableItems.call(this, 'array');
|
|
2155
|
-
this.
|
|
2156
|
+
this.s56_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```";
|
|
2156
2157
|
}
|
|
2157
|
-
protoOf(ArrayItems).
|
|
2158
|
-
return this.
|
|
2158
|
+
protoOf(ArrayItems).a23 = function () {
|
|
2159
|
+
return this.s56_1;
|
|
2159
2160
|
};
|
|
2160
|
-
protoOf(ArrayItems).
|
|
2161
|
+
protoOf(ArrayItems).o56 = function (_this__u8e3s4) {
|
|
2161
2162
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
2162
2163
|
var this_0 = toList(_this__u8e3s4);
|
|
2163
2164
|
return copyToArray(this_0);
|
|
2164
2165
|
};
|
|
2165
|
-
protoOf(ArrayItems).
|
|
2166
|
+
protoOf(ArrayItems).p56 = function (_this__u8e3s4) {
|
|
2166
2167
|
return !(_this__u8e3s4 == null) ? isArray(_this__u8e3s4) : false;
|
|
2167
2168
|
};
|
|
2168
|
-
protoOf(ArrayItems).
|
|
2169
|
+
protoOf(ArrayItems).t56 = function (_this__u8e3s4) {
|
|
2169
2170
|
return asSequence_0(_this__u8e3s4);
|
|
2170
2171
|
};
|
|
2171
|
-
protoOf(ArrayItems).
|
|
2172
|
-
return this.
|
|
2172
|
+
protoOf(ArrayItems).q56 = function (_this__u8e3s4) {
|
|
2173
|
+
return this.t56(isArray(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE());
|
|
2173
2174
|
};
|
|
2174
2175
|
var ArrayItems_instance;
|
|
2175
2176
|
function ArrayItems_getInstance() {
|
|
@@ -2180,14 +2181,14 @@
|
|
|
2180
2181
|
function Assign() {
|
|
2181
2182
|
Assign_instance = this;
|
|
2182
2183
|
Predicative.call(this, 'assign');
|
|
2183
|
-
this.
|
|
2184
|
+
this.v56_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```";
|
|
2184
2185
|
}
|
|
2185
|
-
protoOf(Assign).
|
|
2186
|
-
return this.
|
|
2186
|
+
protoOf(Assign).a23 = function () {
|
|
2187
|
+
return this.v56_1;
|
|
2187
2188
|
};
|
|
2188
|
-
protoOf(Assign).
|
|
2189
|
-
Companion_getInstance_7().
|
|
2190
|
-
Companion_getInstance_7().
|
|
2189
|
+
protoOf(Assign).w56 = function (_this__u8e3s4, first, second, third) {
|
|
2190
|
+
Companion_getInstance_7().f2u(_this__u8e3s4, 0);
|
|
2191
|
+
Companion_getInstance_7().f2u(_this__u8e3s4, 1);
|
|
2191
2192
|
var tmp$ret$0;
|
|
2192
2193
|
$l$block: {
|
|
2193
2194
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2200,19 +2201,19 @@
|
|
|
2200
2201
|
}
|
|
2201
2202
|
var ref = tmp;
|
|
2202
2203
|
var tmp_0;
|
|
2203
|
-
if (Companion_getInstance_7().
|
|
2204
|
+
if (Companion_getInstance_7().r2t(_this__u8e3s4, third, get_DEALIASING_TEMPLATE())) {
|
|
2204
2205
|
tmp_0 = findRefFromAlias(_this__u8e3s4, isInterface(third, Struct) ? third : THROW_CCE());
|
|
2205
2206
|
} else {
|
|
2206
2207
|
tmp_0 = third;
|
|
2207
2208
|
}
|
|
2208
2209
|
var value = tmp_0;
|
|
2209
2210
|
var tmp_1 = get_termToObjectConverter(_this__u8e3s4);
|
|
2210
|
-
tmp$ret$0 = ref.
|
|
2211
|
+
tmp$ret$0 = ref.t54(tmp_1, (isInterface(second, Atom) ? second : THROW_CCE()).f1(), value);
|
|
2211
2212
|
break $l$block;
|
|
2212
2213
|
} catch ($p) {
|
|
2213
2214
|
if ($p instanceof OopException) {
|
|
2214
2215
|
var e = $p;
|
|
2215
|
-
throw e.
|
|
2216
|
+
throw e.z55(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2216
2217
|
} else {
|
|
2217
2218
|
if ($p instanceof ResolutionException) {
|
|
2218
2219
|
var e_0 = $p;
|
|
@@ -2230,8 +2231,8 @@
|
|
|
2230
2231
|
}
|
|
2231
2232
|
return tmp$ret$0;
|
|
2232
2233
|
};
|
|
2233
|
-
protoOf(Assign).
|
|
2234
|
-
return this.
|
|
2234
|
+
protoOf(Assign).d2w = function (_this__u8e3s4, first, second, third) {
|
|
2235
|
+
return this.w56(_this__u8e3s4, first, second, third);
|
|
2235
2236
|
};
|
|
2236
2237
|
var Assign_instance;
|
|
2237
2238
|
function Assign_getInstance() {
|
|
@@ -2244,8 +2245,8 @@
|
|
|
2244
2245
|
if (type == null) {
|
|
2245
2246
|
tmp = Companion_getInstance_6().failed();
|
|
2246
2247
|
} else {
|
|
2247
|
-
var casted = get_termToObjectConverter($receiver).
|
|
2248
|
-
tmp = Companion_getInstance_7().
|
|
2248
|
+
var casted = get_termToObjectConverter($receiver).m55(type, term);
|
|
2249
|
+
tmp = Companion_getInstance_7().p2t($receiver, result, Companion_getInstance_10().a55(casted));
|
|
2249
2250
|
}
|
|
2250
2251
|
return tmp;
|
|
2251
2252
|
}
|
|
@@ -2254,7 +2255,7 @@
|
|
|
2254
2255
|
}
|
|
2255
2256
|
function Cast$computeAll$lambda_0($$this$catchingOopExceptions, $first, $third, $second) {
|
|
2256
2257
|
return function (it) {
|
|
2257
|
-
return cast(Cast_getInstance(), $$this$catchingOopExceptions, $first, it, $third)
|
|
2258
|
+
return Companion_getInstance_7().q2t($$this$catchingOopExceptions, cast(Cast_getInstance(), $$this$catchingOopExceptions, $first, it, $third), Companion_getInstance_7().p2t($$this$catchingOopExceptions, $second, Companion_instance_12.q55(it)));
|
|
2258
2259
|
};
|
|
2259
2260
|
}
|
|
2260
2261
|
function Cast$computeAll$lambda_1($$this$catchingOopExceptions) {
|
|
@@ -2265,12 +2266,15 @@
|
|
|
2265
2266
|
function Cast() {
|
|
2266
2267
|
Cast_instance = this;
|
|
2267
2268
|
TernaryRelation.call(this, 'cast');
|
|
2268
|
-
this.
|
|
2269
|
+
this.y56_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```";
|
|
2269
2270
|
}
|
|
2270
|
-
protoOf(Cast).
|
|
2271
|
-
return
|
|
2271
|
+
protoOf(Cast).v2s = function () {
|
|
2272
|
+
return Alternatives_LOOKAHEAD_SAFE_getInstance();
|
|
2272
2273
|
};
|
|
2273
|
-
protoOf(Cast).
|
|
2274
|
+
protoOf(Cast).a23 = function () {
|
|
2275
|
+
return this.y56_1;
|
|
2276
|
+
};
|
|
2277
|
+
protoOf(Cast).z56 = function (_this__u8e3s4, first, second, third) {
|
|
2274
2278
|
var tmp$ret$0;
|
|
2275
2279
|
$l$block: {
|
|
2276
2280
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2281,7 +2285,7 @@
|
|
|
2281
2285
|
var tmp_0;
|
|
2282
2286
|
try {
|
|
2283
2287
|
var tmp_1 = Cast_getInstance();
|
|
2284
|
-
tmp_0 = sequenceOf(_this__u8e3s4.replyWith(cast(tmp_1, _this__u8e3s4, first, type == null ? null : type.
|
|
2288
|
+
tmp_0 = sequenceOf(_this__u8e3s4.replyWith(cast(tmp_1, _this__u8e3s4, first, type == null ? null : type.b2e(), third), VOID, []));
|
|
2285
2289
|
} catch ($p) {
|
|
2286
2290
|
var tmp_2;
|
|
2287
2291
|
if ($p instanceof TermToObjectConversionException) {
|
|
@@ -2295,7 +2299,7 @@
|
|
|
2295
2299
|
tmp = tmp_0;
|
|
2296
2300
|
} else {
|
|
2297
2301
|
if (isInterface(second, Var)) {
|
|
2298
|
-
var tmp_3 = asSequence(get_termToObjectConverter(_this__u8e3s4).
|
|
2302
|
+
var tmp_3 = asSequence(get_termToObjectConverter(_this__u8e3s4).n55(first));
|
|
2299
2303
|
var tmp_4 = distinct(flatMap(tmp_3, Cast$computeAll$lambda));
|
|
2300
2304
|
var tmp_5 = map(tmp_4, Cast$computeAll$lambda_0(_this__u8e3s4, first, third, second));
|
|
2301
2305
|
tmp = map(tmp_5, Cast$computeAll$lambda_1(_this__u8e3s4));
|
|
@@ -2309,7 +2313,7 @@
|
|
|
2309
2313
|
} catch ($p_0) {
|
|
2310
2314
|
if ($p_0 instanceof OopException) {
|
|
2311
2315
|
var e = $p_0;
|
|
2312
|
-
throw e.
|
|
2316
|
+
throw e.z55(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2313
2317
|
} else {
|
|
2314
2318
|
if ($p_0 instanceof ResolutionException) {
|
|
2315
2319
|
var e_0 = $p_0;
|
|
@@ -2327,8 +2331,8 @@
|
|
|
2327
2331
|
}
|
|
2328
2332
|
return tmp$ret$0;
|
|
2329
2333
|
};
|
|
2330
|
-
protoOf(Cast).
|
|
2331
|
-
return this.
|
|
2334
|
+
protoOf(Cast).w2v = function (_this__u8e3s4, first, second, third) {
|
|
2335
|
+
return this.z56(_this__u8e3s4, first, second, third);
|
|
2332
2336
|
};
|
|
2333
2337
|
var Cast_instance;
|
|
2334
2338
|
function Cast_getInstance() {
|
|
@@ -2339,13 +2343,13 @@
|
|
|
2339
2343
|
function InvokeMethod() {
|
|
2340
2344
|
InvokeMethod_instance = this;
|
|
2341
2345
|
AbstractInvoke.call(this, 'method');
|
|
2342
|
-
this.
|
|
2346
|
+
this.b57_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```";
|
|
2343
2347
|
}
|
|
2344
|
-
protoOf(InvokeMethod).
|
|
2345
|
-
return this.
|
|
2348
|
+
protoOf(InvokeMethod).a23 = function () {
|
|
2349
|
+
return this.b57_1;
|
|
2346
2350
|
};
|
|
2347
|
-
protoOf(InvokeMethod).
|
|
2348
|
-
return _this__u8e3s4.
|
|
2351
|
+
protoOf(InvokeMethod).m56 = function (_this__u8e3s4) {
|
|
2352
|
+
return _this__u8e3s4.l1r();
|
|
2349
2353
|
};
|
|
2350
2354
|
var InvokeMethod_instance;
|
|
2351
2355
|
function InvokeMethod_getInstance() {
|
|
@@ -2356,13 +2360,13 @@
|
|
|
2356
2360
|
function InvokeStrict() {
|
|
2357
2361
|
InvokeStrict_instance = this;
|
|
2358
2362
|
AbstractInvoke.call(this, 'strict');
|
|
2359
|
-
this.
|
|
2363
|
+
this.d57_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```";
|
|
2360
2364
|
}
|
|
2361
|
-
protoOf(InvokeStrict).
|
|
2362
|
-
return this.
|
|
2365
|
+
protoOf(InvokeStrict).a23 = function () {
|
|
2366
|
+
return this.d57_1;
|
|
2363
2367
|
};
|
|
2364
|
-
protoOf(InvokeStrict).
|
|
2365
|
-
return _this__u8e3s4.
|
|
2368
|
+
protoOf(InvokeStrict).m56 = function (_this__u8e3s4) {
|
|
2369
|
+
return _this__u8e3s4.h55();
|
|
2366
2370
|
};
|
|
2367
2371
|
var InvokeStrict_instance;
|
|
2368
2372
|
function InvokeStrict_getInstance() {
|
|
@@ -2373,22 +2377,22 @@
|
|
|
2373
2377
|
function ListItems() {
|
|
2374
2378
|
ListItems_instance = this;
|
|
2375
2379
|
AbstractIterableItems.call(this, 'list');
|
|
2376
|
-
this.
|
|
2380
|
+
this.f57_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```";
|
|
2377
2381
|
}
|
|
2378
|
-
protoOf(ListItems).
|
|
2379
|
-
return this.
|
|
2382
|
+
protoOf(ListItems).a23 = function () {
|
|
2383
|
+
return this.f57_1;
|
|
2380
2384
|
};
|
|
2381
|
-
protoOf(ListItems).
|
|
2385
|
+
protoOf(ListItems).o56 = function (_this__u8e3s4) {
|
|
2382
2386
|
return toList(_this__u8e3s4);
|
|
2383
2387
|
};
|
|
2384
|
-
protoOf(ListItems).
|
|
2388
|
+
protoOf(ListItems).p56 = function (_this__u8e3s4) {
|
|
2385
2389
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtList) : false;
|
|
2386
2390
|
};
|
|
2387
|
-
protoOf(ListItems).
|
|
2391
|
+
protoOf(ListItems).g57 = function (_this__u8e3s4) {
|
|
2388
2392
|
return asSequence(_this__u8e3s4);
|
|
2389
2393
|
};
|
|
2390
|
-
protoOf(ListItems).
|
|
2391
|
-
return this.
|
|
2394
|
+
protoOf(ListItems).q56 = function (_this__u8e3s4) {
|
|
2395
|
+
return this.g57(isInterface(_this__u8e3s4, KtList) ? _this__u8e3s4 : THROW_CCE());
|
|
2392
2396
|
};
|
|
2393
2397
|
var ListItems_instance;
|
|
2394
2398
|
function ListItems_getInstance() {
|
|
@@ -2399,28 +2403,28 @@
|
|
|
2399
2403
|
function NewObject3() {
|
|
2400
2404
|
NewObject3_instance = this;
|
|
2401
2405
|
Functional.call(this, 'new_object');
|
|
2402
|
-
this.
|
|
2406
|
+
this.i57_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```";
|
|
2403
2407
|
}
|
|
2404
|
-
protoOf(NewObject3).
|
|
2405
|
-
return this.
|
|
2408
|
+
protoOf(NewObject3).a23 = function () {
|
|
2409
|
+
return this.i57_1;
|
|
2406
2410
|
};
|
|
2407
|
-
protoOf(NewObject3).
|
|
2408
|
-
Companion_getInstance_7().
|
|
2409
|
-
Companion_getInstance_7().
|
|
2411
|
+
protoOf(NewObject3).r33 = function (_this__u8e3s4, first, second, third) {
|
|
2412
|
+
Companion_getInstance_7().a2u(_this__u8e3s4, 0);
|
|
2413
|
+
Companion_getInstance_7().k2u(_this__u8e3s4, 1);
|
|
2410
2414
|
var tmp$ret$0;
|
|
2411
2415
|
$l$block: {
|
|
2412
2416
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
2413
2417
|
try {
|
|
2414
2418
|
var type = getArgumentAsTypeRef(_this__u8e3s4, 0);
|
|
2415
2419
|
var arguments_0 = (isInterface(second, List) ? second : THROW_CCE()).toArray();
|
|
2416
|
-
var tmp1_safe_receiver = type == null ? null : type.
|
|
2417
|
-
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
2420
|
+
var tmp1_safe_receiver = type == null ? null : type.t55(get_termToObjectConverter(_this__u8e3s4), arguments_0.slice());
|
|
2421
|
+
var objectReference = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.h55();
|
|
2418
2422
|
var tmp;
|
|
2419
2423
|
if (objectReference == null) {
|
|
2420
2424
|
tmp = null;
|
|
2421
2425
|
} else {
|
|
2422
2426
|
// Inline function 'kotlin.let' call
|
|
2423
|
-
tmp = Companion_getInstance_7().
|
|
2427
|
+
tmp = Companion_getInstance_7().p2t(_this__u8e3s4, third, objectReference);
|
|
2424
2428
|
}
|
|
2425
2429
|
var tmp3_elvis_lhs = tmp;
|
|
2426
2430
|
tmp$ret$0 = tmp3_elvis_lhs == null ? Companion_getInstance_6().failed() : tmp3_elvis_lhs;
|
|
@@ -2428,7 +2432,7 @@
|
|
|
2428
2432
|
} catch ($p) {
|
|
2429
2433
|
if ($p instanceof OopException) {
|
|
2430
2434
|
var e = $p;
|
|
2431
|
-
throw e.
|
|
2435
|
+
throw e.z55(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2432
2436
|
} else {
|
|
2433
2437
|
if ($p instanceof ResolutionException) {
|
|
2434
2438
|
var e_0 = $p;
|
|
@@ -2446,8 +2450,8 @@
|
|
|
2446
2450
|
}
|
|
2447
2451
|
return tmp$ret$0;
|
|
2448
2452
|
};
|
|
2449
|
-
protoOf(NewObject3).
|
|
2450
|
-
return this.
|
|
2453
|
+
protoOf(NewObject3).b2w = function (_this__u8e3s4, first, second, third) {
|
|
2454
|
+
return this.r33(_this__u8e3s4, first, second, third);
|
|
2451
2455
|
};
|
|
2452
2456
|
var NewObject3_instance;
|
|
2453
2457
|
function NewObject3_getInstance() {
|
|
@@ -2458,12 +2462,12 @@
|
|
|
2458
2462
|
function NullRef_0() {
|
|
2459
2463
|
NullRef_instance = this;
|
|
2460
2464
|
TypeTester.call(this, 'null_ref');
|
|
2461
|
-
this.
|
|
2465
|
+
this.k57_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```";
|
|
2462
2466
|
}
|
|
2463
|
-
protoOf(NullRef_0).
|
|
2464
|
-
return this.
|
|
2467
|
+
protoOf(NullRef_0).a23 = function () {
|
|
2468
|
+
return this.k57_1;
|
|
2465
2469
|
};
|
|
2466
|
-
protoOf(NullRef_0).
|
|
2470
|
+
protoOf(NullRef_0).n2w = function (term) {
|
|
2467
2471
|
return isInterface(term, NullRef);
|
|
2468
2472
|
};
|
|
2469
2473
|
var NullRef_instance;
|
|
@@ -2475,12 +2479,12 @@
|
|
|
2475
2479
|
function ObjectRef_0() {
|
|
2476
2480
|
ObjectRef_instance = this;
|
|
2477
2481
|
TypeTester.call(this, 'object_ref');
|
|
2478
|
-
this.
|
|
2482
|
+
this.m57_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```";
|
|
2479
2483
|
}
|
|
2480
|
-
protoOf(ObjectRef_0).
|
|
2481
|
-
return this.
|
|
2484
|
+
protoOf(ObjectRef_0).a23 = function () {
|
|
2485
|
+
return this.m57_1;
|
|
2482
2486
|
};
|
|
2483
|
-
protoOf(ObjectRef_0).
|
|
2487
|
+
protoOf(ObjectRef_0).n2w = function (term) {
|
|
2484
2488
|
return isInterface(term, ObjectRef);
|
|
2485
2489
|
};
|
|
2486
2490
|
var ObjectRef_instance;
|
|
@@ -2513,18 +2517,18 @@
|
|
|
2513
2517
|
function get_termToObjectConverter(_this__u8e3s4) {
|
|
2514
2518
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2515
2519
|
var tmp = Companion_getInstance_13();
|
|
2516
|
-
return tmp.
|
|
2520
|
+
return tmp.j55(VOID, _get_termToObjectConverter_$lambda_4bacq4(_this__u8e3s4));
|
|
2517
2521
|
}
|
|
2518
2522
|
function getArgumentAsTypeRef(_this__u8e3s4, index) {
|
|
2519
2523
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2520
|
-
Companion_getInstance_7().
|
|
2524
|
+
Companion_getInstance_7().a2u(_this__u8e3s4, index);
|
|
2521
2525
|
var arg = _this__u8e3s4.arguments.t(index);
|
|
2522
2526
|
var tmp;
|
|
2523
2527
|
if (isInterface(arg, TypeRef)) {
|
|
2524
2528
|
tmp = arg;
|
|
2525
2529
|
} else {
|
|
2526
2530
|
if (isInterface(arg, Atom)) {
|
|
2527
|
-
tmp = Companion_getInstance_14().
|
|
2531
|
+
tmp = Companion_getInstance_14().l55_1.s55(arg.f1());
|
|
2528
2532
|
} else {
|
|
2529
2533
|
if (isDealiasingExpression(_this__u8e3s4, arg)) {
|
|
2530
2534
|
var tmp_0 = findRefFromAlias(_this__u8e3s4, arg.castToStruct());
|
|
@@ -2552,7 +2556,7 @@
|
|
|
2552
2556
|
tmp = _this__u8e3s4;
|
|
2553
2557
|
} else {
|
|
2554
2558
|
if (!isInterface(arg, TypeRef)) {
|
|
2555
|
-
throw Companion_instance_1.
|
|
2559
|
+
throw Companion_instance_1.q2h(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_TYPE_REFERENCE_getInstance(), arg, index);
|
|
2556
2560
|
} else {
|
|
2557
2561
|
tmp = _this__u8e3s4;
|
|
2558
2562
|
}
|
|
@@ -2567,7 +2571,7 @@
|
|
|
2567
2571
|
tmp = _this__u8e3s4;
|
|
2568
2572
|
} else {
|
|
2569
2573
|
if (!isInterface(arg, Ref)) {
|
|
2570
|
-
throw Companion_instance_1.
|
|
2574
|
+
throw Companion_instance_1.q2h(_this__u8e3s4.context, _this__u8e3s4.signature, Expected_REFERENCE_getInstance(), arg, index);
|
|
2571
2575
|
} else {
|
|
2572
2576
|
tmp = _this__u8e3s4;
|
|
2573
2577
|
}
|
|
@@ -2590,21 +2594,21 @@
|
|
|
2590
2594
|
var tmp_1 = filter(this_0, findRefFromAliasOrNull$lambda);
|
|
2591
2595
|
var tmp$ret$0 = isInterface(tmp_1, Sequence) ? tmp_1 : THROW_CCE();
|
|
2592
2596
|
var tmp0_safe_receiver = firstOrNull(tmp$ret$0);
|
|
2593
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
2597
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.q24();
|
|
2594
2598
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.get(1);
|
|
2595
|
-
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
2599
|
+
return tmp2_safe_receiver == null ? null : tmp2_safe_receiver.r14();
|
|
2596
2600
|
}
|
|
2597
2601
|
function isDealiasingExpression(_this__u8e3s4, term) {
|
|
2598
2602
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2599
2603
|
var tmp;
|
|
2600
2604
|
var tmp_0;
|
|
2601
2605
|
if (isInterface(term, Struct)) {
|
|
2602
|
-
tmp_0 = Companion_getInstance_7().
|
|
2606
|
+
tmp_0 = Companion_getInstance_7().r2t(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2603
2607
|
} else {
|
|
2604
2608
|
tmp_0 = false;
|
|
2605
2609
|
}
|
|
2606
2610
|
if (tmp_0) {
|
|
2607
|
-
var tmp_1 = term.
|
|
2611
|
+
var tmp_1 = term.y13().t(0);
|
|
2608
2612
|
tmp = isInterface(tmp_1, Atom);
|
|
2609
2613
|
} else {
|
|
2610
2614
|
tmp = false;
|
|
@@ -2615,7 +2619,7 @@
|
|
|
2615
2619
|
_init_properties_PrimitiveExtensions_kt__hfa11z();
|
|
2616
2620
|
var tmp;
|
|
2617
2621
|
if (isInterface(term, Struct)) {
|
|
2618
|
-
tmp = Companion_getInstance_7().
|
|
2622
|
+
tmp = Companion_getInstance_7().r2t(_this__u8e3s4, term, get_DEALIASING_TEMPLATE());
|
|
2619
2623
|
} else {
|
|
2620
2624
|
tmp = false;
|
|
2621
2625
|
}
|
|
@@ -2655,12 +2659,12 @@
|
|
|
2655
2659
|
function Ref_0() {
|
|
2656
2660
|
Ref_instance = this;
|
|
2657
2661
|
TypeTester.call(this, 'ref');
|
|
2658
|
-
this.
|
|
2662
|
+
this.o57_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```";
|
|
2659
2663
|
}
|
|
2660
|
-
protoOf(Ref_0).
|
|
2661
|
-
return this.
|
|
2664
|
+
protoOf(Ref_0).a23 = function () {
|
|
2665
|
+
return this.o57_1;
|
|
2662
2666
|
};
|
|
2663
|
-
protoOf(Ref_0).
|
|
2667
|
+
protoOf(Ref_0).n2w = function (term) {
|
|
2664
2668
|
return isInterface(term, Ref);
|
|
2665
2669
|
};
|
|
2666
2670
|
var Ref_instance;
|
|
@@ -2673,29 +2677,29 @@
|
|
|
2673
2677
|
return function ($this$replySuccess) {
|
|
2674
2678
|
var tmp = Companion_instance_15;
|
|
2675
2679
|
var tmp_0 = isInterface($second, Struct) ? $second : THROW_CCE();
|
|
2676
|
-
$this$replySuccess.
|
|
2680
|
+
$this$replySuccess.i2z([tmp.p57(tmp_0, isInterface($first, Ref) ? $first : THROW_CCE()).y22()]);
|
|
2677
2681
|
return Unit_instance;
|
|
2678
2682
|
};
|
|
2679
2683
|
}
|
|
2680
2684
|
function Register() {
|
|
2681
2685
|
Register_instance = this;
|
|
2682
2686
|
NonBacktrackable.call(this, 'register');
|
|
2683
|
-
this.
|
|
2687
|
+
this.r57_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```";
|
|
2684
2688
|
}
|
|
2685
|
-
protoOf(Register).
|
|
2686
|
-
return this.
|
|
2689
|
+
protoOf(Register).a23 = function () {
|
|
2690
|
+
return this.r57_1;
|
|
2687
2691
|
};
|
|
2688
|
-
protoOf(Register).
|
|
2689
|
-
Companion_getInstance_7().
|
|
2692
|
+
protoOf(Register).o33 = function (_this__u8e3s4, first_0, second) {
|
|
2693
|
+
Companion_getInstance_7().r2s(_this__u8e3s4);
|
|
2690
2694
|
ensuringArgumentIsRef(_this__u8e3s4, 0);
|
|
2691
|
-
Companion_getInstance_7().
|
|
2692
|
-
if (!second.
|
|
2693
|
-
throw Companion_instance_6.
|
|
2695
|
+
Companion_getInstance_7().a2u(_this__u8e3s4, 1);
|
|
2696
|
+
if (!second.a15()) {
|
|
2697
|
+
throw Companion_instance_6.t2f(_this__u8e3s4.context, _this__u8e3s4.signature, first(second.z13()), 0);
|
|
2694
2698
|
}
|
|
2695
2699
|
return _this__u8e3s4.replySuccessBuildingSideEffects(VOID, VOID, Register$computeOne$lambda(second, first_0));
|
|
2696
2700
|
};
|
|
2697
|
-
protoOf(Register).
|
|
2698
|
-
return this.
|
|
2701
|
+
protoOf(Register).t2s = function (_this__u8e3s4, first, second) {
|
|
2702
|
+
return this.o33(_this__u8e3s4, first, second);
|
|
2699
2703
|
};
|
|
2700
2704
|
var Register_instance;
|
|
2701
2705
|
function Register_getInstance() {
|
|
@@ -2706,22 +2710,22 @@
|
|
|
2706
2710
|
function SetItems() {
|
|
2707
2711
|
SetItems_instance = this;
|
|
2708
2712
|
AbstractIterableItems.call(this, 'set');
|
|
2709
|
-
this.
|
|
2713
|
+
this.t57_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```';
|
|
2710
2714
|
}
|
|
2711
|
-
protoOf(SetItems).
|
|
2712
|
-
return this.
|
|
2715
|
+
protoOf(SetItems).a23 = function () {
|
|
2716
|
+
return this.t57_1;
|
|
2713
2717
|
};
|
|
2714
|
-
protoOf(SetItems).
|
|
2718
|
+
protoOf(SetItems).o56 = function (_this__u8e3s4) {
|
|
2715
2719
|
return toSet(_this__u8e3s4);
|
|
2716
2720
|
};
|
|
2717
|
-
protoOf(SetItems).
|
|
2721
|
+
protoOf(SetItems).p56 = function (_this__u8e3s4) {
|
|
2718
2722
|
return !(_this__u8e3s4 == null) ? isInterface(_this__u8e3s4, KtSet) : false;
|
|
2719
2723
|
};
|
|
2720
|
-
protoOf(SetItems).
|
|
2724
|
+
protoOf(SetItems).u57 = function (_this__u8e3s4) {
|
|
2721
2725
|
return asSequence(_this__u8e3s4);
|
|
2722
2726
|
};
|
|
2723
|
-
protoOf(SetItems).
|
|
2724
|
-
return this.
|
|
2727
|
+
protoOf(SetItems).q56 = function (_this__u8e3s4) {
|
|
2728
|
+
return this.u57(isInterface(_this__u8e3s4, KtSet) ? _this__u8e3s4 : THROW_CCE());
|
|
2725
2729
|
};
|
|
2726
2730
|
var SetItems_instance;
|
|
2727
2731
|
function SetItems_getInstance() {
|
|
@@ -2732,13 +2736,13 @@
|
|
|
2732
2736
|
function Type() {
|
|
2733
2737
|
Type_instance = this;
|
|
2734
2738
|
Functional_0.call(this, 'type');
|
|
2735
|
-
this.
|
|
2736
|
-
this.
|
|
2739
|
+
this.w57_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```";
|
|
2740
|
+
this.x57_1 = Companion_getInstance_14().l55_1;
|
|
2737
2741
|
}
|
|
2738
|
-
protoOf(Type).
|
|
2739
|
-
return this.
|
|
2742
|
+
protoOf(Type).a23 = function () {
|
|
2743
|
+
return this.w57_1;
|
|
2740
2744
|
};
|
|
2741
|
-
protoOf(Type).
|
|
2745
|
+
protoOf(Type).t34 = function (_this__u8e3s4, first, second) {
|
|
2742
2746
|
var tmp$ret$0;
|
|
2743
2747
|
$l$block: {
|
|
2744
2748
|
// Inline function 'it.unibo.tuprolog.solve.libs.oop.primitives.catchingOopExceptions' call
|
|
@@ -2751,31 +2755,31 @@
|
|
|
2751
2755
|
tmp_0 = false;
|
|
2752
2756
|
}
|
|
2753
2757
|
if (tmp_0) {
|
|
2754
|
-
Companion_getInstance_7().
|
|
2758
|
+
Companion_getInstance_7().w2t(_this__u8e3s4, 0);
|
|
2755
2759
|
tmp = Companion_getInstance_6().failed();
|
|
2756
2760
|
} else {
|
|
2757
2761
|
if (isInterface(first, Var)) {
|
|
2758
|
-
Companion_getInstance_7().
|
|
2762
|
+
Companion_getInstance_7().f2u(_this__u8e3s4, 1);
|
|
2759
2763
|
ensuringArgumentIsTypeRef(_this__u8e3s4, 1);
|
|
2760
2764
|
var tmp_1 = Companion_getInstance_7();
|
|
2761
2765
|
var tmp_2 = Companion_getInstance_0();
|
|
2762
|
-
tmp = tmp_1.
|
|
2766
|
+
tmp = tmp_1.p2t(_this__u8e3s4, first, tmp_2.of(get_fullName((isInterface(second, TypeRef) ? second : THROW_CCE()).b2e())));
|
|
2763
2767
|
} else {
|
|
2764
2768
|
if (isInterface(second, Var)) {
|
|
2765
|
-
Companion_getInstance_7().
|
|
2766
|
-
var tmp_3 = Type_getInstance().
|
|
2767
|
-
var tmp0_safe_receiver = tmp_3.
|
|
2769
|
+
Companion_getInstance_7().f2u(_this__u8e3s4, 0);
|
|
2770
|
+
var tmp_3 = Type_getInstance().x57_1;
|
|
2771
|
+
var tmp0_safe_receiver = tmp_3.s55((isInterface(first, Atom) ? first : THROW_CCE()).f1());
|
|
2768
2772
|
var tmp_4;
|
|
2769
2773
|
if (tmp0_safe_receiver == null) {
|
|
2770
2774
|
tmp_4 = null;
|
|
2771
2775
|
} else {
|
|
2772
2776
|
// Inline function 'kotlin.let' call
|
|
2773
|
-
tmp_4 = Companion_getInstance_7().
|
|
2777
|
+
tmp_4 = Companion_getInstance_7().p2t(_this__u8e3s4, second, tmp0_safe_receiver);
|
|
2774
2778
|
}
|
|
2775
2779
|
var tmp1_elvis_lhs = tmp_4;
|
|
2776
2780
|
tmp = tmp1_elvis_lhs == null ? Companion_getInstance_6().failed() : tmp1_elvis_lhs;
|
|
2777
2781
|
} else {
|
|
2778
|
-
Companion_getInstance_7().
|
|
2782
|
+
Companion_getInstance_7().f2u(_this__u8e3s4, 0);
|
|
2779
2783
|
tmp = Companion_getInstance_6().failed();
|
|
2780
2784
|
}
|
|
2781
2785
|
}
|
|
@@ -2785,7 +2789,7 @@
|
|
|
2785
2789
|
} catch ($p) {
|
|
2786
2790
|
if ($p instanceof OopException) {
|
|
2787
2791
|
var e = $p;
|
|
2788
|
-
throw e.
|
|
2792
|
+
throw e.z55(_this__u8e3s4.context, _this__u8e3s4.signature);
|
|
2789
2793
|
} else {
|
|
2790
2794
|
if ($p instanceof ResolutionException) {
|
|
2791
2795
|
var e_0 = $p;
|
|
@@ -2803,8 +2807,8 @@
|
|
|
2803
2807
|
}
|
|
2804
2808
|
return tmp$ret$0;
|
|
2805
2809
|
};
|
|
2806
|
-
protoOf(Type).
|
|
2807
|
-
return this.
|
|
2810
|
+
protoOf(Type).d2t = function (_this__u8e3s4, first, second) {
|
|
2811
|
+
return this.t34(_this__u8e3s4, first, second);
|
|
2808
2812
|
};
|
|
2809
2813
|
var Type_instance;
|
|
2810
2814
|
function Type_getInstance() {
|
|
@@ -2815,12 +2819,12 @@
|
|
|
2815
2819
|
function TypeRef_0() {
|
|
2816
2820
|
TypeRef_instance = this;
|
|
2817
2821
|
TypeTester.call(this, 'type_ref');
|
|
2818
|
-
this.
|
|
2822
|
+
this.z57_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```";
|
|
2819
2823
|
}
|
|
2820
|
-
protoOf(TypeRef_0).
|
|
2821
|
-
return this.
|
|
2824
|
+
protoOf(TypeRef_0).a23 = function () {
|
|
2825
|
+
return this.z57_1;
|
|
2822
2826
|
};
|
|
2823
|
-
protoOf(TypeRef_0).
|
|
2827
|
+
protoOf(TypeRef_0).n2w = function (term) {
|
|
2824
2828
|
return isInterface(term, TypeRef);
|
|
2825
2829
|
};
|
|
2826
2830
|
var TypeRef_instance;
|
|
@@ -2831,30 +2835,30 @@
|
|
|
2831
2835
|
}
|
|
2832
2836
|
function Unregister$computeOne$lambda($first) {
|
|
2833
2837
|
return function (it) {
|
|
2834
|
-
return it.
|
|
2838
|
+
return it.s15().get(0).equals($first);
|
|
2835
2839
|
};
|
|
2836
2840
|
}
|
|
2837
2841
|
function Unregister$computeOne$lambda_0($toBeRemoved) {
|
|
2838
2842
|
return function ($this$replySuccess) {
|
|
2839
|
-
$this$replySuccess.
|
|
2843
|
+
$this$replySuccess.j2z($toBeRemoved);
|
|
2840
2844
|
return Unit_instance;
|
|
2841
2845
|
};
|
|
2842
2846
|
}
|
|
2843
2847
|
function Unregister() {
|
|
2844
2848
|
Unregister_instance = this;
|
|
2845
2849
|
NonBacktrackable_0.call(this, 'unregister');
|
|
2846
|
-
this.
|
|
2850
|
+
this.b58_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```";
|
|
2847
2851
|
}
|
|
2848
|
-
protoOf(Unregister).
|
|
2849
|
-
return this.
|
|
2852
|
+
protoOf(Unregister).a23 = function () {
|
|
2853
|
+
return this.b58_1;
|
|
2850
2854
|
};
|
|
2851
|
-
protoOf(Unregister).
|
|
2852
|
-
Companion_getInstance_7().
|
|
2853
|
-
if (!first_0.
|
|
2854
|
-
throw Companion_instance_6.
|
|
2855
|
+
protoOf(Unregister).a33 = function (_this__u8e3s4, first_0) {
|
|
2856
|
+
Companion_getInstance_7().a2u(_this__u8e3s4, 0);
|
|
2857
|
+
if (!first_0.a15()) {
|
|
2858
|
+
throw Companion_instance_6.t2f(_this__u8e3s4.context, _this__u8e3s4.signature, first(first_0.z13()), 0);
|
|
2855
2859
|
}
|
|
2856
2860
|
var pattern = Companion_getInstance_9().of('alias', [first_0, Companion_getInstance_8().anonymous()]);
|
|
2857
|
-
var tmp = _this__u8e3s4.context.
|
|
2861
|
+
var tmp = _this__u8e3s4.context.n23().getByHead(pattern);
|
|
2858
2862
|
var toBeRemoved = toList(filter(tmp, Unregister$computeOne$lambda(first_0)));
|
|
2859
2863
|
var tmp_0;
|
|
2860
2864
|
if (toBeRemoved.i()) {
|
|
@@ -2864,8 +2868,8 @@
|
|
|
2864
2868
|
}
|
|
2865
2869
|
return tmp_0;
|
|
2866
2870
|
};
|
|
2867
|
-
protoOf(Unregister).
|
|
2868
|
-
return this.
|
|
2871
|
+
protoOf(Unregister).i2w = function (_this__u8e3s4, first) {
|
|
2872
|
+
return this.a33(_this__u8e3s4, first);
|
|
2869
2873
|
};
|
|
2870
2874
|
var Unregister_instance;
|
|
2871
2875
|
function Unregister_getInstance() {
|
|
@@ -2874,12 +2878,12 @@
|
|
|
2874
2878
|
return Unregister_instance;
|
|
2875
2879
|
}
|
|
2876
2880
|
function Companion_7() {
|
|
2877
|
-
this.
|
|
2881
|
+
this.u54_1 = 'alias';
|
|
2878
2882
|
}
|
|
2879
|
-
protoOf(Companion_7).
|
|
2880
|
-
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.
|
|
2883
|
+
protoOf(Companion_7).v54 = function (alias, type) {
|
|
2884
|
+
return new Alias(Companion_getInstance_0().of(alias), Companion_instance_12.q55(type));
|
|
2881
2885
|
};
|
|
2882
|
-
protoOf(Companion_7).
|
|
2886
|
+
protoOf(Companion_7).p57 = function (alias, ref) {
|
|
2883
2887
|
return new Alias(alias, ref);
|
|
2884
2888
|
};
|
|
2885
2889
|
var Companion_instance_15;
|
|
@@ -2888,123 +2892,123 @@
|
|
|
2888
2892
|
}
|
|
2889
2893
|
function Alias(alias, ref) {
|
|
2890
2894
|
RuleWrapper_init_$Init$('alias', 2, VOID, this);
|
|
2891
|
-
this.
|
|
2892
|
-
this.
|
|
2893
|
-
this.
|
|
2895
|
+
this.f58_1 = alias;
|
|
2896
|
+
this.g58_1 = ref;
|
|
2897
|
+
this.h58_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```";
|
|
2894
2898
|
// Inline function 'kotlin.require' call
|
|
2895
|
-
if (!this.
|
|
2896
|
-
var message = 'Alias must be a ground term, got: ' + this.
|
|
2899
|
+
if (!this.f58_1.a15()) {
|
|
2900
|
+
var message = 'Alias must be a ground term, got: ' + this.f58_1.toString();
|
|
2897
2901
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
2898
2902
|
}
|
|
2899
2903
|
}
|
|
2900
|
-
protoOf(Alias).
|
|
2901
|
-
return this.
|
|
2904
|
+
protoOf(Alias).a23 = function () {
|
|
2905
|
+
return this.h58_1;
|
|
2902
2906
|
};
|
|
2903
|
-
protoOf(Alias).
|
|
2904
|
-
return toList(sequenceOf_0([this.
|
|
2907
|
+
protoOf(Alias).o2w = function (_this__u8e3s4) {
|
|
2908
|
+
return toList(sequenceOf_0([this.f58_1, this.g58_1]));
|
|
2905
2909
|
};
|
|
2906
2910
|
function _get_R__7mlo3j($this) {
|
|
2907
2911
|
var tmp = KProperty1;
|
|
2908
|
-
return $this.
|
|
2912
|
+
return $this.m58_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Cast$_get_R_$ref_879xch(), null));
|
|
2909
2913
|
}
|
|
2910
2914
|
function _get_X__7mlo8p($this) {
|
|
2911
2915
|
var tmp = KProperty1;
|
|
2912
|
-
return $this.
|
|
2916
|
+
return $this.n58_1.getValue($this, getPropertyCallableRef('X', 1, tmp, ColonEquals$Cast$_get_X_$ref_5d06zb(), null));
|
|
2913
2917
|
}
|
|
2914
2918
|
function _get_Y__7mlo9k($this) {
|
|
2915
2919
|
var tmp = KProperty1;
|
|
2916
|
-
return $this.
|
|
2920
|
+
return $this.o58_1.getValue($this, getPropertyCallableRef('Y', 1, tmp, ColonEquals$Cast$_get_Y_$ref_4vykl4(), null));
|
|
2917
2921
|
}
|
|
2918
2922
|
function _get_T__7mlo59($this) {
|
|
2919
2923
|
var tmp = KProperty1;
|
|
2920
|
-
return $this.
|
|
2924
|
+
return $this.p58_1.getValue($this, getPropertyCallableRef('T', 1, tmp, ColonEquals$Cast$_get_T_$ref_796ok3(), null));
|
|
2921
2925
|
}
|
|
2922
2926
|
function ColonEquals$Cast$_get_R_$ref_879xch() {
|
|
2923
2927
|
return constructCallableReference(function (p0) {
|
|
2924
2928
|
return _get_R__7mlo3j(p0);
|
|
2925
|
-
}, 1, 0,
|
|
2929
|
+
}, 1, 0, 84);
|
|
2926
2930
|
}
|
|
2927
2931
|
function ColonEquals$Cast$_get_X_$ref_5d06zb() {
|
|
2928
2932
|
return constructCallableReference(function (p0) {
|
|
2929
2933
|
return _get_X__7mlo8p(p0);
|
|
2930
|
-
}, 1, 0,
|
|
2934
|
+
}, 1, 0, 85);
|
|
2931
2935
|
}
|
|
2932
2936
|
function ColonEquals$Cast$_get_Y_$ref_4vykl4() {
|
|
2933
2937
|
return constructCallableReference(function (p0) {
|
|
2934
2938
|
return _get_Y__7mlo9k(p0);
|
|
2935
|
-
}, 1, 0,
|
|
2939
|
+
}, 1, 0, 86);
|
|
2936
2940
|
}
|
|
2937
2941
|
function ColonEquals$Cast$_get_T_$ref_796ok3() {
|
|
2938
2942
|
return constructCallableReference(function (p0) {
|
|
2939
2943
|
return _get_T__7mlo59(p0);
|
|
2940
|
-
}, 1, 0,
|
|
2944
|
+
}, 1, 0, 87);
|
|
2941
2945
|
}
|
|
2942
2946
|
function _get_R__7mlo3j_0($this) {
|
|
2943
2947
|
var tmp = KProperty1;
|
|
2944
|
-
return $this.
|
|
2948
|
+
return $this.u58_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Invocation$_get_R_$ref_tlu5kw(), null));
|
|
2945
2949
|
}
|
|
2946
2950
|
function _get_M__7mlnz8($this) {
|
|
2947
2951
|
var tmp = KProperty1;
|
|
2948
|
-
return $this.
|
|
2952
|
+
return $this.v58_1.getValue($this, getPropertyCallableRef('M', 1, tmp, ColonEquals$Invocation$_get_M_$ref_vz29jv(), null));
|
|
2949
2953
|
}
|
|
2950
2954
|
function ColonEquals$Invocation$_get_R_$ref_tlu5kw() {
|
|
2951
2955
|
return constructCallableReference(function (p0) {
|
|
2952
2956
|
return _get_R__7mlo3j_0(p0);
|
|
2953
|
-
}, 1, 0,
|
|
2957
|
+
}, 1, 0, 88);
|
|
2954
2958
|
}
|
|
2955
2959
|
function ColonEquals$Invocation$_get_M_$ref_vz29jv() {
|
|
2956
2960
|
return constructCallableReference(function (p0) {
|
|
2957
2961
|
return _get_M__7mlnz8(p0);
|
|
2958
|
-
}, 1, 0,
|
|
2962
|
+
}, 1, 0, 89);
|
|
2959
2963
|
}
|
|
2960
2964
|
function _get_C__7mlnqm($this) {
|
|
2961
2965
|
var tmp = KProperty1;
|
|
2962
|
-
return $this.
|
|
2966
|
+
return $this.a59_1.getValue($this, getPropertyCallableRef('C', 1, tmp, ColonEquals$Assignment$_get_C_$ref_kw9fvw(), null));
|
|
2963
2967
|
}
|
|
2964
2968
|
function _get_P__7mlo1t($this) {
|
|
2965
2969
|
var tmp = KProperty1;
|
|
2966
|
-
return $this.
|
|
2970
|
+
return $this.b59_1.getValue($this, getPropertyCallableRef('P', 1, tmp, ColonEquals$Assignment$_get_P_$ref_r1uj0f(), null));
|
|
2967
2971
|
}
|
|
2968
2972
|
function _get_R__7mlo3j_1($this) {
|
|
2969
2973
|
var tmp = KProperty1;
|
|
2970
|
-
return $this.
|
|
2974
|
+
return $this.c59_1.getValue($this, getPropertyCallableRef('R', 1, tmp, ColonEquals$Assignment$_get_R_$ref_rzxrst(), null));
|
|
2971
2975
|
}
|
|
2972
2976
|
function _get_V__7mlo6z($this) {
|
|
2973
2977
|
var tmp = KProperty1;
|
|
2974
|
-
return $this.
|
|
2978
|
+
return $this.d59_1.getValue($this, getPropertyCallableRef('V', 1, tmp, ColonEquals$Assignment$_get_V_$ref_tw49dl(), null));
|
|
2975
2979
|
}
|
|
2976
2980
|
function ColonEquals$Assignment$_get_C_$ref_kw9fvw() {
|
|
2977
2981
|
return constructCallableReference(function (p0) {
|
|
2978
2982
|
return _get_C__7mlnqm(p0);
|
|
2979
|
-
}, 1, 0,
|
|
2983
|
+
}, 1, 0, 90);
|
|
2980
2984
|
}
|
|
2981
2985
|
function ColonEquals$Assignment$_get_P_$ref_r1uj0f() {
|
|
2982
2986
|
return constructCallableReference(function (p0) {
|
|
2983
2987
|
return _get_P__7mlo1t(p0);
|
|
2984
|
-
}, 1, 0,
|
|
2988
|
+
}, 1, 0, 91);
|
|
2985
2989
|
}
|
|
2986
2990
|
function ColonEquals$Assignment$_get_R_$ref_rzxrst() {
|
|
2987
2991
|
return constructCallableReference(function (p0) {
|
|
2988
2992
|
return _get_R__7mlo3j_1(p0);
|
|
2989
|
-
}, 1, 0,
|
|
2993
|
+
}, 1, 0, 92);
|
|
2990
2994
|
}
|
|
2991
2995
|
function ColonEquals$Assignment$_get_V_$ref_tw49dl() {
|
|
2992
2996
|
return constructCallableReference(function (p0) {
|
|
2993
2997
|
return _get_V__7mlo6z(p0);
|
|
2994
|
-
}, 1, 0,
|
|
2998
|
+
}, 1, 0, 93);
|
|
2995
2999
|
}
|
|
2996
3000
|
function Cast_0() {
|
|
2997
3001
|
Cast_instance_0 = this;
|
|
2998
3002
|
ColonEquals.call(this);
|
|
2999
|
-
this.
|
|
3000
|
-
this.
|
|
3001
|
-
this.
|
|
3002
|
-
this.
|
|
3003
|
+
this.m58_1 = this.f28_1;
|
|
3004
|
+
this.n58_1 = this.f28_1;
|
|
3005
|
+
this.o58_1 = this.f28_1;
|
|
3006
|
+
this.p58_1 = this.f28_1;
|
|
3003
3007
|
}
|
|
3004
|
-
protoOf(Cast_0).
|
|
3008
|
+
protoOf(Cast_0).o2w = function (_this__u8e3s4) {
|
|
3005
3009
|
return listOf([_get_R__7mlo3j(this), _this__u8e3s4.structOf('as', [_get_X__7mlo8p(this), _get_T__7mlo59(this)])]);
|
|
3006
3010
|
};
|
|
3007
|
-
protoOf(Cast_0).
|
|
3011
|
+
protoOf(Cast_0).p2w = function (_this__u8e3s4) {
|
|
3008
3012
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3009
3013
|
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
3010
3014
|
var tmp = _this__u8e3s4.structOf(tmp$ret$0, [_get_R__7mlo3j(this)]);
|
|
@@ -3023,13 +3027,13 @@
|
|
|
3023
3027
|
function Invocation() {
|
|
3024
3028
|
Invocation_instance = this;
|
|
3025
3029
|
ColonEquals.call(this);
|
|
3026
|
-
this.
|
|
3027
|
-
this.
|
|
3030
|
+
this.u58_1 = this.f28_1;
|
|
3031
|
+
this.v58_1 = this.f28_1;
|
|
3028
3032
|
}
|
|
3029
|
-
protoOf(Invocation).
|
|
3033
|
+
protoOf(Invocation).o2w = function (_this__u8e3s4) {
|
|
3030
3034
|
return listOf([_get_R__7mlo3j_0(this), _get_M__7mlnz8(this)]);
|
|
3031
3035
|
};
|
|
3032
|
-
protoOf(Invocation).
|
|
3036
|
+
protoOf(Invocation).p2w = function (_this__u8e3s4) {
|
|
3033
3037
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3034
3038
|
var tmp$ret$0 = Var_getInstance().signature.name;
|
|
3035
3039
|
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)])]);
|
|
@@ -3043,15 +3047,15 @@
|
|
|
3043
3047
|
function Assignment() {
|
|
3044
3048
|
Assignment_instance = this;
|
|
3045
3049
|
ColonEquals.call(this);
|
|
3046
|
-
this.
|
|
3047
|
-
this.
|
|
3048
|
-
this.
|
|
3049
|
-
this.
|
|
3050
|
+
this.a59_1 = this.f28_1;
|
|
3051
|
+
this.b59_1 = this.f28_1;
|
|
3052
|
+
this.c59_1 = this.f28_1;
|
|
3053
|
+
this.d59_1 = this.f28_1;
|
|
3050
3054
|
}
|
|
3051
|
-
protoOf(Assignment).
|
|
3055
|
+
protoOf(Assignment).o2w = function (_this__u8e3s4) {
|
|
3052
3056
|
return listOf([_get_C__7mlnqm(this), _get_V__7mlo6z(this)]);
|
|
3053
3057
|
};
|
|
3054
|
-
protoOf(Assignment).
|
|
3058
|
+
protoOf(Assignment).p2w = function (_this__u8e3s4) {
|
|
3055
3059
|
var tmp = _this__u8e3s4.structOf('property_reduce', [_get_C__7mlnqm(this), _get_R__7mlo3j_1(this), _get_P__7mlo1t(this)]);
|
|
3056
3060
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3057
3061
|
var tmp$ret$0 = Assign_getInstance().signature.name;
|
|
@@ -3065,44 +3069,44 @@
|
|
|
3065
3069
|
}
|
|
3066
3070
|
function ColonEquals() {
|
|
3067
3071
|
RuleWrapper_init_$Init$(':=', 2, VOID, this);
|
|
3068
|
-
this.
|
|
3072
|
+
this.h59_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```";
|
|
3069
3073
|
}
|
|
3070
|
-
protoOf(ColonEquals).
|
|
3071
|
-
return this.
|
|
3074
|
+
protoOf(ColonEquals).a23 = function () {
|
|
3075
|
+
return this.h59_1;
|
|
3072
3076
|
};
|
|
3073
3077
|
function _get_Method__a3idyi($this) {
|
|
3074
3078
|
var tmp = KProperty1;
|
|
3075
|
-
return $this.
|
|
3079
|
+
return $this.m59_1.getValue($this, getPropertyCallableRef('Method', 1, tmp, Dot$_get_Method_$ref_b7a4zw(), null));
|
|
3076
3080
|
}
|
|
3077
3081
|
function _get_Ref__e5vi4e($this) {
|
|
3078
3082
|
var tmp = KProperty1;
|
|
3079
|
-
return $this.
|
|
3083
|
+
return $this.n59_1.getValue($this, getPropertyCallableRef('Ref', 1, tmp, Dot$_get_Ref_$ref_33uzaq(), null));
|
|
3080
3084
|
}
|
|
3081
3085
|
function Dot$_get_Method_$ref_b7a4zw() {
|
|
3082
3086
|
return constructCallableReference(function (p0) {
|
|
3083
3087
|
return _get_Method__a3idyi(p0);
|
|
3084
|
-
}, 1, 0,
|
|
3088
|
+
}, 1, 0, 94);
|
|
3085
3089
|
}
|
|
3086
3090
|
function Dot$_get_Ref_$ref_33uzaq() {
|
|
3087
3091
|
return constructCallableReference(function (p0) {
|
|
3088
3092
|
return _get_Ref__e5vi4e(p0);
|
|
3089
|
-
}, 1, 0,
|
|
3093
|
+
}, 1, 0, 95);
|
|
3090
3094
|
}
|
|
3091
3095
|
function Dot() {
|
|
3092
3096
|
Dot_instance = this;
|
|
3093
3097
|
RuleWrapper_init_$Init$('.', 2, VOID, this);
|
|
3094
|
-
this.
|
|
3095
|
-
this.
|
|
3096
|
-
this.
|
|
3098
|
+
this.l59_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```";
|
|
3099
|
+
this.m59_1 = this.f28_1;
|
|
3100
|
+
this.n59_1 = this.f28_1;
|
|
3097
3101
|
}
|
|
3098
|
-
protoOf(Dot).
|
|
3099
|
-
return this.
|
|
3102
|
+
protoOf(Dot).a23 = function () {
|
|
3103
|
+
return this.l59_1;
|
|
3100
3104
|
};
|
|
3101
|
-
protoOf(Dot).
|
|
3105
|
+
protoOf(Dot).o2w = function (_this__u8e3s4) {
|
|
3102
3106
|
return listOf([_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)]);
|
|
3103
3107
|
};
|
|
3104
|
-
protoOf(Dot).
|
|
3105
|
-
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.
|
|
3108
|
+
protoOf(Dot).p2w = function (_this__u8e3s4) {
|
|
3109
|
+
return _this__u8e3s4.structOf('fluent_reduce', [_this__u8e3s4.consOf(_get_Ref__e5vi4e(this), _get_Method__a3idyi(this)), _this__u8e3s4.e19()]);
|
|
3106
3110
|
};
|
|
3107
3111
|
var Dot_instance;
|
|
3108
3112
|
function Dot_getInstance() {
|
|
@@ -3112,61 +3116,61 @@
|
|
|
3112
3116
|
}
|
|
3113
3117
|
function _get_P__7mlo1t_0($this) {
|
|
3114
3118
|
var tmp = KProperty1;
|
|
3115
|
-
return $this.
|
|
3119
|
+
return $this.t59_1.getValue($this, getPropertyCallableRef('P', 1, tmp, FluentReduce$Recursive$_get_P_$ref_qmyw78(), null));
|
|
3116
3120
|
}
|
|
3117
3121
|
function _get_M__7mlnz8_0($this) {
|
|
3118
3122
|
var tmp = KProperty1;
|
|
3119
|
-
return $this.
|
|
3123
|
+
return $this.u59_1.getValue($this, getPropertyCallableRef('M', 1, tmp, FluentReduce$Recursive$_get_M_$ref_s23rdt(), null));
|
|
3120
3124
|
}
|
|
3121
3125
|
function _get_P1__ndbjd6($this) {
|
|
3122
3126
|
var tmp = KProperty1;
|
|
3123
|
-
return $this.
|
|
3127
|
+
return $this.v59_1.getValue($this, getPropertyCallableRef('P1', 1, tmp, FluentReduce$Recursive$_get_P1_$ref_ksmyi5(), null));
|
|
3124
3128
|
}
|
|
3125
3129
|
function _get_X__7mlo8p_0($this) {
|
|
3126
3130
|
var tmp = KProperty1;
|
|
3127
|
-
return $this.
|
|
3131
|
+
return $this.w59_1.getValue($this, getPropertyCallableRef('X', 1, tmp, FluentReduce$Recursive$_get_X_$ref_mulx1o(), null));
|
|
3128
3132
|
}
|
|
3129
3133
|
function FluentReduce$Recursive$_get_P_$ref_qmyw78() {
|
|
3130
3134
|
return constructCallableReference(function (p0) {
|
|
3131
3135
|
return _get_P__7mlo1t_0(p0);
|
|
3132
|
-
}, 1, 0,
|
|
3136
|
+
}, 1, 0, 96);
|
|
3133
3137
|
}
|
|
3134
3138
|
function FluentReduce$Recursive$_get_M_$ref_s23rdt() {
|
|
3135
3139
|
return constructCallableReference(function (p0) {
|
|
3136
3140
|
return _get_M__7mlnz8_0(p0);
|
|
3137
|
-
}, 1, 0,
|
|
3141
|
+
}, 1, 0, 97);
|
|
3138
3142
|
}
|
|
3139
3143
|
function FluentReduce$Recursive$_get_P1_$ref_ksmyi5() {
|
|
3140
3144
|
return constructCallableReference(function (p0) {
|
|
3141
3145
|
return _get_P1__ndbjd6(p0);
|
|
3142
|
-
}, 1, 0,
|
|
3146
|
+
}, 1, 0, 98);
|
|
3143
3147
|
}
|
|
3144
3148
|
function FluentReduce$Recursive$_get_X_$ref_mulx1o() {
|
|
3145
3149
|
return constructCallableReference(function (p0) {
|
|
3146
3150
|
return _get_X__7mlo8p_0(p0);
|
|
3147
|
-
}, 1, 0,
|
|
3151
|
+
}, 1, 0, 99);
|
|
3148
3152
|
}
|
|
3149
3153
|
function _get_P__7mlo1t_1($this) {
|
|
3150
3154
|
var tmp = KProperty1;
|
|
3151
|
-
return $this.
|
|
3155
|
+
return $this.c5a_1.getValue($this, getPropertyCallableRef('P', 1, tmp, FluentReduce$Couple$_get_P_$ref_o7vzn6(), null));
|
|
3152
3156
|
}
|
|
3153
3157
|
function _get_M__7mlnz8_1($this) {
|
|
3154
3158
|
var tmp = KProperty1;
|
|
3155
|
-
return $this.
|
|
3159
|
+
return $this.d5a_1.getValue($this, getPropertyCallableRef('M', 1, tmp, FluentReduce$Couple$_get_M_$ref_pn0utr(), null));
|
|
3156
3160
|
}
|
|
3157
3161
|
function FluentReduce$Couple$_get_P_$ref_o7vzn6() {
|
|
3158
3162
|
return constructCallableReference(function (p0) {
|
|
3159
3163
|
return _get_P__7mlo1t_1(p0);
|
|
3160
|
-
}, 1, 0,
|
|
3164
|
+
}, 1, 0, 100);
|
|
3161
3165
|
}
|
|
3162
3166
|
function FluentReduce$Couple$_get_M_$ref_pn0utr() {
|
|
3163
3167
|
return constructCallableReference(function (p0) {
|
|
3164
3168
|
return _get_M__7mlnz8_1(p0);
|
|
3165
|
-
}, 1, 0,
|
|
3169
|
+
}, 1, 0, 101);
|
|
3166
3170
|
}
|
|
3167
3171
|
function Companion_8() {
|
|
3168
|
-
this.
|
|
3169
|
-
this.
|
|
3172
|
+
this.e5a_1 = 'fluent_reduce';
|
|
3173
|
+
this.f5a_1 = 2;
|
|
3170
3174
|
}
|
|
3171
3175
|
var Companion_instance_16;
|
|
3172
3176
|
function Companion_getInstance_19() {
|
|
@@ -3175,19 +3179,19 @@
|
|
|
3175
3179
|
function Recursive() {
|
|
3176
3180
|
Recursive_instance = this;
|
|
3177
3181
|
FluentReduce.call(this);
|
|
3178
|
-
this.
|
|
3179
|
-
this.
|
|
3180
|
-
this.
|
|
3181
|
-
this.
|
|
3182
|
+
this.t59_1 = this.f28_1;
|
|
3183
|
+
this.u59_1 = this.f28_1;
|
|
3184
|
+
this.v59_1 = this.f28_1;
|
|
3185
|
+
this.w59_1 = this.f28_1;
|
|
3182
3186
|
}
|
|
3183
|
-
protoOf(Recursive).
|
|
3184
|
-
return listOf([_this__u8e3s4.
|
|
3187
|
+
protoOf(Recursive).o2w = function (_this__u8e3s4) {
|
|
3188
|
+
return listOf([_this__u8e3s4.f19([_get_P__7mlo1t_0(this), _get_M__7mlnz8_0(this)], _get_X__7mlo8p_0(this)), this.l5a()]);
|
|
3185
3189
|
};
|
|
3186
|
-
protoOf(Recursive).
|
|
3190
|
+
protoOf(Recursive).p2w = function (_this__u8e3s4) {
|
|
3187
3191
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3188
3192
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3189
3193
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
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.
|
|
3194
|
+
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.l5a()])]);
|
|
3191
3195
|
};
|
|
3192
3196
|
var Recursive_instance;
|
|
3193
3197
|
function Recursive_getInstance() {
|
|
@@ -3198,17 +3202,17 @@
|
|
|
3198
3202
|
function Couple() {
|
|
3199
3203
|
Couple_instance = this;
|
|
3200
3204
|
FluentReduce.call(this);
|
|
3201
|
-
this.
|
|
3202
|
-
this.
|
|
3205
|
+
this.c5a_1 = this.f28_1;
|
|
3206
|
+
this.d5a_1 = this.f28_1;
|
|
3203
3207
|
}
|
|
3204
|
-
protoOf(Couple).
|
|
3205
|
-
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.
|
|
3208
|
+
protoOf(Couple).o2w = function (_this__u8e3s4) {
|
|
3209
|
+
return listOf([_this__u8e3s4.consOf(_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this)), this.l5a()]);
|
|
3206
3210
|
};
|
|
3207
|
-
protoOf(Couple).
|
|
3211
|
+
protoOf(Couple).p2w = function (_this__u8e3s4) {
|
|
3208
3212
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3209
3213
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3210
3214
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3211
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.
|
|
3215
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [_get_P__7mlo1t_1(this), _get_M__7mlnz8_1(this), this.l5a()])]);
|
|
3212
3216
|
};
|
|
3213
3217
|
var Couple_instance;
|
|
3214
3218
|
function Couple_getInstance() {
|
|
@@ -3220,8 +3224,8 @@
|
|
|
3220
3224
|
Trivial_instance = this;
|
|
3221
3225
|
FluentReduce.call(this);
|
|
3222
3226
|
}
|
|
3223
|
-
protoOf(Trivial).
|
|
3224
|
-
return listOf([this.
|
|
3227
|
+
protoOf(Trivial).o2w = function (_this__u8e3s4) {
|
|
3228
|
+
return listOf([this.l5a(), this.l5a()]);
|
|
3225
3229
|
};
|
|
3226
3230
|
var Trivial_instance;
|
|
3227
3231
|
function Trivial_getInstance() {
|
|
@@ -3231,61 +3235,61 @@
|
|
|
3231
3235
|
}
|
|
3232
3236
|
function FluentReduce$_get_R_$ref_ypb4y4() {
|
|
3233
3237
|
return constructCallableReference(function (p0) {
|
|
3234
|
-
return p0.
|
|
3235
|
-
}, 1, 0,
|
|
3238
|
+
return p0.l5a();
|
|
3239
|
+
}, 1, 0, 102);
|
|
3236
3240
|
}
|
|
3237
3241
|
function FluentReduce() {
|
|
3238
3242
|
RuleWrapper_init_$Init$('fluent_reduce', 2, VOID, this);
|
|
3239
|
-
this.
|
|
3240
|
-
this.
|
|
3243
|
+
this.j5a_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```";
|
|
3244
|
+
this.k5a_1 = this.f28_1;
|
|
3241
3245
|
}
|
|
3242
|
-
protoOf(FluentReduce).
|
|
3243
|
-
return this.
|
|
3246
|
+
protoOf(FluentReduce).a23 = function () {
|
|
3247
|
+
return this.j5a_1;
|
|
3244
3248
|
};
|
|
3245
|
-
protoOf(FluentReduce).
|
|
3249
|
+
protoOf(FluentReduce).l5a = function () {
|
|
3246
3250
|
var tmp = KProperty1;
|
|
3247
|
-
return this.
|
|
3251
|
+
return this.k5a_1.getValue(this, getPropertyCallableRef('R', 1, tmp, FluentReduce$_get_R_$ref_ypb4y4(), null));
|
|
3248
3252
|
};
|
|
3249
|
-
protoOf(FluentReduce).
|
|
3253
|
+
protoOf(FluentReduce).p2w = function (_this__u8e3s4) {
|
|
3250
3254
|
return _this__u8e3s4.atomOf('!');
|
|
3251
3255
|
};
|
|
3252
3256
|
function _get_Type__cwwv8x($this) {
|
|
3253
3257
|
var tmp = KProperty1;
|
|
3254
|
-
return $this.
|
|
3258
|
+
return $this.v5a_1.getValue($this, getPropertyCallableRef('Type', 1, tmp, NewObject2$_get_Type_$ref_gxw6of(), null));
|
|
3255
3259
|
}
|
|
3256
3260
|
function _get_Instance__cwfjuy($this) {
|
|
3257
3261
|
var tmp = KProperty1;
|
|
3258
|
-
return $this.
|
|
3262
|
+
return $this.w5a_1.getValue($this, getPropertyCallableRef('Instance', 1, tmp, NewObject2$_get_Instance_$ref_jt2xca(), null));
|
|
3259
3263
|
}
|
|
3260
3264
|
function NewObject2$_get_Type_$ref_gxw6of() {
|
|
3261
3265
|
return constructCallableReference(function (p0) {
|
|
3262
3266
|
return _get_Type__cwwv8x(p0);
|
|
3263
|
-
}, 1, 0,
|
|
3267
|
+
}, 1, 0, 103);
|
|
3264
3268
|
}
|
|
3265
3269
|
function NewObject2$_get_Instance_$ref_jt2xca() {
|
|
3266
3270
|
return constructCallableReference(function (p0) {
|
|
3267
3271
|
return _get_Instance__cwfjuy(p0);
|
|
3268
|
-
}, 1, 0,
|
|
3272
|
+
}, 1, 0, 104);
|
|
3269
3273
|
}
|
|
3270
3274
|
function NewObject2() {
|
|
3271
3275
|
NewObject2_instance = this;
|
|
3272
3276
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3273
3277
|
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3274
3278
|
RuleWrapper_init_$Init$(tmp$ret$0, 2, VOID, this);
|
|
3275
|
-
this.
|
|
3276
|
-
this.
|
|
3277
|
-
this.
|
|
3279
|
+
this.u5a_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```";
|
|
3280
|
+
this.v5a_1 = this.f28_1;
|
|
3281
|
+
this.w5a_1 = this.f28_1;
|
|
3278
3282
|
}
|
|
3279
|
-
protoOf(NewObject2).
|
|
3280
|
-
return this.
|
|
3283
|
+
protoOf(NewObject2).a23 = function () {
|
|
3284
|
+
return this.u5a_1;
|
|
3281
3285
|
};
|
|
3282
|
-
protoOf(NewObject2).
|
|
3286
|
+
protoOf(NewObject2).o2w = function (_this__u8e3s4) {
|
|
3283
3287
|
return listOf([_get_Type__cwwv8x(this), _get_Instance__cwfjuy(this)]);
|
|
3284
3288
|
};
|
|
3285
|
-
protoOf(NewObject2).
|
|
3289
|
+
protoOf(NewObject2).p2w = function (_this__u8e3s4) {
|
|
3286
3290
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3287
3291
|
var tmp$ret$0 = NewObject3_getInstance().signature.name;
|
|
3288
|
-
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.
|
|
3292
|
+
return _this__u8e3s4.structOf(tmp$ret$0, [_get_Type__cwwv8x(this), _this__u8e3s4.d19(), _get_Instance__cwfjuy(this)]);
|
|
3289
3293
|
};
|
|
3290
3294
|
var NewObject2_instance;
|
|
3291
3295
|
function NewObject2_getInstance() {
|
|
@@ -3295,43 +3299,43 @@
|
|
|
3295
3299
|
}
|
|
3296
3300
|
function _get_B1__ndb8zg($this) {
|
|
3297
3301
|
var tmp = KProperty1;
|
|
3298
|
-
return $this.
|
|
3302
|
+
return $this.d5b_1.getValue($this, getPropertyCallableRef('B1', 1, tmp, PropertyReduce$Recursive$_get_B1_$ref_kiryiu(), null));
|
|
3299
3303
|
}
|
|
3300
3304
|
function _get_C__7mlnqm_0($this) {
|
|
3301
3305
|
var tmp = KProperty1;
|
|
3302
|
-
return $this.
|
|
3306
|
+
return $this.e5b_1.getValue($this, getPropertyCallableRef('C', 1, tmp, PropertyReduce$Recursive$_get_C_$ref_epsz1a(), null));
|
|
3303
3307
|
}
|
|
3304
3308
|
function _get_O__7mlo0y($this) {
|
|
3305
3309
|
var tmp = KProperty1;
|
|
3306
|
-
return $this.
|
|
3310
|
+
return $this.f5b_1.getValue($this, getPropertyCallableRef('O', 1, tmp, PropertyReduce$Recursive$_get_O_$ref_919iay(), null));
|
|
3307
3311
|
}
|
|
3308
3312
|
function _get_P__7mlo1t_2($this) {
|
|
3309
3313
|
var tmp = KProperty1;
|
|
3310
|
-
return $this.
|
|
3314
|
+
return $this.g5b_1.getValue($this, getPropertyCallableRef('P', 1, tmp, PropertyReduce$Recursive$_get_P_$ref_8k7vwr(), null));
|
|
3311
3315
|
}
|
|
3312
3316
|
function PropertyReduce$Recursive$_get_B1_$ref_kiryiu() {
|
|
3313
3317
|
return constructCallableReference(function (p0) {
|
|
3314
3318
|
return _get_B1__ndb8zg(p0);
|
|
3315
|
-
}, 1, 0,
|
|
3319
|
+
}, 1, 0, 105);
|
|
3316
3320
|
}
|
|
3317
3321
|
function PropertyReduce$Recursive$_get_C_$ref_epsz1a() {
|
|
3318
3322
|
return constructCallableReference(function (p0) {
|
|
3319
3323
|
return _get_C__7mlnqm_0(p0);
|
|
3320
|
-
}, 1, 0,
|
|
3324
|
+
}, 1, 0, 106);
|
|
3321
3325
|
}
|
|
3322
3326
|
function PropertyReduce$Recursive$_get_O_$ref_919iay() {
|
|
3323
3327
|
return constructCallableReference(function (p0) {
|
|
3324
3328
|
return _get_O__7mlo0y(p0);
|
|
3325
|
-
}, 1, 0,
|
|
3329
|
+
}, 1, 0, 107);
|
|
3326
3330
|
}
|
|
3327
3331
|
function PropertyReduce$Recursive$_get_P_$ref_8k7vwr() {
|
|
3328
3332
|
return constructCallableReference(function (p0) {
|
|
3329
3333
|
return _get_P__7mlo1t_2(p0);
|
|
3330
|
-
}, 1, 0,
|
|
3334
|
+
}, 1, 0, 108);
|
|
3331
3335
|
}
|
|
3332
3336
|
function Companion_9() {
|
|
3333
|
-
this.
|
|
3334
|
-
this.
|
|
3337
|
+
this.h5b_1 = 'property_reduce';
|
|
3338
|
+
this.i5b_1 = 3;
|
|
3335
3339
|
}
|
|
3336
3340
|
var Companion_instance_17;
|
|
3337
3341
|
function Companion_getInstance_20() {
|
|
@@ -3340,19 +3344,19 @@
|
|
|
3340
3344
|
function Recursive_0() {
|
|
3341
3345
|
Recursive_instance_0 = this;
|
|
3342
3346
|
PropertyReduce.call(this);
|
|
3343
|
-
this.
|
|
3344
|
-
this.
|
|
3345
|
-
this.
|
|
3346
|
-
this.
|
|
3347
|
+
this.d5b_1 = this.f28_1;
|
|
3348
|
+
this.e5b_1 = this.f28_1;
|
|
3349
|
+
this.f5b_1 = this.f28_1;
|
|
3350
|
+
this.g5b_1 = this.f28_1;
|
|
3347
3351
|
}
|
|
3348
|
-
protoOf(Recursive_0).
|
|
3349
|
-
return listOf([_this__u8e3s4.
|
|
3352
|
+
protoOf(Recursive_0).o2w = function (_this__u8e3s4) {
|
|
3353
|
+
return listOf([_this__u8e3s4.f19([this.p5b(), this.q5b()], _get_C__7mlnqm_0(this)), _get_O__7mlo0y(this), _get_P__7mlo1t_2(this)]);
|
|
3350
3354
|
};
|
|
3351
|
-
protoOf(Recursive_0).
|
|
3355
|
+
protoOf(Recursive_0).p2w = function (_this__u8e3s4) {
|
|
3352
3356
|
var tmp = _this__u8e3s4.atomOf('!');
|
|
3353
3357
|
// Inline function 'it.unibo.tuprolog.solve.AbstractWrapper.functor' call
|
|
3354
3358
|
var tmp$ret$0 = InvokeMethod_getInstance().signature.name;
|
|
3355
|
-
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.
|
|
3359
|
+
return _this__u8e3s4.tupleOf([tmp, _this__u8e3s4.structOf(tmp$ret$0, [this.p5b(), this.q5b(), _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)])]);
|
|
3356
3360
|
};
|
|
3357
3361
|
var Recursive_instance_0;
|
|
3358
3362
|
function Recursive_getInstance_0() {
|
|
@@ -3364,8 +3368,8 @@
|
|
|
3364
3368
|
Base_instance = this;
|
|
3365
3369
|
PropertyReduce.call(this);
|
|
3366
3370
|
}
|
|
3367
|
-
protoOf(Base).
|
|
3368
|
-
return listOf([_this__u8e3s4.consOf(this.
|
|
3371
|
+
protoOf(Base).o2w = function (_this__u8e3s4) {
|
|
3372
|
+
return listOf([_this__u8e3s4.consOf(this.p5b(), this.q5b()), this.p5b(), this.q5b()]);
|
|
3369
3373
|
};
|
|
3370
3374
|
var Base_instance;
|
|
3371
3375
|
function Base_getInstance() {
|
|
@@ -3375,32 +3379,32 @@
|
|
|
3375
3379
|
}
|
|
3376
3380
|
function PropertyReduce$_get_A_$ref_14cvqu() {
|
|
3377
3381
|
return constructCallableReference(function (p0) {
|
|
3378
|
-
return p0.
|
|
3379
|
-
}, 1, 0,
|
|
3382
|
+
return p0.p5b();
|
|
3383
|
+
}, 1, 0, 109);
|
|
3380
3384
|
}
|
|
3381
3385
|
function PropertyReduce$_get_B_$ref_1lei51() {
|
|
3382
3386
|
return constructCallableReference(function (p0) {
|
|
3383
|
-
return p0.
|
|
3384
|
-
}, 1, 0,
|
|
3387
|
+
return p0.q5b();
|
|
3388
|
+
}, 1, 0, 110);
|
|
3385
3389
|
}
|
|
3386
3390
|
function PropertyReduce() {
|
|
3387
3391
|
RuleWrapper_init_$Init$('property_reduce', 3, VOID, this);
|
|
3388
|
-
this.
|
|
3389
|
-
this.
|
|
3390
|
-
this.
|
|
3392
|
+
this.m5b_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```";
|
|
3393
|
+
this.n5b_1 = this.f28_1;
|
|
3394
|
+
this.o5b_1 = this.f28_1;
|
|
3391
3395
|
}
|
|
3392
|
-
protoOf(PropertyReduce).
|
|
3393
|
-
return this.
|
|
3396
|
+
protoOf(PropertyReduce).a23 = function () {
|
|
3397
|
+
return this.m5b_1;
|
|
3394
3398
|
};
|
|
3395
|
-
protoOf(PropertyReduce).
|
|
3399
|
+
protoOf(PropertyReduce).p5b = function () {
|
|
3396
3400
|
var tmp = KProperty1;
|
|
3397
|
-
return this.
|
|
3401
|
+
return this.n5b_1.getValue(this, getPropertyCallableRef('A', 1, tmp, PropertyReduce$_get_A_$ref_14cvqu(), null));
|
|
3398
3402
|
};
|
|
3399
|
-
protoOf(PropertyReduce).
|
|
3403
|
+
protoOf(PropertyReduce).q5b = function () {
|
|
3400
3404
|
var tmp = KProperty1;
|
|
3401
|
-
return this.
|
|
3405
|
+
return this.o5b_1.getValue(this, getPropertyCallableRef('B', 1, tmp, PropertyReduce$_get_B_$ref_1lei51(), null));
|
|
3402
3406
|
};
|
|
3403
|
-
protoOf(PropertyReduce).
|
|
3407
|
+
protoOf(PropertyReduce).p2w = function (_this__u8e3s4) {
|
|
3404
3408
|
return _this__u8e3s4.atomOf('!');
|
|
3405
3409
|
};
|
|
3406
3410
|
function get_platformSpecificAliases() {
|
|
@@ -3435,18 +3439,18 @@
|
|
|
3435
3439
|
}
|
|
3436
3440
|
function get_companionObjectRef(_this__u8e3s4) {
|
|
3437
3441
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3438
|
-
return Companion_instance.
|
|
3442
|
+
return Companion_instance.dz();
|
|
3439
3443
|
}
|
|
3440
3444
|
function kClassFromName(qualifiedName) {
|
|
3441
3445
|
_init_properties_TypeUtilsJs_kt__53l6dq();
|
|
3442
|
-
var match = get_CLASS_NAME_PATTERN().
|
|
3446
|
+
var match = get_CLASS_NAME_PATTERN().zb(qualifiedName);
|
|
3443
3447
|
// Inline function 'kotlin.require' call
|
|
3444
3448
|
if (!!(match == null)) {
|
|
3445
|
-
var message = '`' + qualifiedName + '` should match ' + get_CLASS_NAME_PATTERN().
|
|
3449
|
+
var message = '`' + qualifiedName + '` should match ' + get_CLASS_NAME_PATTERN().jb_1 + ", while is doesn't";
|
|
3446
3450
|
throw IllegalArgumentException_init_$Create$(toString_0(message));
|
|
3447
3451
|
}
|
|
3448
|
-
var module_0 = ensureNotNull(match.
|
|
3449
|
-
var packageSteps = split(ensureNotNull(match.
|
|
3452
|
+
var module_0 = ensureNotNull(match.fc().t(1)).ec_1;
|
|
3453
|
+
var packageSteps = split(ensureNotNull(match.fc().t(2)).ec_1, charArrayOf([_Char___init__impl__6a9atx(46)]));
|
|
3450
3454
|
var kClass = require(module_0);
|
|
3451
3455
|
// Inline function 'kotlin.let' call
|
|
3452
3456
|
var it = packageSteps.n();
|
|
@@ -3458,9 +3462,9 @@
|
|
|
3458
3462
|
var tmp_0 = Companion_instance;
|
|
3459
3463
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
3460
3464
|
var tmp$ret$4 = kClass;
|
|
3461
|
-
tmp = tmp_0.
|
|
3465
|
+
tmp = tmp_0.bz(get_kotlin(tmp$ret$4));
|
|
3462
3466
|
} else {
|
|
3463
|
-
tmp = Companion_instance.
|
|
3467
|
+
tmp = Companion_instance.dz();
|
|
3464
3468
|
}
|
|
3465
3469
|
return tmp;
|
|
3466
3470
|
}
|
|
@@ -3499,12 +3503,12 @@
|
|
|
3499
3503
|
}
|
|
3500
3504
|
}
|
|
3501
3505
|
//region block: post-declaration
|
|
3502
|
-
protoOf(NullRefImpl).
|
|
3503
|
-
protoOf(NullRefImpl).
|
|
3504
|
-
protoOf(NullRefImpl).
|
|
3505
|
-
protoOf(TermToObjectConverterImpl).
|
|
3506
|
-
protoOf(TypeFactoryImpl).
|
|
3507
|
-
protoOf(TypeRefImpl).
|
|
3506
|
+
protoOf(NullRefImpl).r54 = get_object;
|
|
3507
|
+
protoOf(NullRefImpl).s54 = invoke;
|
|
3508
|
+
protoOf(NullRefImpl).t54 = assign;
|
|
3509
|
+
protoOf(TermToObjectConverterImpl).p55 = convert;
|
|
3510
|
+
protoOf(TypeFactoryImpl).s55 = typeRefFromName;
|
|
3511
|
+
protoOf(TypeRefImpl).t55 = create;
|
|
3508
3512
|
//endregion
|
|
3509
3513
|
//region block: init
|
|
3510
3514
|
Companion_instance_9 = new Companion_1();
|