1 /* 2 * Copyright (c) 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 final class Parameter implements java.lang.reflect.AnnotatedElement { 32 33 @UnsupportedAppUsage(maxTargetSdk = 30, trackingBug = 170729553) Parameter( java.lang.String name, int modifiers, java.lang.reflect.Executable executable, int index)34 Parameter( 35 java.lang.String name, 36 int modifiers, 37 java.lang.reflect.Executable executable, 38 int index) { 39 throw new RuntimeException("Stub!"); 40 } 41 equals(java.lang.Object obj)42 public boolean equals(java.lang.Object obj) { 43 throw new RuntimeException("Stub!"); 44 } 45 hashCode()46 public int hashCode() { 47 throw new RuntimeException("Stub!"); 48 } 49 isNamePresent()50 public boolean isNamePresent() { 51 throw new RuntimeException("Stub!"); 52 } 53 toString()54 public java.lang.String toString() { 55 throw new RuntimeException("Stub!"); 56 } 57 getDeclaringExecutable()58 public java.lang.reflect.Executable getDeclaringExecutable() { 59 throw new RuntimeException("Stub!"); 60 } 61 getModifiers()62 public int getModifiers() { 63 throw new RuntimeException("Stub!"); 64 } 65 getName()66 public java.lang.String getName() { 67 throw new RuntimeException("Stub!"); 68 } 69 getRealName()70 java.lang.String getRealName() { 71 throw new RuntimeException("Stub!"); 72 } 73 getParameterizedType()74 public java.lang.reflect.Type getParameterizedType() { 75 throw new RuntimeException("Stub!"); 76 } 77 getType()78 public java.lang.Class<?> getType() { 79 throw new RuntimeException("Stub!"); 80 } 81 isImplicit()82 public boolean isImplicit() { 83 throw new RuntimeException("Stub!"); 84 } 85 isSynthetic()86 public boolean isSynthetic() { 87 throw new RuntimeException("Stub!"); 88 } 89 isVarArgs()90 public boolean isVarArgs() { 91 throw new RuntimeException("Stub!"); 92 } 93 getAnnotation( java.lang.Class<T> annotationClass)94 public <T extends java.lang.annotation.Annotation> T getAnnotation( 95 java.lang.Class<T> annotationClass) { 96 throw new RuntimeException("Stub!"); 97 } 98 getAnnotationNative( java.lang.reflect.Executable executable, int parameterIndex, java.lang.Class<A> annotationType)99 private static native <A extends java.lang.annotation.Annotation> A getAnnotationNative( 100 java.lang.reflect.Executable executable, 101 int parameterIndex, 102 java.lang.Class<A> annotationType); 103 getAnnotationsByType( java.lang.Class<T> annotationClass)104 public <T extends java.lang.annotation.Annotation> T[] getAnnotationsByType( 105 java.lang.Class<T> annotationClass) { 106 throw new RuntimeException("Stub!"); 107 } 108 getDeclaredAnnotations()109 public java.lang.annotation.Annotation[] getDeclaredAnnotations() { 110 throw new RuntimeException("Stub!"); 111 } 112 getDeclaredAnnotation( java.lang.Class<T> annotationClass)113 public <T extends java.lang.annotation.Annotation> T getDeclaredAnnotation( 114 java.lang.Class<T> annotationClass) { 115 throw new RuntimeException("Stub!"); 116 } 117 getDeclaredAnnotationsByType( java.lang.Class<T> annotationClass)118 public <T extends java.lang.annotation.Annotation> T[] getDeclaredAnnotationsByType( 119 java.lang.Class<T> annotationClass) { 120 throw new RuntimeException("Stub!"); 121 } 122 getAnnotations()123 public java.lang.annotation.Annotation[] getAnnotations() { 124 throw new RuntimeException("Stub!"); 125 } 126 127 private final java.lang.reflect.Executable executable; 128 129 { 130 executable = null; 131 } 132 133 private final int index; 134 135 { 136 index = 0; 137 } 138 139 private final int modifiers; 140 141 { 142 modifiers = 0; 143 } 144 145 private final java.lang.String name; 146 147 { 148 name = null; 149 } 150 151 private transient volatile java.lang.Class<?> parameterClassCache; 152 153 private transient volatile java.lang.reflect.Type parameterTypeCache; 154 } 155