Lines Matching defs:newType
857 boolean isViewableAs(MethodType newType, boolean keepInterfaces) {
858 if (!VerifyType.isNullConversion(returnType(), newType.returnType(), keepInterfaces))
860 if (form == newType.form && form.erasedType == this)
862 if (ptypes == newType.ptypes)
865 if (argc != newType.parameterCount())
868 if (!VerifyType.isNullConversion(newType.parameterType(i), parameterType(i), keepInterfaces))
874 boolean isConvertibleTo(MethodType newType) {
876 MethodTypeForm newForm = newType.form();
880 if (!canConvert(returnType(), newType.returnType()))
882 Class<?>[] srcTypes = newType.ptypes;
895 (newForm.primitiveParameterCount() == 0 && newForm.erasedType == newType)) {
908 boolean explicitCastEquivalentToAsType(MethodType newType) {
909 if (this == newType) return true;
910 if (!explicitCastEquivalentToAsType(rtype, newType.rtype)) {
913 Class<?>[] srcTypes = newType.ptypes;