Lines Matching refs:Class

55  *     Class proxyClass = Proxy.getProxyClass(
56 * Foo.class.getClassLoader(), new Class[] { Foo.class });
58 * getConstructor(new Class[] { InvocationHandler.class }).
64 * new Class[] { Foo.class },
114 * {@code Class} object will return an array containing the same
116 * {@code getMethods} on its {@code Class} object will return
237 private final static Class[] constructorParams =
252 private static Map<Class<?>, Void> proxyClasses =
253 Collections.synchronizedMap(new WeakHashMap<Class<?>, Void>());
301 static boolean needsNewInstanceCheck(Class<?> proxyClass) {
307 for (Class<?> intf : proxyClass.getInterfaces()) {
325 Class<?> proxyClass = this.getClass();
337 * Returns the {@code java.lang.Class} object for a proxy class
350 * <li>All of the {@code Class} objects in the
355 * refer to identical {@code Class} objects.
362 * Class.forName(i.getName(), false, cl) == i
411 public static Class<?> getProxyClass(ClassLoader loader,
412 Class<?>... interfaces)
427 * Class.forName (VM will invoke ClassLoader.checkPackageAccess):
433 * as in Class.getConstructor.
441 private static void checkProxyAccess(Class<?> caller,
443 Class<?>... interfaces)
461 private static Class<?> getProxyClass0(ClassLoader loader,
462 Class<?>... interfaces) {
467 Class<?> proxyClass = null;
473 Set<Class<?>> interfaceSet = new HashSet<>();
478 * interface to the same Class object.
481 Class<?> interfaceClass = null;
483 interfaceClass = Class.forName(interfaceName, false, loader);
492 * Verify that the Class object actually represents an
514 * keys in the proxy class cache (instead of their Class
548 * or a weak reference to a Class object, if a proxy class for
562 proxyClass = (Class<?>) ((Reference) value).get();
665 cache.put(key, new WeakReference<Class<?>>(proxyClass));
681 * getConstructor(new Class[] { InvocationHandler.class }).
706 Class<?>[] interfaces,
722 Class<?> cl = getProxyClass0(loader, interfaces);
775 public static boolean isProxyClass(Class<?> cl) {
805 private static native Class defineClass0(ClassLoader loader, String name,