diff options
author | Paul Duffin <paulduffin@google.com> | 2018-10-02 15:43:12 +0100 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2018-10-05 10:41:41 +0100 |
commit | 9997b52451bc70c1f45fb11347b98e7ede2baff3 (patch) | |
tree | 50993499a2fea16a45476c01f6d75c9714f44d29 /ojluni/annotations/mmodule/java/lang/Class.annotated.java | |
parent | e2d42e916e830b4b6a8bc3a4f7018358002ee0b2 (diff) |
Add libcore API needed by framework to core.platform.api.stubs
Tested by adding a dependency from framework to core.platform.api.stubs
and modifying the build to disable link type checking.
Test: make checkbuild
Bug: 113148576
Change-Id: I618ade912f8cb4429b441a610ea16a9aa16c3398
Diffstat (limited to 'ojluni/annotations/mmodule/java/lang/Class.annotated.java')
-rw-r--r-- | ojluni/annotations/mmodule/java/lang/Class.annotated.java | 188 |
1 files changed, 188 insertions, 0 deletions
diff --git a/ojluni/annotations/mmodule/java/lang/Class.annotated.java b/ojluni/annotations/mmodule/java/lang/Class.annotated.java new file mode 100644 index 0000000000..096a52bceb --- /dev/null +++ b/ojluni/annotations/mmodule/java/lang/Class.annotated.java @@ -0,0 +1,188 @@ +/* + * Copyright (C) 2014 The Android Open Source Project + * Copyright (c) 1994, 2014, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + + +package java.lang; + +import java.lang.reflect.Constructor; +import java.lang.reflect.Type; +import java.lang.reflect.GenericDeclaration; +import java.lang.reflect.TypeVariable; +import java.io.Serializable; +import java.lang.reflect.Array; +import java.lang.reflect.Modifier; +import java.lang.reflect.Method; +import java.lang.reflect.Field; +import java.lang.reflect.Member; +import java.io.InputStream; +import java.util.HashMap; + +@SuppressWarnings({"unchecked", "deprecation", "all"}) +public final class Class<T> implements java.io.Serializable, java.lang.reflect.GenericDeclaration, java.lang.reflect.Type, java.lang.reflect.AnnotatedElement { + +Class() { throw new RuntimeException("Stub!"); } + +public java.lang.String toString() { throw new RuntimeException("Stub!"); } + +public java.lang.String toGenericString() { throw new RuntimeException("Stub!"); } + +public static java.lang.Class<?> forName(java.lang.String className) throws java.lang.ClassNotFoundException { throw new RuntimeException("Stub!"); } + +public static java.lang.Class<?> forName(java.lang.String name, boolean initialize, java.lang.ClassLoader loader) throws java.lang.ClassNotFoundException { throw new RuntimeException("Stub!"); } + +public native T newInstance() throws java.lang.IllegalAccessException, java.lang.InstantiationException; + +public boolean isInstance(java.lang.Object obj) { throw new RuntimeException("Stub!"); } + +public boolean isAssignableFrom(java.lang.Class<?> cls) { throw new RuntimeException("Stub!"); } + +public boolean isInterface() { throw new RuntimeException("Stub!"); } + +public boolean isArray() { throw new RuntimeException("Stub!"); } + +public boolean isPrimitive() { throw new RuntimeException("Stub!"); } + +public boolean isFinalizable() { throw new RuntimeException("Stub!"); } + +public boolean isAnnotation() { throw new RuntimeException("Stub!"); } + +public boolean isSynthetic() { throw new RuntimeException("Stub!"); } + +public java.lang.String getName() { throw new RuntimeException("Stub!"); } + +public java.lang.ClassLoader getClassLoader() { throw new RuntimeException("Stub!"); } + +public synchronized java.lang.reflect.TypeVariable<java.lang.Class<T>>[] getTypeParameters() { throw new RuntimeException("Stub!"); } + +public java.lang.Class<? super T> getSuperclass() { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Type getGenericSuperclass() { throw new RuntimeException("Stub!"); } + +public java.lang.Package getPackage() { throw new RuntimeException("Stub!"); } + +public java.lang.String getPackageName$() { throw new RuntimeException("Stub!"); } + +public java.lang.Class<?>[] getInterfaces() { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Type[] getGenericInterfaces() { throw new RuntimeException("Stub!"); } + +public java.lang.Class<?> getComponentType() { throw new RuntimeException("Stub!"); } + +public int getModifiers() { throw new RuntimeException("Stub!"); } + +public java.lang.Object[] getSigners() { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Method getEnclosingMethod() { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Constructor<?> getEnclosingConstructor() { throw new RuntimeException("Stub!"); } + +public native java.lang.Class<?> getDeclaringClass(); + +public native java.lang.Class<?> getEnclosingClass(); + +public java.lang.String getSimpleName() { throw new RuntimeException("Stub!"); } + +public java.lang.String getTypeName() { throw new RuntimeException("Stub!"); } + +public java.lang.String getCanonicalName() { throw new RuntimeException("Stub!"); } + +public native boolean isAnonymousClass(); + +public boolean isLocalClass() { throw new RuntimeException("Stub!"); } + +public boolean isMemberClass() { throw new RuntimeException("Stub!"); } + +public java.lang.Class<?>[] getClasses() { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Field[] getFields() throws java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Method[] getMethods() throws java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Constructor<?>[] getConstructors() throws java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Field getField(java.lang.String name) throws java.lang.NoSuchFieldException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Method getMethod(java.lang.String name, java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Constructor<T> getConstructor(java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public native java.lang.Class<?>[] getDeclaredClasses(); + +public native java.lang.reflect.Field[] getDeclaredFields(); + +@libcore.api.CorePlatformApi +public native java.lang.reflect.Field[] getDeclaredFieldsUnchecked(boolean publicOnly); + +public java.lang.reflect.Method[] getDeclaredMethods() throws java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +@libcore.api.CorePlatformApi +public native java.lang.reflect.Method[] getDeclaredMethodsUnchecked(boolean publicOnly); + +public java.lang.reflect.Constructor<?>[] getDeclaredConstructors() throws java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public native java.lang.reflect.Field getDeclaredField(java.lang.String name) throws java.lang.NoSuchFieldException; + +public java.lang.reflect.Method getDeclaredMethod(java.lang.String name, java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Method getInstanceMethod(java.lang.String name, java.lang.Class<?>[] parameterTypes) throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException { throw new RuntimeException("Stub!"); } + +public java.lang.reflect.Constructor<T> getDeclaredConstructor(java.lang.Class<?>... parameterTypes) throws java.lang.NoSuchMethodException, java.lang.SecurityException { throw new RuntimeException("Stub!"); } + +public java.io.InputStream getResourceAsStream(java.lang.String name) { throw new RuntimeException("Stub!"); } + +public java.net.URL getResource(java.lang.String name) { throw new RuntimeException("Stub!"); } + +public java.security.ProtectionDomain getProtectionDomain() { throw new RuntimeException("Stub!"); } + +public boolean desiredAssertionStatus() { throw new RuntimeException("Stub!"); } + +public boolean isEnum() { throw new RuntimeException("Stub!"); } + +public T[] getEnumConstants() { throw new RuntimeException("Stub!"); } + +public T[] getEnumConstantsShared() { throw new RuntimeException("Stub!"); } + +public T cast(java.lang.Object obj) { throw new RuntimeException("Stub!"); } + +public <U> java.lang.Class<? extends U> asSubclass(java.lang.Class<U> clazz) { throw new RuntimeException("Stub!"); } + +public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationClass) { throw new RuntimeException("Stub!"); } + +public boolean isAnnotationPresent(java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass) { throw new RuntimeException("Stub!"); } + +public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(java.lang.Class<A> annotationClass) { throw new RuntimeException("Stub!"); } + +public java.lang.annotation.Annotation[] getAnnotations() { throw new RuntimeException("Stub!"); } + +public native <A extends java.lang.annotation.Annotation> A getDeclaredAnnotation(java.lang.Class<A> annotationClass); + +public native java.lang.annotation.Annotation[] getDeclaredAnnotations(); + +public boolean isProxy() { throw new RuntimeException("Stub!"); } + +public int getAccessFlags() { throw new RuntimeException("Stub!"); } +} + |