Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/jcl/src/java.base/share/classes/java/lang/invoke/BoundMethodHandle.java
12521 views
1
/*[INCLUDE-IF Sidecar18-SE-OpenJ9 & !OPENJDK_METHODHANDLES]*/
2
/*******************************************************************************
3
* Copyright (c) 2017, 2020 IBM Corp. and others
4
*
5
* This program and the accompanying materials are made available under
6
* the terms of the Eclipse Public License 2.0 which accompanies this
7
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
8
* or the Apache License, Version 2.0 which accompanies this distribution and
9
* is available at https://www.apache.org/licenses/LICENSE-2.0.
10
*
11
* This Source Code may also be made available under the following
12
* Secondary Licenses when the conditions for such availability set
13
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
14
* General Public License, version 2 with the GNU Classpath
15
* Exception [1] and GNU General Public License, version 2 with the
16
* OpenJDK Assembly Exception [2].
17
*
18
* [1] https://www.gnu.org/software/classpath/license.html
19
* [2] http://openjdk.java.net/legal/assembly-exception.html
20
*
21
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
22
*******************************************************************************/
23
package java.lang.invoke;
24
25
/*
26
* Stub class to compile RI j.l.i.MethodHandleImpl
27
*/
28
abstract class BoundMethodHandle extends MethodHandle {
29
30
BoundMethodHandle(MethodType mt, LambdaForm lf) {
31
super(mt, lf);
32
OpenJDKCompileStub.OpenJDKCompileStubThrowError();
33
}
34
35
LambdaFormEditor editor() {
36
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
37
}
38
39
static SpeciesData speciesData(LambdaForm lf) {
40
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
41
}
42
static SpeciesData speciesData_L() {
43
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
44
}
45
static SpeciesData speciesData_LL() {
46
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
47
}
48
static SpeciesData speciesData_LLL() {
49
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
50
}
51
static SpeciesData speciesData_LLLL() {
52
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
53
}
54
static SpeciesData speciesData_LLLLL() {
55
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
56
}
57
58
LambdaForm.NamedFunction getterFunction(int num) {
59
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
60
}
61
62
/*[IF JAVA_SPEC_VERSION >= 15]*/
63
final int fieldCount() {
64
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
65
}
66
67
final Object arg(int i) {
68
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
69
}
70
/*[ENDIF] JAVA_SPEC_VERSION >= 15 */
71
72
class SpeciesData {
73
MethodHandle constructor() {
74
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
75
}
76
77
LambdaForm.NamedFunction getterFunction(int num) {
78
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
79
}
80
81
/*[IF JAVA_SPEC_VERSION >= 10]*/
82
MethodHandle factory() {
83
throw OpenJDKCompileStub.OpenJDKCompileStubThrowError();
84
}
85
/*[ENDIF] JAVA_SPEC_VERSION >= 10 */
86
}
87
88
abstract BoundMethodHandle copyWithExtendL(MethodType mt, LambdaForm lf, Object obj);
89
90
abstract BoundMethodHandle copyWith(MethodType mt, LambdaForm lf);
91
}
92
93