-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathMethodType.php
More file actions
333 lines (305 loc) Β· 10.9 KB
/
MethodType.php
File metadata and controls
333 lines (305 loc) Β· 10.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<?php
declare(strict_types=1);
namespace PHPJava\Packages\java\lang\invoke;
use PHPJava\Core\JavaClass;
use PHPJava\Exceptions\NotImplementedException;
use PHPJava\Packages\java\lang\Object_;
// use PHPJava\Packages\java\io\Serializable;
// use PHPJava\Packages\java\util\_List;
/**
* The `MethodType` class was auto generated.
*
* @parent \PHPJava\Packages\java\lang\Object_
*/
class MethodType extends Object_ // implements Serializable, _List
{
protected $parameters = [];
public function __construct(...$parameters)
{
parent::__construct(...$parameters);
$this->parameters = $parameters;
}
/**
* Finds or creates a method type with additional parameter types.
* Finds or creates a method type with additional parameter types.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#appendParameterTypes
* @param null|mixed $a
* @throws NotImplementedException
*/
public function appendParameterTypes($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates a method type with a single different parameter type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#changeParameterType
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function changeParameterType($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates a method type with a different return type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#changeReturnType
* @param null|mixed $a
* @throws NotImplementedException
*/
public function changeReturnType($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates a method type with some parameter types omitted.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#dropParameterTypes
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function dropParameterTypes($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Compares the specified object with this type for equality.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#equals
* @param null|mixed $a
* @throws NotImplementedException
*/
public function equals($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Erases all reference types to Object.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#erase
* @param null|mixed $a
* @throws NotImplementedException
*/
public function erase($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates an instance of a method type, given the spelling of its bytecode descriptor.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#fromMethodDescriptorString
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function fromMethodDescriptorString($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Converts all types, both reference and primitive, to Object.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#generic
* @param null|mixed $a
* @throws NotImplementedException
*/
public function generic($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates a method type whose components are all Object.
* Finds or creates a method type whose components are Object with an optional trailing Object[] array.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#genericMethodType
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public static function genericMethodType($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the hash code value for this method type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#hashCode
* @param null|mixed $a
* @throws NotImplementedException
*/
public function hashCode($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Reports if this type contains a primitive argument or return value.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#hasPrimitives
* @param null|mixed $a
* @throws NotImplementedException
*/
public function hasPrimitives($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Reports if this type contains a wrapper argument or return value.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#hasWrappers
* @param null|mixed $a
* @throws NotImplementedException
*/
public function hasWrappers($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates a method type with additional parameter types.
* Finds or creates a method type with additional parameter types.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#insertParameterTypes
* @param null|mixed $a
* @param null|mixed $b
* @throws NotImplementedException
*/
public function insertParameterTypes($a = null, $b = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the last parameter type of this method type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#lastParameterType
* @param null|mixed $a
* @throws NotImplementedException
*/
public function lastParameterType($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Finds or creates a method type with the given components.
* Finds or creates a method type with the given components.
* Finds or creates an instance of the given method type.
* Finds or creates a method type with the given components.
* Finds or creates a method type with the given components.
* Finds or creates a method type with the given components.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#methodType
* @param null|mixed $a
* @param null|mixed $b
* @param null|mixed $c
*/
public static function methodType($a = null, $b = null, $c = null)
{
return JavaClass::load(
'java.lang.invoke.MethodType',
[
'inherit' => true,
]
)->getInvoker()
->construct(...func_get_args())
->getJavaClass();
}
/**
* Presents the parameter types as an array (a convenience method).
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#parameterArray
* @param null|mixed $a
* @throws NotImplementedException
*/
public function parameterArray($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the number of parameter types in this method type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#parameterCount
* @param null|mixed $a
* @throws NotImplementedException
*/
public function parameterCount($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Presents the parameter types as a list (a convenience method).
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#parameterList
* @param null|mixed $a
* @throws NotImplementedException
*/
public function parameterList($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the parameter type at the specified index, within this method type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#parameterType
* @param null|mixed $a
* @throws NotImplementedException
*/
public function parameterType($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns the return type of this method type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#returnType
*/
public function returnType()
{
return $this->parameters[0];
}
/**
* Produces a bytecode descriptor representation of the method type.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#toMethodDescriptorString
* @param null|mixed $a
* @throws NotImplementedException
*/
public function toMethodDescriptorString($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Returns a string representation of the method type, of the form "(PT0,PT1...)RT".
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#toString
* @param null|mixed $a
* @throws NotImplementedException
*/
public function toString($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Converts all wrapper types to their corresponding primitive types.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#unwrap
* @param null|mixed $a
* @throws NotImplementedException
*/
public function unwrap($a = null)
{
throw new NotImplementedException(__METHOD__);
}
/**
* Converts all primitive types to their corresponding wrapper types.
*
* @see https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/invoke/package-summary.html#wrap
* @param null|mixed $a
* @throws NotImplementedException
*/
public function wrap($a = null)
{
throw new NotImplementedException(__METHOD__);
}
}