3821c.4384l.patch
rules/include/common-progress.rules 2021-09-16 13:22:01 +0000 | ||
---|---|---|
10097 | 10097 |
<rule>ovrdNames.put("core.collections.set", "LegacySet")</rule> |
10098 | 10098 |
<rule>ovrdNames.put("core.collections.istringkeyedmap", "IStringKeyedMap")</rule> |
10099 | 10099 |
<rule>ovrdNames.put("core.collections.istringstringmap", "IStringStringMap")</rule> |
10100 |
<rule>ovrdNames.put("core.collections.list", "LegacyList")</rule> |
|
10101 |
<rule>ovrdNames.put("core.collections.listiterator", "LegacyListIterator")</rule> |
|
10102 |
<rule>ovrdNames.put("core.collections.listnode", "LegacyListNode")</rule> |
|
10103 |
<rule>ovrdNames.put("core.collections.linkedlist", "LegacyLinkedList")</rule> |
|
10104 |
<rule>ovrdNames.put("core.collections.stack", "LegacyStack")</rule> |
|
10100 | 10105 |
<rule>ovrdNames.put("core.logging.isupportlogging", "ISupportLogging")</rule> |
10101 | 10106 |
<rule>ovrdNames.put("net.isupportencoding", "ISupportEncoding")</rule> |
10102 | 10107 |
<rule>ovrdNames.put("net.isupportmultipartentity", "ISupportMultipartEntity")</rule> |
src/com/goldencode/p2j/oo/core/Assert.java 2021-09-16 09:12:50 +0000 | ||
---|---|---|
13 | 13 |
** 003 IAS 20190923 Added implementation of additional methods |
14 | 14 |
** 004 CA 20191024 Added method support levels and updated the class support level. |
15 | 15 |
** 005 ME 20201023 Added implementation for isType, notType. |
16 |
** ME 20210916 Delegate to AssertObject as needed. |
|
16 | 17 |
*/ |
17 | 18 | |
18 | 19 |
/* |
... | ... | |
298 | 299 |
final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _p1, |
299 | 300 |
final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _p2) |
300 | 301 |
{ |
301 |
ObjectOps.load(Assert.class); |
|
302 |
ObjectOps.load(AssertObject.class);
|
|
302 | 303 | |
303 | 304 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> p1 = TypeFactory.initInput(_p1); |
304 | 305 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> p2 = TypeFactory.initInput(_p2); |
305 | 306 | |
306 | 307 |
internalProcedure(Assert.class, "Equals", new Block((Body) () -> { |
307 |
if (!p1.ref().legacyEquals(p2).booleanValue()) |
|
308 |
raiseError(p1, p2); |
|
308 |
AssertObject.legacyEquals(p1, p2); |
|
309 | 309 |
})); |
310 | 310 |
} |
311 | 311 | |
... | ... | |
1899 | 1899 |
final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _p1, |
1900 | 1900 |
final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _p2) |
1901 | 1901 |
{ |
1902 |
ObjectOps.load(Assert.class); |
|
1902 |
ObjectOps.load(AssertObject.class);
|
|
1903 | 1903 | |
1904 | 1904 |
internalProcedure(Assert.class, "NotEqual", new Block((Body) () -> { |
1905 | 1905 |
AssertObject.notEqual(_p1, _p2); |
src/com/goldencode/p2j/oo/core/ByteBucket.java 2021-09-15 11:07:41 +0000 | ||
---|---|---|
17 | 17 |
** signature. |
18 | 18 |
** ME 20210310 Use object variables defined out of block for methods that returns objects. |
19 | 19 |
** ME 20210325 Move assert inside block else initInput returns an invalid `object`. |
20 |
** ME 20210915 Fix NPE with @longValue@ on size, throw error #4391 for out of range position. |
|
20 | 21 |
*/ |
21 | 22 | |
22 | 23 |
/* |
... | ... | |
399 | 400 |
{ |
400 | 401 |
BinaryData.genIndexError(); |
401 | 402 |
} |
402 |
else if (pos <= size.longValue())
|
|
403 |
else if (pos <= getSize().longValue())
|
|
403 | 404 |
{ |
404 | 405 |
int nbucket = (int) ((pos - 1) / MAX_BYTES_PER_ROW); |
405 | 406 |
int offset = (int) ((pos - 1) % MAX_BYTES_PER_ROW); |
... | ... | |
465 | 466 |
object<? extends Memptr> ret = TypeFactory.object(Memptr.class); |
466 | 467 | |
467 | 468 |
return function(this, "GetBytes", object.class, new Block((Body) () -> { |
468 |
if (getSize().longValue() == 0 || size.longValue() == 0)
|
|
469 |
if (getSize().longValue() == 0 || size.getValue() == 0)
|
|
469 | 470 |
{ |
470 | 471 |
ret.assign(Memptr.getEmpty()); |
471 | 472 |
} |
... | ... | |
788 | 789 |
if (!size.isUnknown() && size.longValue() == 0L) |
789 | 790 |
return; |
790 | 791 | |
791 |
Assert.isPositive(_ptr, new character("Pointer Value"));
|
|
792 |
Assert.isPositive(_size, new character("Memptr Size"));
|
|
792 |
Assert.isPositive(ptr, new character("Pointer Value")); |
|
793 |
Assert.isPositive(size, new character("Memptr Size")); |
|
793 | 794 | |
794 | 795 |
memptr mptr = TypeFactory.memptr(); |
795 | 796 | |
... | ... | |
974 | 975 |
{ |
975 | 976 |
Assert.isPositive(p, new character("Start position")); |
976 | 977 | |
978 |
if (CompareOps._isGreaterThan(p, this.getSize())) { |
|
979 |
ErrorManager.recordOrThrowError(4391, "Unable to evaluate expression with UNKNOWN value in argument"); |
|
980 |
} |
|
981 |
|
|
977 | 982 |
long pos = p.longValue(); |
978 | 983 |
long bytesLeft = data.lengthOf(); |
979 | 984 |
int putAt = 0; |
... | ... | |
1043 | 1048 |
int bytesLeft = Math.min(data.length, len); |
1044 | 1049 |
int bytesWritten = 0; |
1045 | 1050 |
int crtBucket = (int) (writePosition / MAX_BYTES_PER_ROW); |
1046 |
int endBucket = (int) ((size.longValue()) / MAX_BYTES_PER_ROW);
|
|
1051 |
int endBucket = (int) ((getSize().longValue()) / MAX_BYTES_PER_ROW);
|
|
1047 | 1052 |
int endOffset = (int) ((size.longValue()) % MAX_BYTES_PER_ROW); |
1048 | 1053 | |
1049 | 1054 |
if (writePosition + bytesLeft > Integer.MAX_VALUE) |
src/com/goldencode/p2j/oo/core/LegacyString.java 2021-09-16 13:13:54 +0000 | ||
---|---|---|
14 | 14 |
** 006 CA 20210221 Fixed 'qualified', 'extent' and 'returns' annotations at the legacy |
15 | 15 |
** signature. |
16 | 16 |
** 007 ME 20210520 Set hashCode to return the actual string hashCode. |
17 |
** ME 20210902 Return default hashCode if unknown, fix empty static method and isNullOrEmpty to use trim. |
|
17 | 18 |
*/ |
18 | 19 | |
19 | 20 |
/* |
... | ... | |
275 | 276 |
{ |
276 | 277 |
// can't get a valid reference within the static context initial value |
277 | 278 |
if (empty.get().isUnknown()) |
278 |
empty.set(new object(ObjectOps.newInstance(LegacyString.class)));
|
|
279 |
empty.get().assign(new object(ObjectOps.newInstance(LegacyString.class)));
|
|
279 | 280 | |
280 | 281 |
returnNormal(empty.get()); |
281 | 282 |
})); |
... | ... | |
321 | 322 | |
322 | 323 |
return function(LegacyString.class, "IsNullOrEmpty", logical.class, new Block((Body) () -> |
323 | 324 |
{ |
324 |
returnNormal(new logical(TextOps.isEmpty(p1))); |
|
325 |
boolean _empty = true; |
|
326 |
|
|
327 |
if (!p1.isUnknown()) |
|
328 |
{ |
|
329 |
long rlen = TextOps.byteLength(p1).getValue(); |
|
330 |
|
|
331 |
if (rlen > 0) |
|
332 |
{ |
|
333 |
long len = TextOps.length(p1).getValue(); |
|
334 |
_empty = len == rlen && TextOps.isEmpty(TextOps.trim(p1)); |
|
335 |
} |
|
336 |
} |
|
337 |
|
|
338 |
returnNormal(new logical(_empty)); |
|
325 | 339 |
})); |
326 | 340 |
} |
327 | 341 | |
... | ... | |
684 | 698 |
@Override |
685 | 699 |
public int hashCode() |
686 | 700 |
{ |
687 |
return this.value.toStringMessage().hashCode();
|
|
701 |
return !this.value.isUnknown() ? this.value.toStringMessage().hashCode() : super.hashCode();
|
|
688 | 702 |
} |
689 | 703 |
|
690 | 704 |
} |
src/com/goldencode/p2j/oo/core/assertion/AssertArray.java 2021-09-08 12:19:24 +0000 | ||
---|---|---|
1 |
/* |
|
2 |
** Module : AssertArray.java |
|
3 |
** Abstract : Implementation of the builtin class. |
|
4 |
** |
|
5 |
** Copyright (c) 2019, Golden Code Development Corporation. |
|
6 |
** |
|
7 |
** -#- -I- --Date-- -------------------------------Description-------------------------------- |
|
8 |
** 001 ME 20210908 First version, stubs taken by converting the skeleton using FWD. |
|
9 |
*/ |
|
10 | ||
11 |
/* |
|
12 |
** This program is free software: you can redistribute it and/or modify |
|
13 |
** it under the terms of the GNU Affero General Public License as |
|
14 |
** published by the Free Software Foundation, either version 3 of the |
|
15 |
** License, or (at your option) any later version. |
|
16 |
** |
|
17 |
** This program is distributed in the hope that it will be useful, |
|
18 |
** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
** GNU Affero General Public License for more details. |
|
21 |
** |
|
22 |
** You may find a copy of the GNU Affero GPL version 3 at the following |
|
23 |
** location: https://www.gnu.org/licenses/agpl-3.0.en.html |
|
24 |
** |
|
25 |
** Additional terms under GNU Affero GPL version 3 section 7: |
|
26 |
** |
|
27 |
** Under Section 7 of the GNU Affero GPL version 3, the following additional |
|
28 |
** terms apply to the works covered under the License. These additional terms |
|
29 |
** are non-permissive additional terms allowed under Section 7 of the GNU |
|
30 |
** Affero GPL version 3 and may not be removed by you. |
|
31 |
** |
|
32 |
** 0. Attribution Requirement. |
|
33 |
** |
|
34 |
** You must preserve all legal notices or author attributions in the covered |
|
35 |
** work or Appropriate Legal Notices displayed by works containing the covered |
|
36 |
** work. You may not remove from the covered work any author or developer |
|
37 |
** credit already included within the covered work. |
|
38 |
** |
|
39 |
** 1. No License To Use Trademarks. |
|
40 |
** |
|
41 |
** This license does not grant any license or rights to use the trademarks |
|
42 |
** Golden Code, FWD, any Golden Code or FWD logo, or any other trademarks |
|
43 |
** of Golden Code Development Corporation. You are not authorized to use the |
|
44 |
** name Golden Code, FWD, or the names of any author or contributor, for |
|
45 |
** publicity purposes without written authorization. |
|
46 |
** |
|
47 |
** 2. No Misrepresentation of Affiliation. |
|
48 |
** |
|
49 |
** You may not represent yourself as Golden Code Development Corporation or FWD. |
|
50 |
** |
|
51 |
** You may not represent yourself for publicity purposes as associated with |
|
52 |
** Golden Code Development Corporation, FWD, or any author or contributor to |
|
53 |
** the covered work, without written authorization. |
|
54 |
** |
|
55 |
** 3. No Misrepresentation of Source or Origin. |
|
56 |
** |
|
57 |
** You may not represent the covered work as solely your work. All modified |
|
58 |
** versions of the covered work must be marked in a reasonable way to make it |
|
59 |
** clear that the modified work is not originating from Golden Code Development |
|
60 |
** Corporation or FWD. All modified versions must contain the notices of |
|
61 |
** attribution required in this license. |
|
62 |
*/ |
|
63 |
package com.goldencode.p2j.oo.core.assertion; |
|
64 | ||
65 |
import com.goldencode.p2j.util.*; |
|
66 |
import com.goldencode.p2j.oo.lang.*; |
|
67 | ||
68 |
import static com.goldencode.p2j.report.ReportConstants.CVT_LVL_PARTIAL; |
|
69 |
import static com.goldencode.p2j.report.ReportConstants.RT_LVL_STUB; |
|
70 |
import static com.goldencode.p2j.util.BlockManager.*; |
|
71 |
import static com.goldencode.p2j.util.InternalEntry.Type; |
|
72 | ||
73 |
/** |
|
74 |
* Business logic (converted to Java from the 4GL source code |
|
75 |
* in OpenEdge/Core/Assertion/AssertArray.cls). |
|
76 |
*/ |
|
77 |
@LegacyResource(resource = "OpenEdge.Core.Assertion.AssertArray") |
|
78 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
79 |
public class AssertArray |
|
80 |
extends BaseObject |
|
81 |
{ |
|
82 |
public void __core_assertion_AssertArray_execute__() |
|
83 |
{ |
|
84 |
externalProcedure(AssertArray.class, AssertArray.this, new Block((Body) () -> |
|
85 |
{ |
|
86 |
{ |
|
87 |
} |
|
88 |
})); |
|
89 |
} |
|
90 | ||
91 |
@LegacySignature(type = Type.CONSTRUCTOR) |
|
92 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
93 |
public void __core_assertion_AssertArray_constructor__() |
|
94 |
{ |
|
95 |
internalProcedure(AssertArray.class, this, "__core_assertion_AssertArray_constructor__", new Block((Body) () -> |
|
96 |
{ |
|
97 |
__lang_BaseObject_constructor__(); |
|
98 |
})); |
|
99 |
} |
|
100 | ||
101 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
102 |
{ |
|
103 |
@LegacyParameter(name = "pSource", type = "CHARACTER", extent = -1, mode = "INPUT"), |
|
104 |
@LegacyParameter(name = "pTarget", type = "CHARACTER", extent = -1, mode = "INPUT") |
|
105 |
}) |
|
106 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
107 |
public static void legacyEquals(final character[] _pSource, final character[] _pTarget) |
|
108 |
{ |
|
109 |
character[] pSource[] = |
|
110 |
{ |
|
111 |
TypeFactory.initInput(_pSource) |
|
112 |
}; |
|
113 |
character[] pTarget[] = |
|
114 |
{ |
|
115 |
TypeFactory.initInput(_pTarget) |
|
116 |
}; |
|
117 |
|
|
118 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
119 |
} |
|
120 | ||
121 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
122 |
{ |
|
123 |
@LegacyParameter(name = "pSource", type = "LONGCHAR", extent = -1, mode = "INPUT"), |
|
124 |
@LegacyParameter(name = "pTarget", type = "LONGCHAR", extent = -1, mode = "INPUT") |
|
125 |
}) |
|
126 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
127 |
public static void legacyEquals(final longchar[] _pSource, final longchar[] _pTarget) |
|
128 |
{ |
|
129 |
longchar[] pSource[] = |
|
130 |
{ |
|
131 |
TypeFactory.initInput(_pSource) |
|
132 |
}; |
|
133 |
longchar[] pTarget[] = |
|
134 |
{ |
|
135 |
TypeFactory.initInput(_pTarget) |
|
136 |
}; |
|
137 |
|
|
138 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
139 |
} |
|
140 | ||
141 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
142 |
{ |
|
143 |
@LegacyParameter(name = "pSource", type = "INTEGER", extent = -1, mode = "INPUT"), |
|
144 |
@LegacyParameter(name = "pTarget", type = "INTEGER", extent = -1, mode = "INPUT") |
|
145 |
}) |
|
146 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
147 |
public static void legacyEquals(final integer[] _pSource, final integer[] _pTarget) |
|
148 |
{ |
|
149 |
integer[] pSource[] = |
|
150 |
{ |
|
151 |
TypeFactory.initInput(_pSource) |
|
152 |
}; |
|
153 |
integer[] pTarget[] = |
|
154 |
{ |
|
155 |
TypeFactory.initInput(_pTarget) |
|
156 |
}; |
|
157 |
|
|
158 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
159 |
} |
|
160 | ||
161 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
162 |
{ |
|
163 |
@LegacyParameter(name = "pSource", type = "INT64", extent = -1, mode = "INPUT"), |
|
164 |
@LegacyParameter(name = "pTarget", type = "INT64", extent = -1, mode = "INPUT") |
|
165 |
}) |
|
166 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
167 |
public static void legacyEquals(final int64[] _pSource, final int64[] _pTarget) |
|
168 |
{ |
|
169 |
int64[] pSource[] = |
|
170 |
{ |
|
171 |
TypeFactory.initInput(_pSource) |
|
172 |
}; |
|
173 |
int64[] pTarget[] = |
|
174 |
{ |
|
175 |
TypeFactory.initInput(_pTarget) |
|
176 |
}; |
|
177 |
|
|
178 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
179 |
} |
|
180 | ||
181 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
182 |
{ |
|
183 |
@LegacyParameter(name = "pSource", type = "DECIMAL", extent = -1, mode = "INPUT"), |
|
184 |
@LegacyParameter(name = "pTarget", type = "DECIMAL", extent = -1, mode = "INPUT") |
|
185 |
}) |
|
186 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
187 |
public static void legacyEquals(final decimal[] _pSource, final decimal[] _pTarget) |
|
188 |
{ |
|
189 |
decimal[] pSource[] = |
|
190 |
{ |
|
191 |
TypeFactory.initInput(_pSource) |
|
192 |
}; |
|
193 |
decimal[] pTarget[] = |
|
194 |
{ |
|
195 |
TypeFactory.initInput(_pTarget) |
|
196 |
}; |
|
197 |
|
|
198 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
199 |
} |
|
200 | ||
201 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
202 |
{ |
|
203 |
@LegacyParameter(name = "pSource", type = "DATE", extent = -1, mode = "INPUT"), |
|
204 |
@LegacyParameter(name = "pTarget", type = "DATE", extent = -1, mode = "INPUT") |
|
205 |
}) |
|
206 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
207 |
public static void legacyEquals(final date[] _pSource, final date[] _pTarget) |
|
208 |
{ |
|
209 |
date[] pSource[] = |
|
210 |
{ |
|
211 |
TypeFactory.initInput(_pSource) |
|
212 |
}; |
|
213 |
date[] pTarget[] = |
|
214 |
{ |
|
215 |
TypeFactory.initInput(_pTarget) |
|
216 |
}; |
|
217 |
|
|
218 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
219 |
} |
|
220 | ||
221 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
222 |
{ |
|
223 |
@LegacyParameter(name = "pSource", type = "DATETIME", extent = -1, mode = "INPUT"), |
|
224 |
@LegacyParameter(name = "pTarget", type = "DATETIME", extent = -1, mode = "INPUT") |
|
225 |
}) |
|
226 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
227 |
public static void legacyEquals(final datetime[] _pSource, final datetime[] _pTarget) |
|
228 |
{ |
|
229 |
datetime[] pSource[] = |
|
230 |
{ |
|
231 |
TypeFactory.initInput(_pSource) |
|
232 |
}; |
|
233 |
datetime[] pTarget[] = |
|
234 |
{ |
|
235 |
TypeFactory.initInput(_pTarget) |
|
236 |
}; |
|
237 |
|
|
238 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
239 |
} |
|
240 | ||
241 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
242 |
{ |
|
243 |
@LegacyParameter(name = "pSource", type = "DATETIMETZ", extent = -1, mode = "INPUT"), |
|
244 |
@LegacyParameter(name = "pTarget", type = "DATETIMETZ", extent = -1, mode = "INPUT") |
|
245 |
}) |
|
246 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
247 |
public static void legacyEquals(final datetimetz[] _pSource, final datetimetz[] _pTarget) |
|
248 |
{ |
|
249 |
datetimetz[] pSource[] = |
|
250 |
{ |
|
251 |
TypeFactory.initInput(_pSource) |
|
252 |
}; |
|
253 |
datetimetz[] pTarget[] = |
|
254 |
{ |
|
255 |
TypeFactory.initInput(_pTarget) |
|
256 |
}; |
|
257 |
|
|
258 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
259 |
} |
|
260 | ||
261 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
262 |
{ |
|
263 |
@LegacyParameter(name = "pSource", type = "LOGICAL", extent = -1, mode = "INPUT"), |
|
264 |
@LegacyParameter(name = "pTarget", type = "LOGICAL", extent = -1, mode = "INPUT") |
|
265 |
}) |
|
266 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
267 |
public static void legacyEquals(final logical[] _pSource, final logical[] _pTarget) |
|
268 |
{ |
|
269 |
logical[] pSource[] = |
|
270 |
{ |
|
271 |
TypeFactory.initInput(_pSource) |
|
272 |
}; |
|
273 |
logical[] pTarget[] = |
|
274 |
{ |
|
275 |
TypeFactory.initInput(_pTarget) |
|
276 |
}; |
|
277 |
|
|
278 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
279 |
} |
|
280 | ||
281 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
282 |
{ |
|
283 |
@LegacyParameter(name = "pSource", type = "HANDLE", extent = -1, mode = "INPUT"), |
|
284 |
@LegacyParameter(name = "pTarget", type = "HANDLE", extent = -1, mode = "INPUT") |
|
285 |
}) |
|
286 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
287 |
public static void legacyEquals(final handle[] _pSource, final handle[] _pTarget) |
|
288 |
{ |
|
289 |
handle[] pSource[] = |
|
290 |
{ |
|
291 |
TypeFactory.initInput(_pSource) |
|
292 |
}; |
|
293 |
handle[] pTarget[] = |
|
294 |
{ |
|
295 |
TypeFactory.initInput(_pTarget) |
|
296 |
}; |
|
297 |
|
|
298 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
299 |
} |
|
300 | ||
301 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
302 |
{ |
|
303 |
@LegacyParameter(name = "pSource", type = "OBJECT", extent = -1, qualified = "progress.lang.object", mode = "INPUT"), |
|
304 |
@LegacyParameter(name = "pTarget", type = "OBJECT", extent = -1, qualified = "progress.lang.object", mode = "INPUT") |
|
305 |
}) |
|
306 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
307 |
public static void legacyEquals(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] _pSource, final object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] _pTarget) |
|
308 |
{ |
|
309 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] pSource[] = new object[][] |
|
310 |
{ |
|
311 |
TypeFactory.initInput(_pSource) |
|
312 |
}; |
|
313 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] pTarget[] = new object[][] |
|
314 |
{ |
|
315 |
TypeFactory.initInput(_pTarget) |
|
316 |
}; |
|
317 |
|
|
318 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
319 |
} |
|
320 | ||
321 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
322 |
{ |
|
323 |
@LegacyParameter(name = "pSource", type = "RECID", extent = -1, mode = "INPUT"), |
|
324 |
@LegacyParameter(name = "pTarget", type = "RECID", extent = -1, mode = "INPUT") |
|
325 |
}) |
|
326 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
327 |
public static void legacyEquals(final recid[] _pSource, final recid[] _pTarget) |
|
328 |
{ |
|
329 |
recid[] pSource[] = |
|
330 |
{ |
|
331 |
TypeFactory.initInput(_pSource) |
|
332 |
}; |
|
333 |
recid[] pTarget[] = |
|
334 |
{ |
|
335 |
TypeFactory.initInput(_pTarget) |
|
336 |
}; |
|
337 |
|
|
338 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
339 |
} |
|
340 | ||
341 |
@LegacySignature(type = Type.METHOD, name = "Equals", parameters = |
|
342 |
{ |
|
343 |
@LegacyParameter(name = "pSource", type = "ROWID", extent = -1, mode = "INPUT"), |
|
344 |
@LegacyParameter(name = "pTarget", type = "ROWID", extent = -1, mode = "INPUT") |
|
345 |
}) |
|
346 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
347 |
public static void legacyEquals(final rowid[] _pSource, final rowid[] _pTarget) |
|
348 |
{ |
|
349 |
rowid[] pSource[] = |
|
350 |
{ |
|
351 |
TypeFactory.initInput(_pSource) |
|
352 |
}; |
|
353 |
rowid[] pTarget[] = |
|
354 |
{ |
|
355 |
TypeFactory.initInput(_pTarget) |
|
356 |
}; |
|
357 |
|
|
358 |
internalProcedure(AssertArray.class, "Equals", new Block()); |
|
359 |
} |
|
360 | ||
361 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
362 |
{ |
|
363 |
@LegacyParameter(name = "pcArgument", type = "CHARACTER", extent = -1, mode = "INPUT"), |
|
364 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
365 |
}) |
|
366 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
367 |
public static void hasDeterminateExtent(final character[] _pcArgument, final character _pcName) |
|
368 |
{ |
|
369 |
character[] pcArgument[] = |
|
370 |
{ |
|
371 |
TypeFactory.initInput(_pcArgument) |
|
372 |
}; |
|
373 |
character pcName = TypeFactory.initInput(_pcName); |
|
374 |
|
|
375 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
376 |
} |
|
377 | ||
378 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
379 |
{ |
|
380 |
@LegacyParameter(name = "pcArgument", type = "CHARACTER", extent = -1, mode = "INPUT") |
|
381 |
}) |
|
382 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
383 |
public static void hasDeterminateExtent(final character[] _pcArgument) |
|
384 |
{ |
|
385 |
character[] pcArgument[] = |
|
386 |
{ |
|
387 |
TypeFactory.initInput(_pcArgument) |
|
388 |
}; |
|
389 |
|
|
390 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
391 |
} |
|
392 | ||
393 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
394 |
{ |
|
395 |
@LegacyParameter(name = "pcArgument", type = "CHARACTER", extent = -1, mode = "INPUT"), |
|
396 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
397 |
}) |
|
398 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
399 |
public static void isIndeterminateArray(final character[] _pcArgument, final character _pcName) |
|
400 |
{ |
|
401 |
character[] pcArgument[] = |
|
402 |
{ |
|
403 |
TypeFactory.initInput(_pcArgument) |
|
404 |
}; |
|
405 |
character pcName = TypeFactory.initInput(_pcName); |
|
406 |
|
|
407 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
408 |
} |
|
409 | ||
410 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
411 |
{ |
|
412 |
@LegacyParameter(name = "pcArgument", type = "CHARACTER", extent = -1, mode = "INPUT") |
|
413 |
}) |
|
414 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
415 |
public static void isIndeterminateArray(final character[] _pcArgument) |
|
416 |
{ |
|
417 |
character[] pcArgument[] = |
|
418 |
{ |
|
419 |
TypeFactory.initInput(_pcArgument) |
|
420 |
}; |
|
421 |
|
|
422 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
423 |
} |
|
424 | ||
425 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
426 |
{ |
|
427 |
@LegacyParameter(name = "poArgument", type = "OBJECT", extent = -1, qualified = "progress.lang.object", mode = "INPUT"), |
|
428 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
429 |
}) |
|
430 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
431 |
public static void isIndeterminateArray(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] _poArgument, final character _pcName) |
|
432 |
{ |
|
433 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] poArgument[] = new object[][] |
|
434 |
{ |
|
435 |
TypeFactory.initInput(_poArgument) |
|
436 |
}; |
|
437 |
character pcName = TypeFactory.initInput(_pcName); |
|
438 |
|
|
439 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
440 |
} |
|
441 | ||
442 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
443 |
{ |
|
444 |
@LegacyParameter(name = "poArgument", type = "OBJECT", extent = -1, qualified = "progress.lang.object", mode = "INPUT"), |
|
445 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
446 |
}) |
|
447 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
448 |
public static void hasDeterminateExtent(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] _poArgument, final character _pcName) |
|
449 |
{ |
|
450 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_>[] poArgument[] = new object[][] |
|
451 |
{ |
|
452 |
TypeFactory.initInput(_poArgument) |
|
453 |
}; |
|
454 |
character pcName = TypeFactory.initInput(_pcName); |
|
455 |
|
|
456 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
457 |
} |
|
458 | ||
459 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
460 |
{ |
|
461 |
@LegacyParameter(name = "piArgument", type = "INTEGER", extent = -1, mode = "INPUT"), |
|
462 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
463 |
}) |
|
464 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
465 |
public static void hasDeterminateExtent(final integer[] _piArgument, final character _pcName) |
|
466 |
{ |
|
467 |
integer[] piArgument[] = |
|
468 |
{ |
|
469 |
TypeFactory.initInput(_piArgument) |
|
470 |
}; |
|
471 |
character pcName = TypeFactory.initInput(_pcName); |
|
472 |
|
|
473 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
474 |
} |
|
475 | ||
476 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
477 |
{ |
|
478 |
@LegacyParameter(name = "piArgument", type = "INTEGER", extent = -1, mode = "INPUT") |
|
479 |
}) |
|
480 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
481 |
public static void hasDeterminateExtent(final integer[] _piArgument) |
|
482 |
{ |
|
483 |
integer[] piArgument[] = |
|
484 |
{ |
|
485 |
TypeFactory.initInput(_piArgument) |
|
486 |
}; |
|
487 |
|
|
488 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
489 |
} |
|
490 | ||
491 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
492 |
{ |
|
493 |
@LegacyParameter(name = "piArgument", type = "INTEGER", extent = -1, mode = "INPUT"), |
|
494 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
495 |
}) |
|
496 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
497 |
public static void isIndeterminateArray(final integer[] _piArgument, final character _pcName) |
|
498 |
{ |
|
499 |
integer[] piArgument[] = |
|
500 |
{ |
|
501 |
TypeFactory.initInput(_piArgument) |
|
502 |
}; |
|
503 |
character pcName = TypeFactory.initInput(_pcName); |
|
504 |
|
|
505 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
506 |
} |
|
507 | ||
508 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
509 |
{ |
|
510 |
@LegacyParameter(name = "piArgument", type = "INTEGER", extent = -1, mode = "INPUT") |
|
511 |
}) |
|
512 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
513 |
public static void isIndeterminateArray(final integer[] _piArgument) |
|
514 |
{ |
|
515 |
integer[] piArgument[] = |
|
516 |
{ |
|
517 |
TypeFactory.initInput(_piArgument) |
|
518 |
}; |
|
519 |
|
|
520 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
521 |
} |
|
522 | ||
523 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
524 |
{ |
|
525 |
@LegacyParameter(name = "piArgument", type = "INT64", extent = -1, mode = "INPUT"), |
|
526 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
527 |
}) |
|
528 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
529 |
public static void hasDeterminateExtent(final int64[] _piArgument, final character _pcName) |
|
530 |
{ |
|
531 |
int64[] piArgument[] = |
|
532 |
{ |
|
533 |
TypeFactory.initInput(_piArgument) |
|
534 |
}; |
|
535 |
character pcName = TypeFactory.initInput(_pcName); |
|
536 |
|
|
537 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
538 |
} |
|
539 | ||
540 |
@LegacySignature(type = Type.METHOD, name = "HasDeterminateExtent", parameters = |
|
541 |
{ |
|
542 |
@LegacyParameter(name = "piArgument", type = "INT64", extent = -1, mode = "INPUT") |
|
543 |
}) |
|
544 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
545 |
public static void hasDeterminateExtent(final int64[] _piArgument) |
|
546 |
{ |
|
547 |
int64[] piArgument[] = |
|
548 |
{ |
|
549 |
TypeFactory.initInput(_piArgument) |
|
550 |
}; |
|
551 |
|
|
552 |
internalProcedure(AssertArray.class, "HasDeterminateExtent", new Block()); |
|
553 |
} |
|
554 | ||
555 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
556 |
{ |
|
557 |
@LegacyParameter(name = "piArgument", type = "INT64", extent = -1, mode = "INPUT"), |
|
558 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
559 |
}) |
|
560 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
561 |
public static void isIndeterminateArray(final int64[] _piArgument, final character _pcName) |
|
562 |
{ |
|
563 |
int64[] piArgument[] = |
|
564 |
{ |
|
565 |
TypeFactory.initInput(_piArgument) |
|
566 |
}; |
|
567 |
character pcName = TypeFactory.initInput(_pcName); |
|
568 |
|
|
569 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
570 |
} |
|
571 | ||
572 |
@LegacySignature(type = Type.METHOD, name = "IsIndeterminateArray", parameters = |
|
573 |
{ |
|
574 |
@LegacyParameter(name = "piArgument", type = "INT64", extent = -1, mode = "INPUT") |
|
575 |
}) |
|
576 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
577 |
public static void isIndeterminateArray(final int64[] _piArgument) |
|
578 |
{ |
|
579 |
int64[] piArgument[] = |
|
580 |
{ |
|
581 |
TypeFactory.initInput(_piArgument) |
|
582 |
}; |
|
583 |
|
|
584 |
internalProcedure(AssertArray.class, "IsIndeterminateArray", new Block()); |
|
585 |
} |
|
586 |
} |
src/com/goldencode/p2j/oo/core/assertion/AssertFile.java 2021-09-08 12:19:24 +0000 | ||
---|---|---|
1 |
/* |
|
2 |
** Module : AssertFile.java |
|
3 |
** Abstract : Implementation of the builtin class. |
|
4 |
** |
|
5 |
** Copyright (c) 2019, Golden Code Development Corporation. |
|
6 |
** |
|
7 |
** -#- -I- --Date-- -------------------------------Description-------------------------------- |
|
8 |
** 001 ME 20210908 First version, stubs taken by converting the skeleton using FWD. |
|
9 |
*/ |
|
10 | ||
11 |
/* |
|
12 |
** This program is free software: you can redistribute it and/or modify |
|
13 |
** it under the terms of the GNU Affero General Public License as |
|
14 |
** published by the Free Software Foundation, either version 3 of the |
|
15 |
** License, or (at your option) any later version. |
|
16 |
** |
|
17 |
** This program is distributed in the hope that it will be useful, |
|
18 |
** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
** GNU Affero General Public License for more details. |
|
21 |
** |
|
22 |
** You may find a copy of the GNU Affero GPL version 3 at the following |
|
23 |
** location: https://www.gnu.org/licenses/agpl-3.0.en.html |
|
24 |
** |
|
25 |
** Additional terms under GNU Affero GPL version 3 section 7: |
|
26 |
** |
|
27 |
** Under Section 7 of the GNU Affero GPL version 3, the following additional |
|
28 |
** terms apply to the works covered under the License. These additional terms |
|
29 |
** are non-permissive additional terms allowed under Section 7 of the GNU |
|
30 |
** Affero GPL version 3 and may not be removed by you. |
|
31 |
** |
|
32 |
** 0. Attribution Requirement. |
|
33 |
** |
|
34 |
** You must preserve all legal notices or author attributions in the covered |
|
35 |
** work or Appropriate Legal Notices displayed by works containing the covered |
|
36 |
** work. You may not remove from the covered work any author or developer |
|
37 |
** credit already included within the covered work. |
|
38 |
** |
|
39 |
** 1. No License To Use Trademarks. |
|
40 |
** |
|
41 |
** This license does not grant any license or rights to use the trademarks |
|
42 |
** Golden Code, FWD, any Golden Code or FWD logo, or any other trademarks |
|
43 |
** of Golden Code Development Corporation. You are not authorized to use the |
|
44 |
** name Golden Code, FWD, or the names of any author or contributor, for |
|
45 |
** publicity purposes without written authorization. |
|
46 |
** |
|
47 |
** 2. No Misrepresentation of Affiliation. |
|
48 |
** |
|
49 |
** You may not represent yourself as Golden Code Development Corporation or FWD. |
|
50 |
** |
|
51 |
** You may not represent yourself for publicity purposes as associated with |
|
52 |
** Golden Code Development Corporation, FWD, or any author or contributor to |
|
53 |
** the covered work, without written authorization. |
|
54 |
** |
|
55 |
** 3. No Misrepresentation of Source or Origin. |
|
56 |
** |
|
57 |
** You may not represent the covered work as solely your work. All modified |
|
58 |
** versions of the covered work must be marked in a reasonable way to make it |
|
59 |
** clear that the modified work is not originating from Golden Code Development |
|
60 |
** Corporation or FWD. All modified versions must contain the notices of |
|
61 |
** attribution required in this license. |
|
62 |
*/ |
|
63 |
package com.goldencode.p2j.oo.core.assertion; |
|
64 | ||
65 |
import com.goldencode.p2j.util.*; |
|
66 |
import com.goldencode.p2j.oo.lang.*; |
|
67 | ||
68 |
import static com.goldencode.p2j.report.ReportConstants.CVT_LVL_PARTIAL; |
|
69 |
import static com.goldencode.p2j.report.ReportConstants.RT_LVL_STUB; |
|
70 |
import static com.goldencode.p2j.util.BlockManager.*; |
|
71 |
import static com.goldencode.p2j.util.InternalEntry.Type; |
|
72 | ||
73 |
/** |
|
74 |
* Business logic (converted to Java from the 4GL source code |
|
75 |
* in OpenEdge/Core/Assertion/AssertFile.cls). |
|
76 |
*/ |
|
77 |
@LegacyResource(resource = "OpenEdge.Core.Assertion.AssertFile") |
|
78 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
79 |
public class AssertFile |
|
80 |
extends BaseObject |
|
81 |
{ |
|
82 |
public void __core_assertion_AssertFile_execute__() |
|
83 |
{ |
|
84 |
externalProcedure(AssertFile.class, AssertFile.this, new Block((Body) () -> |
|
85 |
{ |
|
86 |
{ |
|
87 |
} |
|
88 |
})); |
|
89 |
} |
|
90 | ||
91 |
@LegacySignature(type = Type.CONSTRUCTOR) |
|
92 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
93 |
public void __core_assertion_AssertFile_constructor__() |
|
94 |
{ |
|
95 |
internalProcedure(AssertFile.class, this, "__core_assertion_AssertFile_constructor__", new Block((Body) () -> |
|
96 |
{ |
|
97 |
__lang_BaseObject_constructor__(); |
|
98 |
})); |
|
99 |
} |
|
100 | ||
101 |
@LegacySignature(type = Type.METHOD, name = "DirectoryExists", parameters = |
|
102 |
{ |
|
103 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
104 |
}) |
|
105 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
106 |
public static void directoryExists(final character _pcName) |
|
107 |
{ |
|
108 |
character pcName = TypeFactory.initInput(_pcName); |
|
109 |
|
|
110 |
internalProcedure(AssertFile.class, "DirectoryExists", new Block()); |
|
111 |
} |
|
112 | ||
113 |
@LegacySignature(type = Type.METHOD, name = "FileExists", parameters = |
|
114 |
{ |
|
115 |
@LegacyParameter(name = "fileName", type = "CHARACTER", mode = "INPUT") |
|
116 |
}) |
|
117 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
118 |
public static void fileExists(final character _fileName) |
|
119 |
{ |
|
120 |
character fileName = TypeFactory.initInput(_fileName); |
|
121 |
|
|
122 |
internalProcedure(AssertFile.class, "FileExists", new Block()); |
|
123 |
} |
|
124 | ||
125 |
@LegacySignature(type = Type.METHOD, name = "FileInPropath", parameters = |
|
126 |
{ |
|
127 |
@LegacyParameter(name = "fileName", type = "CHARACTER", mode = "INPUT") |
|
128 |
}) |
|
129 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
130 |
public static void fileInPropath(final character _fileName) |
|
131 |
{ |
|
132 |
character fileName = TypeFactory.initInput(_fileName); |
|
133 |
|
|
134 |
internalProcedure(AssertFile.class, "FileInPropath", new Block()); |
|
135 |
} |
|
136 |
} |
src/com/goldencode/p2j/oo/core/assertion/AssertJson.java 2021-09-08 12:19:24 +0000 | ||
---|---|---|
1 |
/* |
|
2 |
** Module : AssertJson.java |
|
3 |
** Abstract : Implementation of the builtin class. |
|
4 |
** |
|
5 |
** Copyright (c) 2019, Golden Code Development Corporation. |
|
6 |
** |
|
7 |
** -#- -I- --Date-- -------------------------------Description-------------------------------- |
|
8 |
** 001 ME 20210908 First version, stubs taken by converting the skeleton using FWD. |
|
9 |
*/ |
|
10 | ||
11 |
/* |
|
12 |
** This program is free software: you can redistribute it and/or modify |
|
13 |
** it under the terms of the GNU Affero General Public License as |
|
14 |
** published by the Free Software Foundation, either version 3 of the |
|
15 |
** License, or (at your option) any later version. |
|
16 |
** |
|
17 |
** This program is distributed in the hope that it will be useful, |
|
18 |
** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
** GNU Affero General Public License for more details. |
|
21 |
** |
|
22 |
** You may find a copy of the GNU Affero GPL version 3 at the following |
|
23 |
** location: https://www.gnu.org/licenses/agpl-3.0.en.html |
|
24 |
** |
|
25 |
** Additional terms under GNU Affero GPL version 3 section 7: |
|
26 |
** |
|
27 |
** Under Section 7 of the GNU Affero GPL version 3, the following additional |
|
28 |
** terms apply to the works covered under the License. These additional terms |
|
29 |
** are non-permissive additional terms allowed under Section 7 of the GNU |
|
30 |
** Affero GPL version 3 and may not be removed by you. |
|
31 |
** |
|
32 |
** 0. Attribution Requirement. |
|
33 |
** |
|
34 |
** You must preserve all legal notices or author attributions in the covered |
|
35 |
** work or Appropriate Legal Notices displayed by works containing the covered |
|
36 |
** work. You may not remove from the covered work any author or developer |
|
37 |
** credit already included within the covered work. |
|
38 |
** |
|
39 |
** 1. No License To Use Trademarks. |
|
40 |
** |
|
41 |
** This license does not grant any license or rights to use the trademarks |
|
42 |
** Golden Code, FWD, any Golden Code or FWD logo, or any other trademarks |
|
43 |
** of Golden Code Development Corporation. You are not authorized to use the |
|
44 |
** name Golden Code, FWD, or the names of any author or contributor, for |
|
45 |
** publicity purposes without written authorization. |
|
46 |
** |
|
47 |
** 2. No Misrepresentation of Affiliation. |
|
48 |
** |
|
49 |
** You may not represent yourself as Golden Code Development Corporation or FWD. |
|
50 |
** |
|
51 |
** You may not represent yourself for publicity purposes as associated with |
|
52 |
** Golden Code Development Corporation, FWD, or any author or contributor to |
|
53 |
** the covered work, without written authorization. |
|
54 |
** |
|
55 |
** 3. No Misrepresentation of Source or Origin. |
|
56 |
** |
|
57 |
** You may not represent the covered work as solely your work. All modified |
|
58 |
** versions of the covered work must be marked in a reasonable way to make it |
|
59 |
** clear that the modified work is not originating from Golden Code Development |
|
60 |
** Corporation or FWD. All modified versions must contain the notices of |
|
61 |
** attribution required in this license. |
|
62 |
*/ |
|
63 |
package com.goldencode.p2j.oo.core.assertion; |
|
64 | ||
65 |
import com.goldencode.p2j.util.*; |
|
66 |
import com.goldencode.p2j.oo.lang.*; |
|
67 | ||
68 |
import static com.goldencode.p2j.report.ReportConstants.CVT_LVL_PARTIAL; |
|
69 |
import static com.goldencode.p2j.report.ReportConstants.RT_LVL_STUB; |
|
70 |
import static com.goldencode.p2j.util.BlockManager.*; |
|
71 |
import static com.goldencode.p2j.util.InternalEntry.Type; |
|
72 | ||
73 |
/** |
|
74 |
* Business logic (converted to Java from the 4GL source code |
|
75 |
* in OpenEdge/Core/Assertion/AssertJson.cls). |
|
76 |
*/ |
|
77 |
@LegacyResource(resource = "OpenEdge.Core.Assertion.AssertJson") |
|
78 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
79 |
public class AssertJson |
|
80 |
extends BaseObject |
|
81 |
{ |
|
82 |
public void __core_assertion_AssertJson_execute__() |
|
83 |
{ |
|
84 |
externalProcedure(AssertJson.class, AssertJson.this, new Block((Body) () -> |
|
85 |
{ |
|
86 |
{ |
|
87 |
} |
|
88 |
})); |
|
89 |
} |
|
90 | ||
91 |
@LegacySignature(type = Type.CONSTRUCTOR) |
|
92 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
93 |
public void __core_assertion_AssertJson_constructor__() |
|
94 |
{ |
|
95 |
internalProcedure(AssertJson.class, this, "__core_assertion_AssertJson_constructor__", new Block((Body) () -> |
|
96 |
{ |
|
97 |
__lang_BaseObject_constructor__(); |
|
98 |
})); |
|
99 |
} |
|
100 | ||
101 |
@LegacySignature(type = Type.METHOD, name = "HasProperty", parameters = |
|
102 |
{ |
|
103 |
@LegacyParameter(name = "poObject", type = "OBJECT", qualified = "progress.json.objectmodel.jsonobject", mode = "INPUT"), |
|
104 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
105 |
}) |
|
106 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
107 |
public static void hasProperty(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> _poObject, final character _pcName) |
|
108 |
{ |
|
109 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> poObject = TypeFactory.initInput(_poObject); |
|
110 |
character pcName = TypeFactory.initInput(_pcName); |
|
111 |
|
|
112 |
internalProcedure(AssertJson.class, "HasProperty", new Block()); |
|
113 |
} |
|
114 | ||
115 |
@LegacySignature(type = Type.METHOD, name = "PropertyIsNull", parameters = |
|
116 |
{ |
|
117 |
@LegacyParameter(name = "poObject", type = "OBJECT", qualified = "progress.json.objectmodel.jsonobject", mode = "INPUT"), |
|
118 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
119 |
}) |
|
120 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
121 |
public static void propertyIsNull(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> _poObject, final character _pcName) |
|
122 |
{ |
|
123 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> poObject = TypeFactory.initInput(_poObject); |
|
124 |
character pcName = TypeFactory.initInput(_pcName); |
|
125 |
|
|
126 |
internalProcedure(AssertJson.class, "PropertyIsNull", new Block()); |
|
127 |
} |
|
128 | ||
129 |
@LegacySignature(type = Type.METHOD, name = "IndexIsNull", parameters = |
|
130 |
{ |
|
131 |
@LegacyParameter(name = "pArray", type = "OBJECT", qualified = "progress.json.objectmodel.jsonarray", mode = "INPUT"), |
|
132 |
@LegacyParameter(name = "pIdx", type = "INTEGER", mode = "INPUT") |
|
133 |
}) |
|
134 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
135 |
public static void indexIsNull(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonArray> _pArray, final integer _pIdx) |
|
136 |
{ |
|
137 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonArray> pArray = TypeFactory.initInput(_pArray); |
|
138 |
integer pIdx = TypeFactory.initInput(_pIdx); |
|
139 |
|
|
140 |
internalProcedure(AssertJson.class, "IndexIsNull", new Block()); |
|
141 |
} |
|
142 | ||
143 |
@LegacySignature(type = Type.METHOD, name = "IndexNotNull", parameters = |
|
144 |
{ |
|
145 |
@LegacyParameter(name = "pArray", type = "OBJECT", qualified = "progress.json.objectmodel.jsonarray", mode = "INPUT"), |
|
146 |
@LegacyParameter(name = "pIdx", type = "INTEGER", mode = "INPUT") |
|
147 |
}) |
|
148 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
149 |
public static void indexNotNull(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonArray> _pArray, final integer _pIdx) |
|
150 |
{ |
|
151 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonArray> pArray = TypeFactory.initInput(_pArray); |
|
152 |
integer pIdx = TypeFactory.initInput(_pIdx); |
|
153 |
|
|
154 |
internalProcedure(AssertJson.class, "IndexNotNull", new Block()); |
|
155 |
} |
|
156 | ||
157 |
@LegacySignature(type = Type.METHOD, name = "IndexIsType", parameters = |
|
158 |
{ |
|
159 |
@LegacyParameter(name = "pArray", type = "OBJECT", qualified = "progress.json.objectmodel.jsonarray", mode = "INPUT"), |
|
160 |
@LegacyParameter(name = "pIdx", type = "INTEGER", mode = "INPUT"), |
|
161 |
@LegacyParameter(name = "pPropertyType", type = "OBJECT", qualified = "openedge.core.jsondatatypeenum", mode = "INPUT") |
|
162 |
}) |
|
163 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
164 |
public static void indexIsType(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonArray> _pArray, final integer _pIdx, final object<? extends com.goldencode.p2j.oo.core.JsonDataTypeEnum> _pPropertyType) |
|
165 |
{ |
|
166 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonArray> pArray = TypeFactory.initInput(_pArray); |
|
167 |
integer pIdx = TypeFactory.initInput(_pIdx); |
|
168 |
object<? extends com.goldencode.p2j.oo.core.JsonDataTypeEnum> pPropertyType = TypeFactory.initInput(_pPropertyType); |
|
169 |
|
|
170 |
internalProcedure(AssertJson.class, "IndexIsType", new Block()); |
|
171 |
} |
|
172 | ||
173 |
@LegacySignature(type = Type.METHOD, name = "PropertyNotNull", parameters = |
|
174 |
{ |
|
175 |
@LegacyParameter(name = "poObject", type = "OBJECT", qualified = "progress.json.objectmodel.jsonobject", mode = "INPUT"), |
|
176 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT") |
|
177 |
}) |
|
178 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
179 |
public static void propertyNotNull(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> _poObject, final character _pcName) |
|
180 |
{ |
|
181 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> poObject = TypeFactory.initInput(_poObject); |
|
182 |
character pcName = TypeFactory.initInput(_pcName); |
|
183 |
|
|
184 |
internalProcedure(AssertJson.class, "PropertyNotNull", new Block()); |
|
185 |
} |
|
186 | ||
187 |
@LegacySignature(type = Type.METHOD, name = "PropertyIsType", parameters = |
|
188 |
{ |
|
189 |
@LegacyParameter(name = "poObject", type = "OBJECT", qualified = "progress.json.objectmodel.jsonobject", mode = "INPUT"), |
|
190 |
@LegacyParameter(name = "pcName", type = "CHARACTER", mode = "INPUT"), |
|
191 |
@LegacyParameter(name = "poPropertyType", type = "OBJECT", qualified = "openedge.core.jsondatatypeenum", mode = "INPUT") |
|
192 |
}) |
|
193 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
194 |
public static void propertyIsType(final object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> _poObject, final character _pcName, final object<? extends com.goldencode.p2j.oo.core.JsonDataTypeEnum> _poPropertyType) |
|
195 |
{ |
|
196 |
object<? extends com.goldencode.p2j.oo.json.objectmodel.JsonObject> poObject = TypeFactory.initInput(_poObject); |
|
197 |
character pcName = TypeFactory.initInput(_pcName); |
|
198 |
object<? extends com.goldencode.p2j.oo.core.JsonDataTypeEnum> poPropertyType = TypeFactory.initInput(_poPropertyType); |
|
199 |
|
|
200 |
internalProcedure(AssertJson.class, "PropertyIsType", new Block()); |
|
201 |
} |
|
202 |
} |
src/com/goldencode/p2j/oo/core/assertion/AssertObject.java 2021-09-08 12:19:24 +0000 | ||
---|---|---|
9 | 9 |
** 001 ME 20200324 Created the first version, by converting the legacy skeleton .cls file and |
10 | 10 |
** using that output. |
11 | 11 |
** 002 ME 20201023 Added implementation for isType, notType. |
12 |
** 20210908 Update equals method and error messages. |
|
12 | 13 |
*/ |
13 | 14 | |
14 | 15 |
/* |
... | ... | |
128 | 129 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> p2 = TypeFactory.initInput(_p2); |
129 | 130 | |
130 | 131 |
internalProcedure(AssertObject.class, "Equals", new Block((Body) () -> { |
131 |
if (!CompareOps._isEqual(p1, p2))
|
|
132 |
if (!p1.ref().legacyEquals(p2).booleanValue())
|
|
132 | 133 |
returnError(ObjectOps.newInstance(AssertionFailedError.class, "II", |
133 |
substitute("Expected: &1 but was: &2", p1, p2), 0));
|
|
134 |
substitute("Expected: &1 but was: &2", character.valueOf(p1), character.valueOf(p2)), 0));
|
|
134 | 135 |
})); |
135 | 136 |
} |
136 | 137 | |
... | ... | |
148 | 149 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> p2 = TypeFactory.initInput(_p2); |
149 | 150 | |
150 | 151 |
internalProcedure(AssertObject.class, "NotEqual", new Block((Body) () -> { |
151 |
if (CompareOps._isEqual(p1, p2))
|
|
152 |
if (p1.ref().legacyEquals(p2).booleanValue())
|
|
152 | 153 |
returnError(ObjectOps.newInstance(AssertionFailedError.class, "II", |
153 |
substitute("&1 and &2 are equal", p1, p2), 0));
|
|
154 |
substitute("&1 and &2 are equal", character.valueOf(p1), character.valueOf(p2)), 0));
|
|
154 | 155 |
})); |
155 | 156 |
} |
156 | 157 | |
... | ... | |
581 | 582 |
|
582 | 583 |
if (!p1.isType(p2.ref().toLegacyString().getValue())) |
583 | 584 |
returnError(ObjectOps.newInstance(AssertionFailedError.class, "II", |
584 |
substitute("&1 is not of type &2", p3, p2), 0)); |
|
585 |
substitute("&1 is not of type &2", p3, p2.ref().toLegacyString()), 0));
|
|
585 | 586 |
})); |
586 | 587 |
} |
587 | 588 | |
... | ... | |
617 | 618 |
|
618 | 619 |
if (p1.isType(p2.ref().toLegacyString().getValue())) |
619 | 620 |
returnError(ObjectOps.newInstance(AssertionFailedError.class, "II", |
620 |
substitute("&1 cannot be of type &2", p3, p2), 0)); |
|
621 |
substitute("&1 cannot be of type &2", p3, p2.ref().toLegacyString()), 0));
|
|
621 | 622 |
})); |
622 | 623 |
} |
623 | 624 |
src/com/goldencode/p2j/oo/core/collections/Array.java 2021-09-16 13:11:28 +0000 | ||
---|---|---|
14 | 14 |
** 20210113 Renamed clear() to clear_(), to follow NameConverter's rules. |
15 | 15 |
** 006 CA 20210221 Fixed 'qualified', 'extent' and 'returns' annotations at the legacy |
16 | 16 |
** signature. |
17 |
** ME 20210916 Fix wrong method call on set (increment instead of decrement) |
|
17 | 18 |
*/ |
18 | 19 | |
19 | 20 |
/* |
... | ... | |
601 | 602 |
ArrayAssigner.assignSingle(value, p2, p1); |
602 | 603 | |
603 | 604 |
// increment reference to object |
604 |
ObjectOps.decrement(p1.ref());
|
|
605 |
ObjectOps.increment(p1.ref());
|
|
605 | 606 |
})); |
606 | 607 |
} |
607 | 608 |
src/com/goldencode/p2j/oo/core/collections/ClassClassMap.java 2021-09-10 06:50:38 +0000 | ||
---|---|---|
1 |
/* |
|
2 |
** Module : ClassClassMap.java |
|
3 |
** Abstract : Implementation of the builtin class. |
|
4 |
** |
|
5 |
** Copyright (c) 2019, Golden Code Development Corporation. |
|
6 |
** |
|
7 |
** -#- -I- --Date-- -------------------------------Description-------------------------------- |
|
8 |
** 001 ME 20210908 First version, stubs taken by converting the skeleton using FWD. |
|
9 |
*/ |
|
10 | ||
11 |
/* |
|
12 |
** This program is free software: you can redistribute it and/or modify |
|
13 |
** it under the terms of the GNU Affero General Public License as |
|
14 |
** published by the Free Software Foundation, either version 3 of the |
|
15 |
** License, or (at your option) any later version. |
|
16 |
** |
|
17 |
** This program is distributed in the hope that it will be useful, |
|
18 |
** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
** GNU Affero General Public License for more details. |
|
21 |
** |
|
22 |
** You may find a copy of the GNU Affero GPL version 3 at the following |
|
23 |
** location: https://www.gnu.org/licenses/agpl-3.0.en.html |
|
24 |
** |
|
25 |
** Additional terms under GNU Affero GPL version 3 section 7: |
|
26 |
** |
|
27 |
** Under Section 7 of the GNU Affero GPL version 3, the following additional |
|
28 |
** terms apply to the works covered under the License. These additional terms |
|
29 |
** are non-permissive additional terms allowed under Section 7 of the GNU |
|
30 |
** Affero GPL version 3 and may not be removed by you. |
|
31 |
** |
|
32 |
** 0. Attribution Requirement. |
|
33 |
** |
|
34 |
** You must preserve all legal notices or author attributions in the covered |
|
35 |
** work or Appropriate Legal Notices displayed by works containing the covered |
|
36 |
** work. You may not remove from the covered work any author or developer |
|
37 |
** credit already included within the covered work. |
|
38 |
** |
|
39 |
** 1. No License To Use Trademarks. |
|
40 |
** |
|
41 |
** This license does not grant any license or rights to use the trademarks |
|
42 |
** Golden Code, FWD, any Golden Code or FWD logo, or any other trademarks |
|
43 |
** of Golden Code Development Corporation. You are not authorized to use the |
|
44 |
** name Golden Code, FWD, or the names of any author or contributor, for |
|
45 |
** publicity purposes without written authorization. |
|
46 |
** |
|
47 |
** 2. No Misrepresentation of Affiliation. |
|
48 |
** |
|
49 |
** You may not represent yourself as Golden Code Development Corporation or FWD. |
|
50 |
** |
|
51 |
** You may not represent yourself for publicity purposes as associated with |
|
52 |
** Golden Code Development Corporation, FWD, or any author or contributor to |
|
53 |
** the covered work, without written authorization. |
|
54 |
** |
|
55 |
** 3. No Misrepresentation of Source or Origin. |
|
56 |
** |
|
57 |
** You may not represent the covered work as solely your work. All modified |
|
58 |
** versions of the covered work must be marked in a reasonable way to make it |
|
59 |
** clear that the modified work is not originating from Golden Code Development |
|
60 |
** Corporation or FWD. All modified versions must contain the notices of |
|
61 |
** attribution required in this license. |
|
62 |
*/ |
|
63 |
package com.goldencode.p2j.oo.core.collections; |
|
64 | ||
65 |
import com.goldencode.p2j.util.*; |
|
66 | ||
67 |
import static com.goldencode.p2j.report.ReportConstants.CVT_LVL_PARTIAL; |
|
68 |
import static com.goldencode.p2j.report.ReportConstants.RT_LVL_STUB; |
|
69 |
import static com.goldencode.p2j.util.BlockManager.*; |
|
70 |
import static com.goldencode.p2j.util.InternalEntry.Type; |
|
71 | ||
72 |
/** |
|
73 |
* Business logic (converted to Java from the 4GL source code |
|
74 |
* in OpenEdge/Core/Collections/ClassClassMap.cls). |
|
75 |
*/ |
|
76 |
@LegacyResource(resource = "OpenEdge.Core.Collections.ClassClassMap") |
|
77 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
78 |
public class ClassClassMap |
|
79 |
extends com.goldencode.p2j.oo.core.collections.LegacyMap |
|
80 |
implements com.goldencode.p2j.oo.core.collections.Imap |
|
81 |
{ |
|
82 |
public void __core_collections_ClassClassMap_execute__() |
|
83 |
{ |
|
84 |
externalProcedure(ClassClassMap.class, ClassClassMap.this, new Block((Body) () -> |
|
85 |
{ |
|
86 |
{ |
|
87 |
} |
|
88 |
})); |
|
89 |
} |
|
90 | ||
91 |
@LegacySignature(type = Type.CONSTRUCTOR, parameters = |
|
92 |
{ |
|
93 |
@LegacyParameter(name = "poMap", type = "OBJECT", qualified = "openedge.core.collections.imap", mode = "INPUT") |
|
94 |
}) |
|
95 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
96 |
public void __core_collections_ClassClassMap_constructor__(final object<? extends com.goldencode.p2j.oo.core.collections.Imap> _poMap) |
|
97 |
{ |
|
98 |
object<? extends com.goldencode.p2j.oo.core.collections.Imap> poMap = TypeFactory.initInput(_poMap); |
|
99 |
|
|
100 |
internalProcedure(ClassClassMap.class, this, "__core_collections_ClassClassMap_constructor__", new Block((Body) () -> |
|
101 |
{ |
|
102 |
__core_collections_LegacyMap_constructor__(); |
|
103 |
})); |
|
104 |
} |
|
105 | ||
106 |
@LegacySignature(type = Type.CONSTRUCTOR) |
|
107 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
108 |
public void __core_collections_ClassClassMap_constructor__() |
|
109 |
{ |
|
110 |
internalProcedure(ClassClassMap.class, this, "__core_collections_ClassClassMap_constructor__", new Block((Body) () -> |
|
111 |
{ |
|
112 |
__core_collections_LegacyMap_constructor__(); |
|
113 |
})); |
|
114 |
} |
|
115 | ||
116 |
@LegacySignature(type = Type.METHOD, name = "Put", returns = "OBJECT", qualified = "progress.lang.class", parameters = |
|
117 |
{ |
|
118 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.class", mode = "INPUT"), |
|
119 |
@LegacyParameter(name = "poValue", type = "OBJECT", qualified = "progress.lang.class", mode = "INPUT") |
|
120 |
}) |
|
121 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
122 |
public object<? extends com.goldencode.p2j.oo.lang.LegacyClass> put_1(final object<? extends com.goldencode.p2j.oo.lang.LegacyClass> _poKey, final object<? extends com.goldencode.p2j.oo.lang.LegacyClass> _poValue) |
|
123 |
{ |
|
124 |
object<? extends com.goldencode.p2j.oo.lang.LegacyClass> poKey = TypeFactory.initInput(_poKey); |
|
125 |
object<? extends com.goldencode.p2j.oo.lang.LegacyClass> poValue = TypeFactory.initInput(_poValue); |
|
126 |
|
|
127 |
return function(ClassClassMap.class, this, "Put", object.class, new Block()); |
|
128 |
} |
|
129 | ||
130 |
@LegacySignature(type = Type.METHOD, name = "Put", returns = "OBJECT", qualified = "progress.lang.object", parameters = |
|
131 |
{ |
|
132 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.object", mode = "INPUT"), |
|
133 |
@LegacyParameter(name = "poValue", type = "OBJECT", qualified = "progress.lang.object", mode = "INPUT") |
|
134 |
}) |
|
135 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
136 |
@Override |
|
137 |
public object<? extends com.goldencode.p2j.oo.lang._BaseObject_> put(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _poKey, final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _poValue) |
|
138 |
{ |
|
139 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> poKey = TypeFactory.initInput(_poKey); |
|
140 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> poValue = TypeFactory.initInput(_poValue); |
|
141 |
|
|
142 |
return function(ClassClassMap.class, this, "Put", object.class, new Block()); |
|
143 |
} |
|
144 | ||
145 |
@LegacySignature(type = Type.METHOD, name = "Remove", returns = "OBJECT", qualified = "progress.lang.class", parameters = |
|
146 |
{ |
|
147 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.class", mode = "INPUT") |
|
148 |
}) |
|
149 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
150 |
public object<? extends com.goldencode.p2j.oo.lang.LegacyClass> remove_1(final object<? extends com.goldencode.p2j.oo.lang.LegacyClass> _poKey) |
|
151 |
{ |
|
152 |
object<? extends com.goldencode.p2j.oo.lang.LegacyClass> poKey = TypeFactory.initInput(_poKey); |
|
153 |
|
|
154 |
return function(ClassClassMap.class, this, "Remove", object.class, new Block()); |
|
155 |
} |
|
156 | ||
157 |
@LegacySignature(type = Type.METHOD, name = "Remove", returns = "OBJECT", qualified = "progress.lang.object", parameters = |
|
158 |
{ |
|
159 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.object", mode = "INPUT") |
|
160 |
}) |
|
161 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
162 |
@Override |
|
163 |
public object<? extends com.goldencode.p2j.oo.lang._BaseObject_> remove(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _poKey) |
|
164 |
{ |
|
165 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> poKey = TypeFactory.initInput(_poKey); |
|
166 |
|
|
167 |
return function(ClassClassMap.class, this, "Remove", object.class, new Block()); |
|
168 |
} |
|
169 | ||
170 |
@LegacySignature(type = Type.METHOD, name = "ContainsKey", returns = "LOGICAL", parameters = |
|
171 |
{ |
|
172 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.object", mode = "INPUT") |
|
173 |
}) |
|
174 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
175 |
@Override |
|
176 |
public logical containsKey(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _poKey) |
|
177 |
{ |
|
178 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> poKey = TypeFactory.initInput(_poKey); |
|
179 |
|
|
180 |
return function(ClassClassMap.class, this, "ContainsKey", logical.class, new Block()); |
|
181 |
} |
|
182 | ||
183 |
@LegacySignature(type = Type.METHOD, name = "ContainsKey", returns = "LOGICAL", parameters = |
|
184 |
{ |
|
185 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.class", mode = "INPUT") |
|
186 |
}) |
|
187 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
188 |
public logical containsKey_1(final object<? extends com.goldencode.p2j.oo.lang.LegacyClass> _poKey) |
|
189 |
{ |
|
190 |
object<? extends com.goldencode.p2j.oo.lang.LegacyClass> poKey = TypeFactory.initInput(_poKey); |
|
191 |
|
|
192 |
return function(ClassClassMap.class, this, "ContainsKey", logical.class, new Block()); |
|
193 |
} |
|
194 | ||
195 |
@LegacySignature(type = Type.METHOD, name = "ContainsValue", returns = "LOGICAL", parameters = |
|
196 |
{ |
|
197 |
@LegacyParameter(name = "poValue", type = "OBJECT", qualified = "progress.lang.object", mode = "INPUT") |
|
198 |
}) |
|
199 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
200 |
@Override |
|
201 |
public logical containsValue(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _poValue) |
|
202 |
{ |
|
203 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> poValue = TypeFactory.initInput(_poValue); |
|
204 |
|
|
205 |
return function(ClassClassMap.class, this, "ContainsValue", logical.class, new Block()); |
|
206 |
} |
|
207 | ||
208 |
@LegacySignature(type = Type.METHOD, name = "ContainsValue", returns = "LOGICAL", parameters = |
|
209 |
{ |
|
210 |
@LegacyParameter(name = "poValue", type = "OBJECT", qualified = "progress.lang.class", mode = "INPUT") |
|
211 |
}) |
|
212 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
213 |
public logical containsValue_1(final object<? extends com.goldencode.p2j.oo.lang.LegacyClass> _poValue) |
|
214 |
{ |
|
215 |
object<? extends com.goldencode.p2j.oo.lang.LegacyClass> poValue = TypeFactory.initInput(_poValue); |
|
216 |
|
|
217 |
return function(ClassClassMap.class, this, "ContainsValue", logical.class, new Block()); |
|
218 |
} |
|
219 | ||
220 |
@LegacySignature(type = Type.METHOD, name = "Get", returns = "OBJECT", qualified = "progress.lang.object", parameters = |
|
221 |
{ |
|
222 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.object", mode = "INPUT") |
|
223 |
}) |
|
224 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
225 |
@Override |
|
226 |
public object<? extends com.goldencode.p2j.oo.lang._BaseObject_> get(final object<? extends com.goldencode.p2j.oo.lang._BaseObject_> _poKey) |
|
227 |
{ |
|
228 |
object<? extends com.goldencode.p2j.oo.lang._BaseObject_> poKey = TypeFactory.initInput(_poKey); |
|
229 |
|
|
230 |
return function(ClassClassMap.class, this, "Get", object.class, new Block()); |
|
231 |
} |
|
232 | ||
233 |
@LegacySignature(type = Type.METHOD, name = "Get", returns = "OBJECT", qualified = "progress.lang.class", parameters = |
|
234 |
{ |
|
235 |
@LegacyParameter(name = "poKey", type = "OBJECT", qualified = "progress.lang.class", mode = "INPUT") |
|
236 |
}) |
|
237 |
@LegacyResourceSupport(supportLvl = CVT_LVL_PARTIAL|RT_LVL_STUB) |
|
238 |
public object<? extends com.goldencode.p2j.oo.lang.LegacyClass> get_1(final object<? extends com.goldencode.p2j.oo.lang.LegacyClass> _poKey) |
|
239 |
{ |
|
240 |
object<? extends com.goldencode.p2j.oo.lang.LegacyClass> poKey = TypeFactory.initInput(_poKey); |
|
241 |
|
|
242 |
return function(ClassClassMap.class, this, "Get", object.class, new Block()); |
|
243 |
} |
|
244 |
} |
src/com/goldencode/p2j/oo/core/collections/LegacyCollection.java 2021-09-10 06:50:38 +0000 | ||
---|---|---|
112 | 112 |
@LegacyResourceSupport(supportLvl = CVT_LVL_FULL | RT_LVL_FULL) |
113 | 113 |
public void __core_collections_LegacyCollection_constructor__() |
114 | 114 |
{ |
115 |
internalProcedure(LegacyCollection.class, this, "__core_collections_Collection_constructor__", new Block((Body) () -> |
|
115 |
internalProcedure(LegacyCollection.class, this, "__core_collections_LegacyCollection_constructor__", new Block((Body) () ->
|
|
116 | 116 |
{ |
117 | 117 |
__core_collections_AbstractTtcollection_constructor__(); |
118 | 118 |
objects = new ArrayList<object<? extends _BaseObject_>>(); |
... | ... | |
128 | 128 |
{ |
129 | 129 |
object<? extends Icollection> c = TypeFactory.initInput(_c); |
130 | 130 |
|
131 |
internalProcedure(LegacyCollection.class, this, "__core_collections_Collection_constructor__", new Block((Body) () -> |
|
131 |
internalProcedure(LegacyCollection.class, this, "__core_collections_LegacyCollection_constructor__", new Block((Body) () ->
|
|
132 | 132 |
{ |
133 | 133 |
__core_collections_LegacyCollection_constructor__(); |
134 | 134 |
addAll(c); |
src/com/goldencode/p2j/oo/core/collections/LegacyLinkedList.java 2021-09-10 06:50:38 +0000 | ||
---|---|---|
1 |
/* |
|
2 |
** Module : LegacyLinkedList.java |
|
3 |
** Abstract : Implementation of the builtin class. |
|
4 |
** |
|
5 |
** Copyright (c) 2019, Golden Code Development Corporation. |
|
6 |
** |
|
7 |
** -#- -I- --Date-- -------------------------------Description-------------------------------- |
|
8 |
** 001 ME 20210908 First version, stubs taken by converting the skeleton using FWD. |
|
9 |
*/ |
|
10 | ||
11 |
/* |
|
12 |
** This program is free software: you can redistribute it and/or modify |
|
13 |
** it under the terms of the GNU Affero General Public License as |
|
14 |
** published by the Free Software Foundation, either version 3 of the |
|
15 |
** License, or (at your option) any later version. |
|
16 |
** |
|
17 |
** This program is distributed in the hope that it will be useful, |
|
18 |
** but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
19 |
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
20 |
** GNU Affero General Public License for more details. |
|
21 |
** |
|
22 |
** You may find a copy of the GNU Affero GPL version 3 at the following |
|
23 |
** location: https://www.gnu.org/licenses/agpl-3.0.en.html |
|
24 |
** |
|
25 |
** Additional terms under GNU Affero GPL version 3 section 7: |
|
26 |
** |
|
27 |
** Under Section 7 of the GNU Affero GPL version 3, the following additional |
|
28 |
** terms apply to the works covered under the License. These additional terms |
|
29 |
** are non-permissive additional terms allowed under Section 7 of the GNU |
|
30 |
** Affero GPL version 3 and may not be removed by you. |
|
31 |
** |
|
32 |
** 0. Attribution Requirement. |
|
33 |
** |
|
34 |
** You must preserve all legal notices or author attributions in the covered |
|
35 |
** work or Appropriate Legal Notices displayed by works containing the covered |
|
36 |
** work. You may not remove from the covered work any author or developer |