Searched defs:newType (Results 1 - 6 of 6) sorted by relevance
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
H A D | MethodHandle.java | 40 public MethodHandle asType(MethodType newType) { return null; } argument
|
H A D | MethodHandles.java | 109 MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) { return null; } argument 112 MethodHandle permuteArguments(MethodHandle target, MethodType newType, int... reorder) { return null; } argument
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
H A D | MethodHandle.java | 711 * <em>T0</em>{@code =newType.parameterType(i)} and <em>T1</em>{@code =this.type().parameterType(i)}. 713 * <em>T0</em>{@code =this.type().returnType()} and <em>T1</em>{@code =newType.returnType()}. 762 * @param newType the expected type of the new method handle 766 * @throws NullPointerException if {@code newType} is a null reference 770 public MethodHandle asType(MethodType newType) { argument 773 if (newType == type) { 777 if (!type.isConvertibleTo(newType)) { 778 throw new WrongMethodTypeException("cannot convert " + this + " to " + newType); 782 mh.nominalType = newType; 1356 // /*non-public*/ MethodHandle viewAsType(MethodType newType, boolea [all...] |
H A D | MethodType.java | 812 // boolean isViewableAs(MethodType newType, boolean keepInterfaces); 813 // boolean parametersAreViewableAs(MethodType newType, boolean keepInterfaces); 815 boolean isConvertibleTo(MethodType newType) { argument 817 MethodTypeForm newForm = newType.form(); 821 if (!canConvert(returnType(), newType.returnType())) 823 Class<?>[] srcTypes = newType.ptypes; 836 (newForm.primitiveParameterCount() == 0 && newForm.erasedType == newType)) { 849 boolean explicitCastEquivalentToAsType(MethodType newType) { argument 850 if (this == newType) return true; 851 if (!explicitCastEquivalentToAsType(rtype, newType [all...] |
H A D | MethodHandles.java | 2576 * @param newType the expected type of the new method handle 2585 MethodHandle explicitCastArguments(MethodHandle target, MethodType newType) { argument 2586 explicitCastArgumentsChecks(target, newType); 2589 if (oldType == newType) return target; 2590 if (oldType.explicitCastEquivalentToAsType(newType)) { 2591 return target.asFixedArity().asType(newType); 2594 return new Transformers.ExplicitCastArguments(target, newType); 2597 private static void explicitCastArgumentsChecks(MethodHandle target, MethodType newType) { argument 2598 if (target.type().parameterCount() != newType.parameterCount()) { 2599 throw new WrongMethodTypeException("cannot explicitly cast " + target + " to " + newType); 2663 permuteArguments(MethodHandle target, MethodType newType, int... reorder) argument 2674 permuteArgumentChecks(int[] reorder, MethodType newType, MethodType oldType) argument [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Arrays.java | 3120 * The resulting array is of the class <tt>newType</tt>. 3126 * @param newType the class of the copy to be returned 3133 * an array of class <tt>newType</tt> 3136 public static <T,U> T[] copyOf(U[] original, int newLength, Class<? extends T[]> newType) { argument 3138 T[] copy = ((Object)newType == (Object)Object[].class) 3140 : (T[]) Array.newInstance(newType.getComponentType(), newLength); 3385 * The resulting array is of the class <tt>newType</tt>. 3393 * @param newType the class of the copy to be returned 3402 * an array of class <tt>newType</tt>. 3405 public static <T,U> T[] copyOfRange(U[] original, int from, int to, Class<? extends T[]> newType) { argument [all...] |
Completed in 813 milliseconds