1 /*
2  * Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * This code is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 only, as
7  * published by the Free Software Foundation.  Oracle designates this
8  * particular file as subject to the "Classpath" exception as provided
9  * by Oracle in the LICENSE file that accompanied this code.
10  *
11  * This code is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
14  * version 2 for more details (a copy is included in the LICENSE file that
15  * accompanied this code).
16  *
17  * You should have received a copy of the GNU General Public License version
18  * 2 along with this work; if not, write to the Free Software Foundation,
19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20  *
21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22  * or visit www.oracle.com if you need additional information or have any
23  * questions.
24  */
25 
26 package java.lang.reflect;
27 
28 import android.compat.annotation.UnsupportedAppUsage;
29 
30 @SuppressWarnings({"unchecked", "deprecation", "all"})
31 public abstract class Executable extends java.lang.reflect.AccessibleObject
32         implements java.lang.reflect.Member, java.lang.reflect.GenericDeclaration {
33 
Executable()34     Executable() {
35         throw new RuntimeException("Stub!");
36     }
37 
hasGenericInformation()38     abstract boolean hasGenericInformation();
39 
equalParamTypes(java.lang.Class<?>[] params1, java.lang.Class<?>[] params2)40     boolean equalParamTypes(java.lang.Class<?>[] params1, java.lang.Class<?>[] params2) {
41         throw new RuntimeException("Stub!");
42     }
43 
separateWithCommas(java.lang.Class<?>[] types, java.lang.StringBuilder sb)44     void separateWithCommas(java.lang.Class<?>[] types, java.lang.StringBuilder sb) {
45         throw new RuntimeException("Stub!");
46     }
47 
printModifiersIfNonzero(java.lang.StringBuilder sb, int mask, boolean isDefault)48     void printModifiersIfNonzero(java.lang.StringBuilder sb, int mask, boolean isDefault) {
49         throw new RuntimeException("Stub!");
50     }
51 
sharedToString( int modifierMask, boolean isDefault, java.lang.Class<?>[] parameterTypes, java.lang.Class<?>[] exceptionTypes)52     java.lang.String sharedToString(
53             int modifierMask,
54             boolean isDefault,
55             java.lang.Class<?>[] parameterTypes,
56             java.lang.Class<?>[] exceptionTypes) {
57         throw new RuntimeException("Stub!");
58     }
59 
specificToStringHeader(java.lang.StringBuilder sb)60     abstract void specificToStringHeader(java.lang.StringBuilder sb);
61 
sharedToGenericString(int modifierMask, boolean isDefault)62     java.lang.String sharedToGenericString(int modifierMask, boolean isDefault) {
63         throw new RuntimeException("Stub!");
64     }
65 
specificToGenericStringHeader(java.lang.StringBuilder sb)66     abstract void specificToGenericStringHeader(java.lang.StringBuilder sb);
67 
getDeclaringClass()68     public abstract java.lang.Class<?> getDeclaringClass();
69 
getName()70     public abstract java.lang.String getName();
71 
getModifiers()72     public abstract int getModifiers();
73 
getTypeParameters()74     public abstract java.lang.reflect.TypeVariable<?>[] getTypeParameters();
75 
getParameterTypes()76     public abstract java.lang.Class<?>[] getParameterTypes();
77 
getParameterCount()78     public int getParameterCount() {
79         throw new RuntimeException("Stub!");
80     }
81 
getGenericParameterTypes()82     public java.lang.reflect.Type[] getGenericParameterTypes() {
83         throw new RuntimeException("Stub!");
84     }
85 
getAllGenericParameterTypes()86     java.lang.reflect.Type[] getAllGenericParameterTypes() {
87         throw new RuntimeException("Stub!");
88     }
89 
getParameters()90     public java.lang.reflect.Parameter[] getParameters() {
91         throw new RuntimeException("Stub!");
92     }
93 
synthesizeAllParams()94     private java.lang.reflect.Parameter[] synthesizeAllParams() {
95         throw new RuntimeException("Stub!");
96     }
97 
verifyParameters(java.lang.reflect.Parameter[] parameters)98     private void verifyParameters(java.lang.reflect.Parameter[] parameters) {
99         throw new RuntimeException("Stub!");
100     }
101 
privateGetParameters()102     private java.lang.reflect.Parameter[] privateGetParameters() {
103         throw new RuntimeException("Stub!");
104     }
105 
hasRealParameterData()106     boolean hasRealParameterData() {
107         throw new RuntimeException("Stub!");
108     }
109 
getParameters0()110     private native java.lang.reflect.Parameter[] getParameters0();
111 
getExceptionTypes()112     public abstract java.lang.Class<?>[] getExceptionTypes();
113 
getGenericExceptionTypes()114     public java.lang.reflect.Type[] getGenericExceptionTypes() {
115         throw new RuntimeException("Stub!");
116     }
117 
toGenericString()118     public abstract java.lang.String toGenericString();
119 
isVarArgs()120     public boolean isVarArgs() {
121         throw new RuntimeException("Stub!");
122     }
123 
isSynthetic()124     public boolean isSynthetic() {
125         throw new RuntimeException("Stub!");
126     }
127 
getParameterAnnotations()128     public abstract java.lang.annotation.Annotation[][] getParameterAnnotations();
129 
getAnnotation( java.lang.Class<T> annotationClass)130     public <T extends java.lang.annotation.Annotation> T getAnnotation(
131             java.lang.Class<T> annotationClass) {
132         throw new RuntimeException("Stub!");
133     }
134 
getAnnotationNative( java.lang.Class<T> annotationClass)135     private native <T extends java.lang.annotation.Annotation> T getAnnotationNative(
136             java.lang.Class<T> annotationClass);
137 
getAnnotationsByType( java.lang.Class<T> annotationClass)138     public <T extends java.lang.annotation.Annotation> T[] getAnnotationsByType(
139             java.lang.Class<T> annotationClass) {
140         throw new RuntimeException("Stub!");
141     }
142 
getDeclaredAnnotations()143     public java.lang.annotation.Annotation[] getDeclaredAnnotations() {
144         throw new RuntimeException("Stub!");
145     }
146 
getDeclaredAnnotationsNative()147     private native java.lang.annotation.Annotation[] getDeclaredAnnotationsNative();
148 
fixMethodFlags(int flags)149     private static int fixMethodFlags(int flags) {
150         throw new RuntimeException("Stub!");
151     }
152 
getModifiersInternal()153     final int getModifiersInternal() {
154         throw new RuntimeException("Stub!");
155     }
156 
getDeclaringClassInternal()157     final java.lang.Class<?> getDeclaringClassInternal() {
158         throw new RuntimeException("Stub!");
159     }
160 
getParameterTypesInternal()161     final native java.lang.Class<?>[] getParameterTypesInternal();
162 
getParameterCountInternal()163     final native int getParameterCountInternal();
164 
isAnnotationPresent( java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)165     public final boolean isAnnotationPresent(
166             java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) {
167         throw new RuntimeException("Stub!");
168     }
169 
isAnnotationPresentNative( java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)170     private native boolean isAnnotationPresentNative(
171             java.lang.Class<? extends java.lang.annotation.Annotation> annotationType);
172 
getParameterAnnotationsInternal()173     final java.lang.annotation.Annotation[][] getParameterAnnotationsInternal() {
174         throw new RuntimeException("Stub!");
175     }
176 
getParameterAnnotationsNative()177     private native java.lang.annotation.Annotation[][] getParameterAnnotationsNative();
178 
getAccessFlags()179     public final int getAccessFlags() {
180         throw new RuntimeException("Stub!");
181     }
182 
getArtMethod()183     public final long getArtMethod() {
184         throw new RuntimeException("Stub!");
185     }
186 
hasGenericInformationInternal()187     final boolean hasGenericInformationInternal() {
188         throw new RuntimeException("Stub!");
189     }
190 
getMethodOrConstructorGenericInfoInternal()191     final java.lang.reflect.Executable.GenericInfo getMethodOrConstructorGenericInfoInternal() {
192         throw new RuntimeException("Stub!");
193     }
194 
getSignatureAttribute()195     private java.lang.String getSignatureAttribute() {
196         throw new RuntimeException("Stub!");
197     }
198 
getSignatureAnnotation()199     private native java.lang.String[] getSignatureAnnotation();
200 
equalNameAndParametersInternal(java.lang.reflect.Method m)201     final boolean equalNameAndParametersInternal(java.lang.reflect.Method m) {
202         throw new RuntimeException("Stub!");
203     }
204 
compareMethodParametersInternal(java.lang.reflect.Method meth)205     native int compareMethodParametersInternal(java.lang.reflect.Method meth);
206 
getMethodNameInternal()207     final native java.lang.String getMethodNameInternal();
208 
getMethodReturnTypeInternal()209     final native java.lang.Class<?> getMethodReturnTypeInternal();
210 
isDefaultMethodInternal()211     final boolean isDefaultMethodInternal() {
212         throw new RuntimeException("Stub!");
213     }
214 
isBridgeMethodInternal()215     final boolean isBridgeMethodInternal() {
216         throw new RuntimeException("Stub!");
217     }
218 
219     private int accessFlags;
220 
221     @UnsupportedAppUsage
222     private long artMethod;
223 
224     private java.lang.Class<?> declaringClass;
225 
226     private java.lang.Class<?> declaringClassOfOverriddenMethod;
227 
228     private int dexMethodIndex;
229 
230     private transient volatile boolean hasRealParameterData;
231 
232     private transient volatile java.lang.reflect.Parameter[] parameters;
233 
234     @SuppressWarnings({"unchecked", "deprecation", "all"})
235     static final class GenericInfo {
236 
GenericInfo( libcore.reflect.ListOfTypes exceptions, libcore.reflect.ListOfTypes parameters, java.lang.reflect.Type ret, java.lang.reflect.TypeVariable<?>[] formal)237         GenericInfo(
238                 libcore.reflect.ListOfTypes exceptions,
239                 libcore.reflect.ListOfTypes parameters,
240                 java.lang.reflect.Type ret,
241                 java.lang.reflect.TypeVariable<?>[] formal) {
242             throw new RuntimeException("Stub!");
243         }
244 
245         final java.lang.reflect.TypeVariable<?>[] formalTypeParameters;
246 
247         {
248             formalTypeParameters = new java.lang.reflect.TypeVariable[0];
249         }
250 
251         final libcore.reflect.ListOfTypes genericExceptionTypes;
252 
253         {
254             genericExceptionTypes = null;
255         }
256 
257         final libcore.reflect.ListOfTypes genericParameterTypes;
258 
259         {
260             genericParameterTypes = null;
261         }
262 
263         final java.lang.reflect.Type genericReturnType;
264 
265         {
266             genericReturnType = null;
267         }
268     }
269 }
270