1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2005, 2013 Oracle and/or its affiliates. All rights reserved.
4  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5  *
6  * This code is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License version 2 only, as
8  * published by the Free Software Foundation.  Oracle designates this
9  * particular file as subject to the "Classpath" exception as provided
10  * by Oracle in the LICENSE file that accompanied this code.
11  *
12  * This code is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15  * version 2 for more details (a copy is included in the LICENSE file that
16  * accompanied this code).
17  *
18  * You should have received a copy of the GNU General Public License version
19  * 2 along with this work; if not, write to the Free Software Foundation,
20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
21  *
22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
23  * or visit www.oracle.com if you need additional information or have any
24  * questions.
25  */
26 
27 package sun.reflect.misc;
28 
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public final class ReflectUtil {
32 
ReflectUtil()33     private ReflectUtil() {
34         throw new RuntimeException("Stub!");
35     }
36 
forName(java.lang.String name)37     public static java.lang.Class<?> forName(java.lang.String name)
38             throws java.lang.ClassNotFoundException {
39         throw new RuntimeException("Stub!");
40     }
41 
newInstance(java.lang.Class<?> cls)42     public static java.lang.Object newInstance(java.lang.Class<?> cls)
43             throws java.lang.IllegalAccessException, java.lang.InstantiationException {
44         throw new RuntimeException("Stub!");
45     }
46 
ensureMemberAccess( java.lang.Class<?> currentClass, java.lang.Class<?> memberClass, java.lang.Object target, int modifiers)47     public static void ensureMemberAccess(
48             java.lang.Class<?> currentClass,
49             java.lang.Class<?> memberClass,
50             java.lang.Object target,
51             int modifiers)
52             throws java.lang.IllegalAccessException {
53         throw new RuntimeException("Stub!");
54     }
55 
56     @android.compat.annotation.UnsupportedAppUsage
isSubclassOf(java.lang.Class<?> queryClass, java.lang.Class<?> ofClass)57     private static boolean isSubclassOf(java.lang.Class<?> queryClass, java.lang.Class<?> ofClass) {
58         throw new RuntimeException("Stub!");
59     }
60 
61     @android.compat.annotation.UnsupportedAppUsage
checkPackageAccess(java.lang.Class<?> clazz)62     public static void checkPackageAccess(java.lang.Class<?> clazz) {
63         throw new RuntimeException("Stub!");
64     }
65 
66     @android.compat.annotation.UnsupportedAppUsage
checkPackageAccess(java.lang.String name)67     public static void checkPackageAccess(java.lang.String name) {
68         throw new RuntimeException("Stub!");
69     }
70 
71     @android.compat.annotation.UnsupportedAppUsage
isPackageAccessible(java.lang.Class<?> clazz)72     public static boolean isPackageAccessible(java.lang.Class<?> clazz) {
73         throw new RuntimeException("Stub!");
74     }
75 
isAncestor(java.lang.ClassLoader p, java.lang.ClassLoader cl)76     private static boolean isAncestor(java.lang.ClassLoader p, java.lang.ClassLoader cl) {
77         throw new RuntimeException("Stub!");
78     }
79 
needsPackageAccessCheck( java.lang.ClassLoader from, java.lang.ClassLoader to)80     public static boolean needsPackageAccessCheck(
81             java.lang.ClassLoader from, java.lang.ClassLoader to) {
82         throw new RuntimeException("Stub!");
83     }
84 
checkProxyPackageAccess(java.lang.Class<?> clazz)85     public static void checkProxyPackageAccess(java.lang.Class<?> clazz) {
86         throw new RuntimeException("Stub!");
87     }
88 
checkProxyPackageAccess( java.lang.ClassLoader ccl, java.lang.Class<?>... interfaces)89     public static void checkProxyPackageAccess(
90             java.lang.ClassLoader ccl, java.lang.Class<?>... interfaces) {
91         throw new RuntimeException("Stub!");
92     }
93 
isNonPublicProxyClass(java.lang.Class<?> cls)94     public static boolean isNonPublicProxyClass(java.lang.Class<?> cls) {
95         throw new RuntimeException("Stub!");
96     }
97 }
98