Lines Matching refs:intfc
112 * @param intfc the desired type of the wrapper, a single-method interface
115 * @throws IllegalArgumentException if the {@code intfc} is not a
143 <T> T asInterfaceInstance(final Class<T> intfc, final MethodHandle target) {
144 if (!intfc.isInterface() || !Modifier.isPublic(intfc.getModifiers()))
145 throw new IllegalArgumentException("not a public interface: "+intfc.getName());
150 ReflectUtil.checkProxyPackageAccess(ccl, intfc);
155 ClassLoader proxyLoader = intfc.getClassLoader();
160 final Method[] methods = getSingleNameMethods(intfc);
162 throw new IllegalArgumentException("not a single-method interface: "+intfc.getName());
174 if ((Object)name == "getWrapperInstanceType") return intfc;
199 new Class<?>[]{ intfc, WrapperInstance.class },
205 new Class<?>[]{ intfc, WrapperInstance.class },
208 return intfc.cast(proxy);
302 Method[] getSingleNameMethods(Class<?> intfc) {
305 for (Method m : intfc.getMethods()) {