1 /*
2  * Copyright (C) 2014 The Android Open Source Project
3  * Copyright (c) 2013, 2015, 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 java.lang;
28 
29 import android.compat.annotation.UnsupportedAppUsage;
30 
31 @SuppressWarnings({"unchecked", "deprecation", "all"})
32 public abstract class ClassLoader {
33 
ClassLoader(java.lang.Void unused, java.lang.ClassLoader parent)34     private ClassLoader(java.lang.Void unused, java.lang.ClassLoader parent) {
35         throw new RuntimeException("Stub!");
36     }
37 
ClassLoader(java.lang.ClassLoader parent)38     protected ClassLoader(java.lang.ClassLoader parent) {
39         throw new RuntimeException("Stub!");
40     }
41 
ClassLoader()42     protected ClassLoader() {
43         throw new RuntimeException("Stub!");
44     }
45 
createSystemClassLoader()46     private static java.lang.ClassLoader createSystemClassLoader() {
47         throw new RuntimeException("Stub!");
48     }
49 
checkCreateClassLoader()50     private static java.lang.Void checkCreateClassLoader() {
51         throw new RuntimeException("Stub!");
52     }
53 
loadClass(java.lang.String name)54     public java.lang.Class<?> loadClass(java.lang.String name)
55             throws java.lang.ClassNotFoundException {
56         throw new RuntimeException("Stub!");
57     }
58 
loadClass(java.lang.String name, boolean resolve)59     protected java.lang.Class<?> loadClass(java.lang.String name, boolean resolve)
60             throws java.lang.ClassNotFoundException {
61         throw new RuntimeException("Stub!");
62     }
63 
findClass(java.lang.String name)64     protected java.lang.Class<?> findClass(java.lang.String name)
65             throws java.lang.ClassNotFoundException {
66         throw new RuntimeException("Stub!");
67     }
68 
69     @Deprecated
defineClass(byte[] b, int off, int len)70     protected final java.lang.Class<?> defineClass(byte[] b, int off, int len)
71             throws java.lang.ClassFormatError {
72         throw new RuntimeException("Stub!");
73     }
74 
defineClass( java.lang.String name, byte[] b, int off, int len)75     protected final java.lang.Class<?> defineClass(
76             java.lang.String name, byte[] b, int off, int len) throws java.lang.ClassFormatError {
77         throw new RuntimeException("Stub!");
78     }
79 
defineClass( java.lang.String name, byte[] b, int off, int len, java.security.ProtectionDomain protectionDomain)80     protected final java.lang.Class<?> defineClass(
81             java.lang.String name,
82             byte[] b,
83             int off,
84             int len,
85             java.security.ProtectionDomain protectionDomain)
86             throws java.lang.ClassFormatError {
87         throw new RuntimeException("Stub!");
88     }
89 
defineClass( java.lang.String name, java.nio.ByteBuffer b, java.security.ProtectionDomain protectionDomain)90     protected final java.lang.Class<?> defineClass(
91             java.lang.String name,
92             java.nio.ByteBuffer b,
93             java.security.ProtectionDomain protectionDomain)
94             throws java.lang.ClassFormatError {
95         throw new RuntimeException("Stub!");
96     }
97 
resolveClass(java.lang.Class<?> c)98     protected final void resolveClass(java.lang.Class<?> c) {
99         throw new RuntimeException("Stub!");
100     }
101 
findSystemClass(java.lang.String name)102     protected final java.lang.Class<?> findSystemClass(java.lang.String name)
103             throws java.lang.ClassNotFoundException {
104         throw new RuntimeException("Stub!");
105     }
106 
findBootstrapClassOrNull(java.lang.String name)107     private java.lang.Class<?> findBootstrapClassOrNull(java.lang.String name) {
108         throw new RuntimeException("Stub!");
109     }
110 
findLoadedClass(java.lang.String name)111     protected final java.lang.Class<?> findLoadedClass(java.lang.String name) {
112         throw new RuntimeException("Stub!");
113     }
114 
setSigners(java.lang.Class<?> c, java.lang.Object[] signers)115     protected final void setSigners(java.lang.Class<?> c, java.lang.Object[] signers) {
116         throw new RuntimeException("Stub!");
117     }
118 
getResource(java.lang.String name)119     public java.net.URL getResource(java.lang.String name) {
120         throw new RuntimeException("Stub!");
121     }
122 
getResources(java.lang.String name)123     public java.util.Enumeration<java.net.URL> getResources(java.lang.String name)
124             throws java.io.IOException {
125         throw new RuntimeException("Stub!");
126     }
127 
findResource(java.lang.String name)128     protected java.net.URL findResource(java.lang.String name) {
129         throw new RuntimeException("Stub!");
130     }
131 
findResources(java.lang.String name)132     protected java.util.Enumeration<java.net.URL> findResources(java.lang.String name)
133             throws java.io.IOException {
134         throw new RuntimeException("Stub!");
135     }
136 
registerAsParallelCapable()137     protected static boolean registerAsParallelCapable() {
138         throw new RuntimeException("Stub!");
139     }
140 
getSystemResource(java.lang.String name)141     public static java.net.URL getSystemResource(java.lang.String name) {
142         throw new RuntimeException("Stub!");
143     }
144 
getSystemResources(java.lang.String name)145     public static java.util.Enumeration<java.net.URL> getSystemResources(java.lang.String name)
146             throws java.io.IOException {
147         throw new RuntimeException("Stub!");
148     }
149 
getBootstrapResource(java.lang.String name)150     private static java.net.URL getBootstrapResource(java.lang.String name) {
151         throw new RuntimeException("Stub!");
152     }
153 
getBootstrapResources(java.lang.String name)154     private static java.util.Enumeration<java.net.URL> getBootstrapResources(java.lang.String name)
155             throws java.io.IOException {
156         throw new RuntimeException("Stub!");
157     }
158 
getResourceAsStream(java.lang.String name)159     public java.io.InputStream getResourceAsStream(java.lang.String name) {
160         throw new RuntimeException("Stub!");
161     }
162 
getSystemResourceAsStream(java.lang.String name)163     public static java.io.InputStream getSystemResourceAsStream(java.lang.String name) {
164         throw new RuntimeException("Stub!");
165     }
166 
getParent()167     public final java.lang.ClassLoader getParent() {
168         throw new RuntimeException("Stub!");
169     }
170 
getSystemClassLoader()171     public static java.lang.ClassLoader getSystemClassLoader() {
172         throw new RuntimeException("Stub!");
173     }
174 
getClassLoader(java.lang.Class<?> caller)175     static java.lang.ClassLoader getClassLoader(java.lang.Class<?> caller) {
176         throw new RuntimeException("Stub!");
177     }
178 
definePackage( java.lang.String name, java.lang.String specTitle, java.lang.String specVersion, java.lang.String specVendor, java.lang.String implTitle, java.lang.String implVersion, java.lang.String implVendor, java.net.URL sealBase)179     protected java.lang.Package definePackage(
180             java.lang.String name,
181             java.lang.String specTitle,
182             java.lang.String specVersion,
183             java.lang.String specVendor,
184             java.lang.String implTitle,
185             java.lang.String implVersion,
186             java.lang.String implVendor,
187             java.net.URL sealBase)
188             throws java.lang.IllegalArgumentException {
189         throw new RuntimeException("Stub!");
190     }
191 
getPackage(java.lang.String name)192     protected java.lang.Package getPackage(java.lang.String name) {
193         throw new RuntimeException("Stub!");
194     }
195 
getPackages()196     protected java.lang.Package[] getPackages() {
197         throw new RuntimeException("Stub!");
198     }
199 
findLibrary(java.lang.String libname)200     protected java.lang.String findLibrary(java.lang.String libname) {
201         throw new RuntimeException("Stub!");
202     }
203 
setDefaultAssertionStatus(boolean enabled)204     public void setDefaultAssertionStatus(boolean enabled) {
205         throw new RuntimeException("Stub!");
206     }
207 
setPackageAssertionStatus(java.lang.String packageName, boolean enabled)208     public void setPackageAssertionStatus(java.lang.String packageName, boolean enabled) {
209         throw new RuntimeException("Stub!");
210     }
211 
setClassAssertionStatus(java.lang.String className, boolean enabled)212     public void setClassAssertionStatus(java.lang.String className, boolean enabled) {
213         throw new RuntimeException("Stub!");
214     }
215 
clearAssertionStatus()216     public void clearAssertionStatus() {
217         throw new RuntimeException("Stub!");
218     }
219 
220     private transient long allocator;
221 
222     private transient long classTable;
223 
224     private final java.util.HashMap<java.lang.String, java.lang.Package> packages;
225 
226     {
227         packages = null;
228     }
229 
230     @UnsupportedAppUsage
231     private final java.lang.ClassLoader parent;
232 
233     {
234         parent = null;
235     }
236 
237     public final java.util.Map<java.util.List<java.lang.Class<?>>, java.lang.Class<?>> proxyCache;
238 
239     {
240         proxyCache = null;
241     }
242 
243     @SuppressWarnings({"unchecked", "deprecation", "all"})
244     private static class SystemClassLoader {
245 
SystemClassLoader()246         private SystemClassLoader() {
247             throw new RuntimeException("Stub!");
248         }
249 
250         public static java.lang.ClassLoader loader;
251     }
252 }
253