Home | History | Annotate | Download | only in invoke

Lines Matching defs:methodType

761 import static java.lang.invoke.MethodType.*;
764 "asList", methodType(List.class, Object[].class));
781 MethodHandle findStatic(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
792 private MethodHandle findVirtualForMH(String name, MethodType type) {
793 // these names require special lookups because of the implicit MethodType argument
801 private MethodHandle findVirtualForVH(String name, MethodType type) {
812 MethodType methodType) {
813 MethodHandle mh = new MethodHandleImpl(method.getArtMethod(), handleKind, methodType);
854 import static java.lang.invoke.MethodType.*;
857 "concat", methodType(String.class, String.class));
859 "hashCode", methodType(int.class));
861 "hashCode", methodType(int.class));
867 "subSequence", methodType(CharSequence.class, int.class, int.class));
870 MethodType MT_newString = methodType(void.class); //()V for new String()
892 public MethodHandle findVirtual(Class<?> refc, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
931 MethodType handleType = type.insertParameterTypes(0, refc);
954 import static java.lang.invoke.MethodType.*;
957 ArrayList.class, methodType(void.class, Collection.class));
964 ProcessBuilder.class, methodType(void.class, String[].class));
980 public MethodHandle findConstructor(Class<?> refc, MethodType type) throws NoSuchMethodException, IllegalAccessException {
998 MethodType constructorType =
999 MethodType.methodType(refc, constructor.getParameterTypes());
1010 MethodType initType = initMethodType(constructorType);
1022 private static MethodType initMethodType(MethodType constructorType) {
1023 // Returns a MethodType appropriate for class <init>
1030 // the MethodType for <init>.
1036 // Set the return type for the <init> MethodType to be void.
1037 return MethodType.methodType(void.class, initPtypes);
1068 import static java.lang.invoke.MethodType.*;
1077 .findConstructor(Listie.class, methodType(void.class));
1080 Listie.class, "<init>", methodType(void.class), Listie.class));
1084 ArrayList.class, "toString" , methodType(String.class), Listie.class);
1086 Listie.class, "toString" , methodType(String.class), Listie.class);
1088 Object.class, "toString" , methodType(String.class), Listie.class);
1093 String.class, "toString", methodType(String.class), Listie.class));
1112 public MethodHandle findSpecial(Class<?> refc, String name, MethodType type,
1146 private MethodHandle findSpecial(Method method, MethodType type,
1167 MethodType handleType = type.insertParameterTypes(0, refc);
1179 MethodType handleType = type.insertParameterTypes(0, specialCaller);
1223 final MethodType methodType;
1226 methodType = MethodType.methodType(type);
1229 methodType = MethodType.methodType(void.class, type);
1232 methodType = MethodType.methodType(type, refc);
1235 methodType = MethodType.methodType(void.class, refc, type);
1240 return new MethodHandleImpl(field.getArtField(), kind, methodType);
1532 import static java.lang.invoke.MethodType.*;
1536 MethodType mt1 = mh1.type();
1559 public MethodHandle bind(Object receiver, String name, MethodType type) throws NoSuchMethodException, IllegalAccessException {
1562 MethodType adapterType = adapter.type();
1602 MethodType methodType = MethodType.methodType(m.getReturnType(),
1612 return createMethodHandle(m, MethodHandle.INVOKE_STATIC, methodType);
1614 methodType = methodType.insertParameterTypes(0, m.getDeclaringClass());
1615 return createMethodHandle(m, MethodHandle.INVOKE_VIRTUAL, methodType);
1661 final MethodType methodType = MethodType.methodType(m.getReturnType(),
1663 return findSpecial(m, methodType, m.getDeclaringClass() /* refc */, specialCaller);
1959 private void checkReturnType(Method method, MethodType methodType)
1961 if (method.getReturnType() != methodType.rtype()) {
1962 throw new NoSuchMethodException(method.getName() + methodType);
2028 MethodType.methodType(componentType, arrayClass, int.class));
2064 MethodType.methodType(void.class, arrayClass, int.class, componentType));
2374 MethodHandle spreadInvoker(MethodType type, int leadingArgCount) {
2420 MethodHandle exactInvoker(MethodType type) {
2442 * A {@linkplain MethodType#genericMethodType general method type} is one which
2459 MethodHandle invoker(MethodType type) {
2465 MethodType type,
2474 MethodType methodType = type.insertParameterTypes(0, VarHandle.class);
2477 return new MethodHandleImpl(method.getArtMethod(), kind, methodType);
2497 MethodHandle varHandleExactInvoker(VarHandle.AccessMode accessMode, MethodType type) {
2527 MethodHandle varHandleInvoker(VarHandle.AccessMode accessMode, MethodType type) {
2534 // MethodHandle basicInvoker(MethodType type) {
2585 MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) {
2588 MethodType oldType = target.type();
2597 private static void explicitCastArgumentsChecks(MethodHandle target, MethodType newType) {
2635 import static java.lang.invoke.MethodType.*;
2637 MethodType intfn1 = methodType(int.class, int.class);
2638 MethodType intfn2 = methodType(int.class, int.class, int.class);
2663 MethodHandle permuteArguments(MethodHandle target, MethodType newType, int... reorder) {
2665 MethodType oldType = target.type();
2674 private static boolean permuteArgumentChecks(int[] reorder, MethodType newType, MethodType oldType) {
2740 MethodType.methodType(type, type));
2828 MethodType oldType = target.type();
2854 import static java.lang.invoke.MethodType.*;
2857 "concat", methodType(String.class, String.class));
2859 MethodType bigType = cat.type().insertParameterTypes(0, int.class, String.class);
2883 MethodType oldType = target.type(); // get NPE
2886 MethodType newType = oldType.insertParameterTypes(pos, valueTypes);
2899 private static int dropArgumentChecks(MethodType oldType, int pos, List<Class<?>> valueTypes) {
2901 MethodType.checkSlotCount(dropped);
2927 import static java.lang.invoke.MethodType.*;
2930 "concat", methodType(String.class, String.class));
2993 import static java.lang.invoke.MethodType.*;
2996 "concat", methodType(String.class, String.class));
2998 "toUpperCase", methodType(String.class));
3040 MethodType targetType = target.type();
3047 MethodType targetType = target.type();
3048 MethodType filterType = filter.type();
3082 import static java.lang.invoke.MethodType.*;
3085 .findStatic(Arrays.class, "deepToString", methodType(String.class, Object[].class));
3162 MethodType newType = collectArgumentsChecks(target, pos, filter);
3166 private static MethodType collectArgumentsChecks(MethodHandle target, int pos, MethodHandle filter) throws RuntimeException {
3167 MethodType targetType = target.type();
3168 MethodType filterType = filter.type();
3197 import static java.lang.invoke.MethodType.*;
3200 "concat", methodType(String.class, String.class));
3202 "length", methodType(int.class));
3239 MethodType targetType = target.type();
3240 MethodType filterType = filter.type();
3246 private static void filterReturnValueChecks(MethodType targetType, MethodType filterType) throws RuntimeException {
3291 import static java.lang.invoke.MethodType.*;
3294 "println", methodType(void.class, String.class))
3297 "concat", methodType(String.class, String.class));
3334 MethodType targetType = target.type();
3335 MethodType combinerType = combiner.type();
3341 private static Class<?> foldArgumentChecks(int foldPos, MethodType targetType, MethodType combinerType) {
3394 MethodType gtype = test.type();
3395 MethodType ttype = target.type();
3396 MethodType ftype = fallback.type();
3414 static RuntimeException misMatchedTypes(String what, MethodType t1, MethodType t2) {
3465 MethodType ttype = target.type();
3466 MethodType htype = handler.type();