Searched refs:MethodType (Results 1 - 25 of 301) sorted by relevance

1234567891011>>

/openjdk10/jdk/test/java/lang/invoke/lambda/
H A DLambdaReceiverBridge.java35 import java.lang.invoke.MethodType;
49 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); }
50 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); }
51 private static void mf(List<String> errs, MethodType mts, MethodType mtf, boolean shouldWork) {
57 MethodType X = mt(int.class, LambdaReceiverBridge.class);
58 MethodType A = mt(int.class, LambdaReceiver_A.class);
59 MethodType mt
[all...]
H A DLambdaReceiver.java35 import java.lang.invoke.MethodType;
49 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); }
50 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); }
51 private static void mf(List<String> errs, MethodType mts, MethodType mtf, boolean shouldWork) {
57 MethodType X = mt(int.class, LambdaReceiver.class);
58 MethodType A = mt(int.class, LambdaReceiver_A.class);
59 MethodType mt
[all...]
H A DT8032697.java34 import java.lang.invoke.MethodType;
50 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); }
51 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); }
52 private static boolean mf(MethodType mti, MethodType mtf) {
H A DMetafactoryArityTest.java31 import static java.lang.invoke.MethodType.methodType;
47 MethodType unary = methodType(String.class, int.class);
48 MethodType nullary = methodType(String.class);
49 MethodType binary = methodType(String.class, int.class, int.class);
50 MethodType unaryCS = methodType(CharSequence.class, int.class);
51 MethodType nullaryCS = methodType(CharSequence.class);
52 MethodType binaryCS = methodType(CharSequence.class, int.class, int.class);
53 MethodType unaryObj = methodType(Object.class, int.class);
54 MethodType nullaryObj = methodType(Object.class);
55 MethodType binaryOb
[all...]
H A DLambdaReturn.java34 import java.lang.invoke.MethodType;
47 private static MethodType mt(Class<?> k) { return MethodType.methodType(k); }
48 private static MethodType mt(Class<?> k, Class<?> k2) { return MethodType.methodType(k, k2); }
49 private static void amf(List<String> errs, MethodHandle h, MethodType mts, MethodType mtf, MethodType mtb, boolean shouldWork) {
50 MethodType mti = mt(I.class);
66 MethodType
[all...]
H A DMetafactoryMethodNameTest.java83 static MethodType mt(Class<?> ret, Class<?>... params) {
84 return MethodType.methodType(ret, params);
87 static MethodHandle smh(Class<?> c, String name, MethodType desc) {
106 private static MethodType toI = mt(I.class);
107 private static MethodType toVoid = mt(void.class);
123 MethodType capType,
124 MethodType desc,
126 MethodType checked) {
138 MethodType capType,
139 MethodType des
[all...]
/openjdk10/jdk/src/java.base/share/classes/java/lang/invoke/
H A DLambdaMetafactory.java77 * At linkage time, an additional {@link MethodType} parameter describes the
79 * are checked against this {@code MethodType}.
82 * ({@link #metafactory(MethodHandles.Lookup, String, MethodType, MethodType, MethodHandle, MethodType)})
84 * {@link #altMetafactory(MethodHandles.Lookup, String, MethodType, Object...)}).
96 * {@code MethodType}s will be provided, each of which will be implemented
243 private static final MethodType[] EMPTY_MT_ARRAY = new MethodType[0];
254 * is provided by {@link #altMetafactory(MethodHandles.Lookup, String, MethodType, Objec
[all...]
H A DSimpleMethodHandle.java36 private SimpleMethodHandle(MethodType type, LambdaForm form) {
40 /*non-public*/ static BoundMethodHandle make(MethodType type, LambdaForm form) {
51 /*non-public*/ BoundMethodHandle copyWith(MethodType mt, LambdaForm lf) {
66 /*non-public*/ final BoundMethodHandle copyWithExtendL(MethodType mt, LambdaForm lf, Object narg) {
70 /*non-public*/ final BoundMethodHandle copyWithExtendI(MethodType mt, LambdaForm lf, int narg) {
78 /*non-public*/ final BoundMethodHandle copyWithExtendJ(MethodType mt, LambdaForm lf, long narg) {
86 /*non-public*/ final BoundMethodHandle copyWithExtendF(MethodType mt, LambdaForm lf, float narg) {
94 /*non-public*/ final BoundMethodHandle copyWithExtendD(MethodType mt, LambdaForm lf, double narg) {
H A DVarForm.java42 final @Stable MethodType[] methodType_table;
47 this.methodType_table = new MethodType[VarHandle.AccessType.values().length];
61 MethodType.methodType(value, l).erase();
66 MethodType.methodType(void.class, l).erase();
70 MethodType.methodType(value, l).erase();
75 MethodType.methodType(boolean.class, l).erase();
79 MethodType.methodType(value, l).erase();
83 final MethodType getMethodType(int type) {
99 MethodType[] methodType_V_table;
102 final MethodType[] getMethodType_V_ini
[all...]
/openjdk10/jdk/src/java.desktop/share/classes/javax/swing/text/html/
H A DFormSubmitEvent.java48 public enum MethodType { enum in class:FormSubmitEvent
75 MethodType method, String data) {
88 public MethodType getMethod() {
101 private MethodType method;
/openjdk10/jdk/src/java.base/share/classes/jdk/internal/misc/
H A DJavaLangInvokeAccess.java28 import java.lang.invoke.MethodType;
50 * DirectMethodHandle of each pairwise combination of {@code MethodType} and
55 MethodType[] methodTypes, int[] types);
59 * DelegatingMethodHandles of each {@code MethodType} kind in the
64 MethodType[] methodTypes);
87 MethodType[] methodTypes);
/openjdk10/jdk/test/java/lang/invoke/
H A DObjectMethodInInterfaceTest.java34 import java.lang.invoke.MethodType;
38 MethodHandle mh = MethodHandles.lookup().findVirtual(CharSequence.class, "toString", MethodType.methodType(String.class));
39 MethodType mt = MethodType.methodType(Object.class, CharSequence.class);
H A DTestPrivateMember.java26 import java.lang.invoke.MethodType;
48 MethodType mt = MethodType.methodType(void.class);
H A DCustomizedLambdaFormTest.java26 import java.lang.invoke.MethodType;
40 MethodType.methodType(String.class, String.class))
H A DMethodTypeTest.java25 * @summary unit tests for java.lang.invoke.MethodType
33 import java.lang.invoke.MethodType;
49 private MethodType mt_viS, mt_OO, mt_OO2, mt_vv, mt_Vv, mt_Ov;
50 private MethodType mt_iSI, mt_ISi, mt_ISI, mt_iSi;
51 private MethodType mt_viO, mt_iO2, mt_OOi, mt_iOi;
52 private MethodType mt_VIO, mt_IO2, mt_OOI, mt_IOI, mt_VIS;
53 private MethodType mt_vOiSzA, mt_OO99;
54 private MethodType[] GALLERY;
62 mt_viS = MethodType.methodType(void.class, int.class, String.class);
63 mt_OO = MethodType
[all...]
/openjdk10/jdk/test/java/lang/String/concat/
H A DStringConcatFactoryEmptyMethods.java44 MethodType.methodType(String.class)
50 MethodType.methodType(String.class),
H A DStringConcatFactoryInvariants.java71 MethodType mt = MethodType.methodType(String.class, String.class, int.class);
83 new MethodType[] { MethodType.methodType(String.class) }
125 MethodType mtEmpty = MethodType.methodType(String.class);
126 MethodType mtUnderThreshold = MethodType.methodType(String.class, underThreshold);
127 MethodType mtThreshold = MethodType
[all...]
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/linker/
H A DMethodTypeConversionStrategy.java87 import java.lang.invoke.MethodType;
105 public MethodHandle asType(final MethodHandle target, final MethodType newType);
/openjdk10/jdk/test/java/lang/invoke/ProtectedMemberDifferentPackage/p1/
H A DT2.java31 import java.lang.invoke.MethodType;
44 assertFailure(IAE, () -> LOOKUP.findVirtual(T1.class, "m1", MethodType.methodType(void.class)));
45 assertFailure(IAE, () -> LOOKUP.findStatic(T1.class, "m2", MethodType.methodType(void.class)));
47 assertSuccess(() -> LOOKUP.findVirtual(T2.class, "m1", MethodType.methodType(void.class)));
48 assertSuccess(() -> LOOKUP.findVirtual(T3.class, "m1", MethodType.methodType(void.class)));
50 assertSuccess(() -> LOOKUP.findStatic(T2.class, "m2", MethodType.methodType(void.class)));
51 assertSuccess(() -> LOOKUP.findStatic(T3.class, "m2", MethodType.methodType(void.class)));
/openjdk10/jdk/test/sun/invoke/util/
H A DWrapperTest.java29 import java.lang.invoke.MethodType;
47 MethodHandle h2 = h1.asType(MethodType.methodType(void.class)); // drop 42
48 MethodHandle h3 = h2.asType(MethodType.methodType(short.class)); // add 0
49 MethodHandle h4 = h3.asType(MethodType.methodType(Object.class)); // box
60 MethodHandle h2 = h1.asType(MethodType.methodType(void.class)); // drop 42
61 MethodHandle h3 = h2.asType(MethodType.methodType(int.class)); // add 0
62 MethodHandle h4 = h3.asType(MethodType.methodType(Object.class)); // box
73 MethodHandle h2 = h1.asType(MethodType.methodType(void.class)); // drop 42
74 MethodHandle h3 = h2.asType(MethodType.methodType(long.class)); // add 0
75 MethodHandle h4 = h3.asType(MethodType
[all...]
/openjdk10/jdk/test/java/lang/invoke/8177146/
H A DTestMethodHandleBind.java32 import java.lang.invoke.MethodType;
43 MethodHandle bound = lookup().bind(new TestMethodHandleBind() , "m1", MethodType.methodType(String.class));
50 MethodHandle bound = lookup().bind(new B() , "m1", MethodType.methodType(String.class));
51 // MethodHandle bound = lookup().findVirtual(B.class, "m1", MethodType.methodType(String.class)).bindTo(new B());
59 MethodHandle bound = lookup().bind(new pkg.A() , "m1", MethodType.methodType(String.class));
68 MethodHandle bound = lookup().bind(new pkg.A() , "m2", MethodType.methodType(String.class));
75 MethodHandle bound = lookup().bind(new TestMethodHandleBind(), "m2", MethodType.methodType(String.class));
82 MethodHandle bound = lookup().bind(new TestMethodHandleBind() , "m3", MethodType.methodType(String.class, String[].class));
90 MethodHandle bound = lookup().bind(new pkg.A(), "m3", MethodType.methodType(String.class, String[].class));
/openjdk10/nashorn/src/jdk.dynalink/share/classes/jdk/dynalink/beans/
H A DClassLinker.java87 import java.lang.invoke.MethodType;
105 "forClass", MethodType.methodType(StaticClass.class, Class.class));
H A DApplicableOverloadedMethods.java86 import java.lang.invoke.MethodType;
106 ApplicableOverloadedMethods(final List<SingleDynamicMethod> methods, final MethodType callSiteType,
136 abstract boolean isApplicable(MethodType callSiteType, SingleDynamicMethod method);
144 boolean isApplicable(final MethodType callSiteType, final SingleDynamicMethod method) {
145 final MethodType methodType = method.getMethodType();
166 boolean isApplicable(final MethodType callSiteType, final SingleDynamicMethod method) {
167 final MethodType methodType = method.getMethodType();
189 boolean isApplicable(final MethodType callSiteType, final SingleDynamicMethod method) {
193 final MethodType methodType = method.getMethodType();
/openjdk10/jdk/test/java/lang/invoke/LFCaching/
H A DTestMethods.java28 import java.lang.invoke.MethodType;
49 MethodType mtTarget = TestMethods.randomMethodTypeGenerator(desiredArity);
69 MethodType mtTarget = (MethodType) data.get("mtTarget");
90 MethodType mtTarget = TestMethods.randomMethodTypeGenerator(desiredArity);
96 MethodType mtDropArgs = TestMethods.randomMethodTypeGenerator(
105 MethodType mtTarget = (MethodType) data.get("mtTarget");
106 MethodType mtDropArgs = (MethodType) dat
[all...]
/openjdk10/hotspot/test/compiler/runtime/cr8015436/
H A DTest8015436.java48 import java.lang.invoke.MethodType;
66 MethodType mt = MethodType.methodType(void.class, String.class);

Completed in 219 milliseconds

1234567891011>>