Lines Matching refs:MethodType

64 import static java.lang.invoke.MethodType.methodType;
1083 import static java.lang.invoke.MethodType.*;
1103 MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
1148 import static java.lang.invoke.MethodType.*;
1164 MethodType MT_newString = methodType(void.class); //()V for new String()
1187 public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
1199 private MethodHandle findVirtualForMH(String name, MethodType type) {
1200 // these names require special lookups because of the implicit MethodType argument
1208 private MethodHandle findVirtualForVH(String name, MethodType type) {
1235 import static java.lang.invoke.MethodType.*;
1261 public MethodHandle findConstructor(Class<?> refc, MethodType type) throws NoSuchMethodException, IllegalAccessException {
1348 import static java.lang.invoke.MethodType.*;
1393 public MethodHandle findSpecial(Class<?> refc, String name, MethodType type,
1666 import static java.lang.invoke.MethodType.*;
1694 public MethodHandle bind(Object receiver, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
2027 MemberName resolveOrFail(byte refKind, Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
2252 MethodType rawType = mh.type();
2254 MethodType narrowType = rawType.changeParameterType(0, caller);
2438 if (!(type instanceof Class || type instanceof MethodType))
2861 MethodHandle spreadInvoker(MethodType type, int leadingArgCount) {
2904 MethodHandle exactInvoker(MethodType type) {
2926 * A {@linkplain MethodType#genericMethodType general method type} is one which
2943 MethodHandle invoker(MethodType type) {
2962 MethodHandle varHandleExactInvoker(VarHandle.AccessMode accessMode, MethodType type) {
2991 MethodHandle varHandleInvoker(VarHandle.AccessMode accessMode, MethodType type) {
2996 MethodHandle basicInvoker(MethodType type) {
3047 MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) {
3050 MethodType oldType = target.type();
3058 private static void explicitCastArgumentsChecks(MethodHandle target, MethodType newType) {
3096 import static java.lang.invoke.MethodType.*;
3098 MethodType intfn1 = methodType(int.class, int.class);
3099 MethodType intfn2 = methodType(int.class, int.class, int.class);
3127 MethodHandle permuteArguments(MethodHandle target, MethodType newType, int... reorder) {
3129 MethodType oldType = target.type();
3248 private static boolean permuteArgumentChecks(int[] reorder, MethodType newType, MethodType oldType) {
3366 public static MethodHandle empty(MethodType type) {
3373 MethodType mtype = methodType(ptype, ptype);
3391 MethodType mtype = methodType(rtype);
3470 MethodType oldType = target.type();
3496 import static java.lang.invoke.MethodType.*;
3501 MethodType bigType = cat.type().insertParameterTypes(0, int.class, String.class);
3533 MethodType oldType = target.type(); // get NPE
3535 MethodType newType = oldType.insertParameterTypes(pos, valueTypes);
3547 private static int dropArgumentChecks(MethodType oldType, int pos, List<Class<?>> valueTypes) {
3549 MethodType.checkSlotCount(dropped);
3574 import static java.lang.invoke.MethodType.*;
3685 import static java.lang.invoke.MethodType.*;
3690 MethodType bigType = h1.type().insertParameterTypes(1, String.class, int.class);
3749 import static java.lang.invoke.MethodType.*;
3811 MethodType targetType = target.type();
3812 MethodType filterType = filter.type();
3816 MethodType newType = targetType.changeParameterType(pos, newParamType);
3822 MethodType targetType = target.type();
3829 MethodType targetType = target.type();
3830 MethodType filterType = filter.type();
3864 import static java.lang.invoke.MethodType.*;
3957 MethodType newType = collectArgumentsChecks(target, pos, filter);
3958 MethodType collectorType = filter.type();
3971 private static MethodType collectArgumentsChecks(MethodHandle target, int pos, MethodHandle filter) throws RuntimeException {
3972 MethodType targetType = target.type();
3973 MethodType filterType = filter.type();
4002 import static java.lang.invoke.MethodType.*;
4051 MethodType targetType = target.type();
4052 MethodType filterType = filter.type();
4057 MethodType newType = targetType.changeReturnType(filterType.returnType());
4062 private static void filterReturnValueChecks(MethodType targetType, MethodType filterType) throws RuntimeException {
4107 import static java.lang.invoke.MethodType.*;
4176 import static java.lang.invoke.MethodType.*;
4234 MethodType targetType = target.type();
4235 MethodType combinerType = combiner.type();
4240 MethodType newType = targetType;
4256 MethodType targetType = target.type();
4257 MethodType combinerType = combiner.type();
4262 MethodType newType = targetType;
4270 private static Class<?> foldArgumentChecks(int foldPos, MethodType targetType, MethodType combinerType) {
4291 private static Class<?> foldArgumentChecks(int foldPos, MethodType targetType, MethodType combinerType, int ... argPos) {
4360 MethodType gtype = test.type();
4361 MethodType ttype = target.type();
4362 MethodType ftype = fallback.type();
4433 MethodType ttype = target.type();
4434 MethodType htype = handler.type();
4810 map(MethodType::returnType).findFirst().orElse(void.class);
4842 assert finit.stream().map(MethodHandle::type).map(MethodType::parameterList).
4844 assert Stream.of(fstep, fpred, ffini).flatMap(List::stream).map(MethodHandle::type).map(MethodType::parameterList).
4875 map(MethodType::parameterList).
4900 if (fini.stream().filter(Objects::nonNull).map(MethodHandle::type).map(MethodType::returnType).
4909 if (pred.stream().filter(Objects::nonNull).map(MethodHandle::type).map(MethodType::returnType).
5155 MethodType bodyType = body.type();
5163 MethodType expected = bodyType.insertParameterTypes(0, returnType);
5168 MethodType predType = pred.type();
5174 MethodType initType = init.type();
5297 * MethodType loopType = methodType(String.class, String.class, int.class, String.class);
5480 MethodType expected = start.type().changeReturnType(int.class);
5483 MethodType expected = end.type().changeReturnType(counterType);
5486 MethodType bodyType = body.type();
5493 MethodType expected = bodyType.insertParameterTypes(0, returnType);
5497 MethodType expected = bodyType.insertParameterTypes(vsize, counterType);
5506 MethodType expected = methodType(counterType, outerList);
5515 MethodType initType = init.type();
5584 * as the result of dynamic conversions performed by {@link MethodHandle#asType(MethodType)}.
5672 MethodType iteratorType;
5683 MethodType nextValType = nextRaw.type().changeReturnType(ttype);
5710 MethodType bodyType = body.type();
5717 MethodType expected = bodyType.insertParameterTypes(0, returnType);
5721 MethodType expected = bodyType.insertParameterTypes(vsize, Object.class);
5732 MethodType itype = iterator.type();
5737 MethodType expected = methodType(itype.returnType(), externalParamList);
5759 MethodType initType = init.type();
5776 MethodType swapType = methodType(mh.type().returnType(), types);
5877 MethodType cleanupType = cleanup.type();