1 /* 2 * Copyright (c) 2008, 2017, 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.invoke; 27 28 import android.compat.annotation.UnsupportedAppUsage; 29 30 @SuppressWarnings({"unchecked", "deprecation", "all"}) 31 public class MethodHandles { 32 MethodHandles()33 private MethodHandles() { 34 throw new RuntimeException("Stub!"); 35 } 36 lookup()37 public static java.lang.invoke.MethodHandles.Lookup lookup() { 38 throw new RuntimeException("Stub!"); 39 } 40 publicLookup()41 public static java.lang.invoke.MethodHandles.Lookup publicLookup() { 42 throw new RuntimeException("Stub!"); 43 } 44 reflectAs( java.lang.Class<T> expected, java.lang.invoke.MethodHandle target)45 public static <T extends java.lang.reflect.Member> T reflectAs( 46 java.lang.Class<T> expected, java.lang.invoke.MethodHandle target) { 47 throw new RuntimeException("Stub!"); 48 } 49 getMethodHandleImpl( java.lang.invoke.MethodHandle target)50 private static java.lang.invoke.MethodHandleImpl getMethodHandleImpl( 51 java.lang.invoke.MethodHandle target) { 52 throw new RuntimeException("Stub!"); 53 } 54 checkClassIsArray(java.lang.Class<?> c)55 private static void checkClassIsArray(java.lang.Class<?> c) { 56 throw new RuntimeException("Stub!"); 57 } 58 checkTypeIsViewable(java.lang.Class<?> componentType)59 private static void checkTypeIsViewable(java.lang.Class<?> componentType) { 60 throw new RuntimeException("Stub!"); 61 } 62 arrayElementGetter(java.lang.Class<?> arrayClass)63 public static java.lang.invoke.MethodHandle arrayElementGetter(java.lang.Class<?> arrayClass) 64 throws java.lang.IllegalArgumentException { 65 throw new RuntimeException("Stub!"); 66 } 67 arrayElementGetter(byte[] array, int i)68 public static byte arrayElementGetter(byte[] array, int i) { 69 throw new RuntimeException("Stub!"); 70 } 71 arrayElementGetter(boolean[] array, int i)72 public static boolean arrayElementGetter(boolean[] array, int i) { 73 throw new RuntimeException("Stub!"); 74 } 75 arrayElementGetter(char[] array, int i)76 public static char arrayElementGetter(char[] array, int i) { 77 throw new RuntimeException("Stub!"); 78 } 79 arrayElementGetter(short[] array, int i)80 public static short arrayElementGetter(short[] array, int i) { 81 throw new RuntimeException("Stub!"); 82 } 83 arrayElementGetter(int[] array, int i)84 public static int arrayElementGetter(int[] array, int i) { 85 throw new RuntimeException("Stub!"); 86 } 87 arrayElementGetter(long[] array, int i)88 public static long arrayElementGetter(long[] array, int i) { 89 throw new RuntimeException("Stub!"); 90 } 91 arrayElementGetter(float[] array, int i)92 public static float arrayElementGetter(float[] array, int i) { 93 throw new RuntimeException("Stub!"); 94 } 95 arrayElementGetter(double[] array, int i)96 public static double arrayElementGetter(double[] array, int i) { 97 throw new RuntimeException("Stub!"); 98 } 99 arrayElementSetter(java.lang.Class<?> arrayClass)100 public static java.lang.invoke.MethodHandle arrayElementSetter(java.lang.Class<?> arrayClass) 101 throws java.lang.IllegalArgumentException { 102 throw new RuntimeException("Stub!"); 103 } 104 arrayElementSetter(byte[] array, int i, byte val)105 public static void arrayElementSetter(byte[] array, int i, byte val) { 106 throw new RuntimeException("Stub!"); 107 } 108 arrayElementSetter(boolean[] array, int i, boolean val)109 public static void arrayElementSetter(boolean[] array, int i, boolean val) { 110 throw new RuntimeException("Stub!"); 111 } 112 arrayElementSetter(char[] array, int i, char val)113 public static void arrayElementSetter(char[] array, int i, char val) { 114 throw new RuntimeException("Stub!"); 115 } 116 arrayElementSetter(short[] array, int i, short val)117 public static void arrayElementSetter(short[] array, int i, short val) { 118 throw new RuntimeException("Stub!"); 119 } 120 arrayElementSetter(int[] array, int i, int val)121 public static void arrayElementSetter(int[] array, int i, int val) { 122 throw new RuntimeException("Stub!"); 123 } 124 arrayElementSetter(long[] array, int i, long val)125 public static void arrayElementSetter(long[] array, int i, long val) { 126 throw new RuntimeException("Stub!"); 127 } 128 arrayElementSetter(float[] array, int i, float val)129 public static void arrayElementSetter(float[] array, int i, float val) { 130 throw new RuntimeException("Stub!"); 131 } 132 arrayElementSetter(double[] array, int i, double val)133 public static void arrayElementSetter(double[] array, int i, double val) { 134 throw new RuntimeException("Stub!"); 135 } 136 arrayElementVarHandle(java.lang.Class<?> arrayClass)137 public static java.lang.invoke.VarHandle arrayElementVarHandle(java.lang.Class<?> arrayClass) 138 throws java.lang.IllegalArgumentException { 139 throw new RuntimeException("Stub!"); 140 } 141 byteArrayViewVarHandle( java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder)142 public static java.lang.invoke.VarHandle byteArrayViewVarHandle( 143 java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder) 144 throws java.lang.IllegalArgumentException { 145 throw new RuntimeException("Stub!"); 146 } 147 byteBufferViewVarHandle( java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder)148 public static java.lang.invoke.VarHandle byteBufferViewVarHandle( 149 java.lang.Class<?> viewArrayClass, java.nio.ByteOrder byteOrder) 150 throws java.lang.IllegalArgumentException { 151 throw new RuntimeException("Stub!"); 152 } 153 spreadInvoker( java.lang.invoke.MethodType type, int leadingArgCount)154 public static java.lang.invoke.MethodHandle spreadInvoker( 155 java.lang.invoke.MethodType type, int leadingArgCount) { 156 throw new RuntimeException("Stub!"); 157 } 158 exactInvoker(java.lang.invoke.MethodType type)159 public static java.lang.invoke.MethodHandle exactInvoker(java.lang.invoke.MethodType type) { 160 throw new RuntimeException("Stub!"); 161 } 162 invoker(java.lang.invoke.MethodType type)163 public static java.lang.invoke.MethodHandle invoker(java.lang.invoke.MethodType type) { 164 throw new RuntimeException("Stub!"); 165 } 166 methodHandleForVarHandleAccessor( java.lang.invoke.VarHandle.AccessMode accessMode, java.lang.invoke.MethodType type, boolean isExactInvoker)167 private static java.lang.invoke.MethodHandle methodHandleForVarHandleAccessor( 168 java.lang.invoke.VarHandle.AccessMode accessMode, 169 java.lang.invoke.MethodType type, 170 boolean isExactInvoker) { 171 throw new RuntimeException("Stub!"); 172 } 173 varHandleExactInvoker( java.lang.invoke.VarHandle.AccessMode accessMode, java.lang.invoke.MethodType type)174 public static java.lang.invoke.MethodHandle varHandleExactInvoker( 175 java.lang.invoke.VarHandle.AccessMode accessMode, java.lang.invoke.MethodType type) { 176 throw new RuntimeException("Stub!"); 177 } 178 varHandleInvoker( java.lang.invoke.VarHandle.AccessMode accessMode, java.lang.invoke.MethodType type)179 public static java.lang.invoke.MethodHandle varHandleInvoker( 180 java.lang.invoke.VarHandle.AccessMode accessMode, java.lang.invoke.MethodType type) { 181 throw new RuntimeException("Stub!"); 182 } 183 explicitCastArguments( java.lang.invoke.MethodHandle target, java.lang.invoke.MethodType newType)184 public static java.lang.invoke.MethodHandle explicitCastArguments( 185 java.lang.invoke.MethodHandle target, java.lang.invoke.MethodType newType) { 186 throw new RuntimeException("Stub!"); 187 } 188 explicitCastArgumentsChecks( java.lang.invoke.MethodHandle target, java.lang.invoke.MethodType newType)189 private static void explicitCastArgumentsChecks( 190 java.lang.invoke.MethodHandle target, java.lang.invoke.MethodType newType) { 191 throw new RuntimeException("Stub!"); 192 } 193 permuteArguments( java.lang.invoke.MethodHandle target, java.lang.invoke.MethodType newType, int... reorder)194 public static java.lang.invoke.MethodHandle permuteArguments( 195 java.lang.invoke.MethodHandle target, 196 java.lang.invoke.MethodType newType, 197 int... reorder) { 198 throw new RuntimeException("Stub!"); 199 } 200 permuteArgumentChecks( int[] reorder, java.lang.invoke.MethodType newType, java.lang.invoke.MethodType oldType)201 private static boolean permuteArgumentChecks( 202 int[] reorder, 203 java.lang.invoke.MethodType newType, 204 java.lang.invoke.MethodType oldType) { 205 throw new RuntimeException("Stub!"); 206 } 207 constant( java.lang.Class<?> type, java.lang.Object value)208 public static java.lang.invoke.MethodHandle constant( 209 java.lang.Class<?> type, java.lang.Object value) { 210 throw new RuntimeException("Stub!"); 211 } 212 identity(java.lang.Class<?> type)213 public static java.lang.invoke.MethodHandle identity(java.lang.Class<?> type) { 214 throw new RuntimeException("Stub!"); 215 } 216 identity(byte val)217 public static byte identity(byte val) { 218 throw new RuntimeException("Stub!"); 219 } 220 identity(boolean val)221 public static boolean identity(boolean val) { 222 throw new RuntimeException("Stub!"); 223 } 224 identity(char val)225 public static char identity(char val) { 226 throw new RuntimeException("Stub!"); 227 } 228 identity(short val)229 public static short identity(short val) { 230 throw new RuntimeException("Stub!"); 231 } 232 identity(int val)233 public static int identity(int val) { 234 throw new RuntimeException("Stub!"); 235 } 236 identity(long val)237 public static long identity(long val) { 238 throw new RuntimeException("Stub!"); 239 } 240 identity(float val)241 public static float identity(float val) { 242 throw new RuntimeException("Stub!"); 243 } 244 identity(double val)245 public static double identity(double val) { 246 throw new RuntimeException("Stub!"); 247 } 248 insertArguments( java.lang.invoke.MethodHandle target, int pos, java.lang.Object... values)249 public static java.lang.invoke.MethodHandle insertArguments( 250 java.lang.invoke.MethodHandle target, int pos, java.lang.Object... values) { 251 throw new RuntimeException("Stub!"); 252 } 253 insertArgumentsChecks( java.lang.invoke.MethodHandle target, int insCount, int pos)254 private static java.lang.Class<?>[] insertArgumentsChecks( 255 java.lang.invoke.MethodHandle target, int insCount, int pos) 256 throws java.lang.RuntimeException { 257 throw new RuntimeException("Stub!"); 258 } 259 dropArguments( java.lang.invoke.MethodHandle target, int pos, java.util.List<java.lang.Class<?>> valueTypes)260 public static java.lang.invoke.MethodHandle dropArguments( 261 java.lang.invoke.MethodHandle target, 262 int pos, 263 java.util.List<java.lang.Class<?>> valueTypes) { 264 throw new RuntimeException("Stub!"); 265 } 266 copyTypes( java.util.List<java.lang.Class<?>> types)267 private static java.util.List<java.lang.Class<?>> copyTypes( 268 java.util.List<java.lang.Class<?>> types) { 269 throw new RuntimeException("Stub!"); 270 } 271 dropArgumentChecks( java.lang.invoke.MethodType oldType, int pos, java.util.List<java.lang.Class<?>> valueTypes)272 private static int dropArgumentChecks( 273 java.lang.invoke.MethodType oldType, 274 int pos, 275 java.util.List<java.lang.Class<?>> valueTypes) { 276 throw new RuntimeException("Stub!"); 277 } 278 dropArguments( java.lang.invoke.MethodHandle target, int pos, java.lang.Class<?>... valueTypes)279 public static java.lang.invoke.MethodHandle dropArguments( 280 java.lang.invoke.MethodHandle target, int pos, java.lang.Class<?>... valueTypes) { 281 throw new RuntimeException("Stub!"); 282 } 283 filterArguments( java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle... filters)284 public static java.lang.invoke.MethodHandle filterArguments( 285 java.lang.invoke.MethodHandle target, 286 int pos, 287 java.lang.invoke.MethodHandle... filters) { 288 throw new RuntimeException("Stub!"); 289 } 290 filterArgumentsCheckArity( java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle[] filters)291 private static void filterArgumentsCheckArity( 292 java.lang.invoke.MethodHandle target, 293 int pos, 294 java.lang.invoke.MethodHandle[] filters) { 295 throw new RuntimeException("Stub!"); 296 } 297 filterArgumentChecks( java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle filter)298 private static void filterArgumentChecks( 299 java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle filter) 300 throws java.lang.RuntimeException { 301 throw new RuntimeException("Stub!"); 302 } 303 collectArguments( java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle filter)304 public static java.lang.invoke.MethodHandle collectArguments( 305 java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle filter) { 306 throw new RuntimeException("Stub!"); 307 } 308 collectArgumentsChecks( java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle filter)309 private static java.lang.invoke.MethodType collectArgumentsChecks( 310 java.lang.invoke.MethodHandle target, int pos, java.lang.invoke.MethodHandle filter) 311 throws java.lang.RuntimeException { 312 throw new RuntimeException("Stub!"); 313 } 314 filterReturnValue( java.lang.invoke.MethodHandle target, java.lang.invoke.MethodHandle filter)315 public static java.lang.invoke.MethodHandle filterReturnValue( 316 java.lang.invoke.MethodHandle target, java.lang.invoke.MethodHandle filter) { 317 throw new RuntimeException("Stub!"); 318 } 319 filterReturnValueChecks( java.lang.invoke.MethodType targetType, java.lang.invoke.MethodType filterType)320 private static void filterReturnValueChecks( 321 java.lang.invoke.MethodType targetType, java.lang.invoke.MethodType filterType) 322 throws java.lang.RuntimeException { 323 throw new RuntimeException("Stub!"); 324 } 325 foldArguments( java.lang.invoke.MethodHandle target, java.lang.invoke.MethodHandle combiner)326 public static java.lang.invoke.MethodHandle foldArguments( 327 java.lang.invoke.MethodHandle target, java.lang.invoke.MethodHandle combiner) { 328 throw new RuntimeException("Stub!"); 329 } 330 foldArgumentChecks( int foldPos, java.lang.invoke.MethodType targetType, java.lang.invoke.MethodType combinerType)331 private static java.lang.Class<?> foldArgumentChecks( 332 int foldPos, 333 java.lang.invoke.MethodType targetType, 334 java.lang.invoke.MethodType combinerType) { 335 throw new RuntimeException("Stub!"); 336 } 337 guardWithTest( java.lang.invoke.MethodHandle test, java.lang.invoke.MethodHandle target, java.lang.invoke.MethodHandle fallback)338 public static java.lang.invoke.MethodHandle guardWithTest( 339 java.lang.invoke.MethodHandle test, 340 java.lang.invoke.MethodHandle target, 341 java.lang.invoke.MethodHandle fallback) { 342 throw new RuntimeException("Stub!"); 343 } 344 misMatchedTypes( java.lang.String what, java.lang.invoke.MethodType t1, java.lang.invoke.MethodType t2)345 static java.lang.RuntimeException misMatchedTypes( 346 java.lang.String what, java.lang.invoke.MethodType t1, java.lang.invoke.MethodType t2) { 347 throw new RuntimeException("Stub!"); 348 } 349 catchException( java.lang.invoke.MethodHandle target, java.lang.Class<? extends java.lang.Throwable> exType, java.lang.invoke.MethodHandle handler)350 public static java.lang.invoke.MethodHandle catchException( 351 java.lang.invoke.MethodHandle target, 352 java.lang.Class<? extends java.lang.Throwable> exType, 353 java.lang.invoke.MethodHandle handler) { 354 throw new RuntimeException("Stub!"); 355 } 356 throwException( java.lang.Class<?> returnType, java.lang.Class<? extends java.lang.Throwable> exType)357 public static java.lang.invoke.MethodHandle throwException( 358 java.lang.Class<?> returnType, java.lang.Class<? extends java.lang.Throwable> exType) { 359 throw new RuntimeException("Stub!"); 360 } 361 362 @SuppressWarnings({"unchecked", "deprecation", "all"}) 363 public static final class Lookup { 364 Lookup(java.lang.Class<?> lookupClass)365 Lookup(java.lang.Class<?> lookupClass) { 366 throw new RuntimeException("Stub!"); 367 } 368 369 @UnsupportedAppUsage Lookup(java.lang.Class<?> lookupClass, int allowedModes)370 private Lookup(java.lang.Class<?> lookupClass, int allowedModes) { 371 throw new RuntimeException("Stub!"); 372 } 373 fixmods(int mods)374 private static int fixmods(int mods) { 375 throw new RuntimeException("Stub!"); 376 } 377 lookupClass()378 public java.lang.Class<?> lookupClass() { 379 throw new RuntimeException("Stub!"); 380 } 381 lookupModes()382 public int lookupModes() { 383 throw new RuntimeException("Stub!"); 384 } 385 in(java.lang.Class<?> requestedLookupClass)386 public java.lang.invoke.MethodHandles.Lookup in(java.lang.Class<?> requestedLookupClass) { 387 throw new RuntimeException("Stub!"); 388 } 389 checkUnprivilegedlookupClass( java.lang.Class<?> lookupClass, int allowedModes)390 private static void checkUnprivilegedlookupClass( 391 java.lang.Class<?> lookupClass, int allowedModes) { 392 throw new RuntimeException("Stub!"); 393 } 394 toString()395 public java.lang.String toString() { 396 throw new RuntimeException("Stub!"); 397 } 398 findStatic( java.lang.Class<?> refc, java.lang.String name, java.lang.invoke.MethodType type)399 public java.lang.invoke.MethodHandle findStatic( 400 java.lang.Class<?> refc, java.lang.String name, java.lang.invoke.MethodType type) 401 throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException { 402 throw new RuntimeException("Stub!"); 403 } 404 findVirtualForMH( java.lang.String name, java.lang.invoke.MethodType type)405 private java.lang.invoke.MethodHandle findVirtualForMH( 406 java.lang.String name, java.lang.invoke.MethodType type) { 407 throw new RuntimeException("Stub!"); 408 } 409 findVirtualForVH( java.lang.String name, java.lang.invoke.MethodType type)410 private java.lang.invoke.MethodHandle findVirtualForVH( 411 java.lang.String name, java.lang.invoke.MethodType type) { 412 throw new RuntimeException("Stub!"); 413 } 414 createMethodHandle( java.lang.reflect.Method method, int handleKind, java.lang.invoke.MethodType methodType)415 private static java.lang.invoke.MethodHandle createMethodHandle( 416 java.lang.reflect.Method method, 417 int handleKind, 418 java.lang.invoke.MethodType methodType) { 419 throw new RuntimeException("Stub!"); 420 } 421 findVirtual( java.lang.Class<?> refc, java.lang.String name, java.lang.invoke.MethodType type)422 public java.lang.invoke.MethodHandle findVirtual( 423 java.lang.Class<?> refc, java.lang.String name, java.lang.invoke.MethodType type) 424 throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException { 425 throw new RuntimeException("Stub!"); 426 } 427 findConstructor( java.lang.Class<?> refc, java.lang.invoke.MethodType type)428 public java.lang.invoke.MethodHandle findConstructor( 429 java.lang.Class<?> refc, java.lang.invoke.MethodType type) 430 throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException { 431 throw new RuntimeException("Stub!"); 432 } 433 createMethodHandleForConstructor( java.lang.reflect.Constructor constructor)434 private java.lang.invoke.MethodHandle createMethodHandleForConstructor( 435 java.lang.reflect.Constructor constructor) { 436 throw new RuntimeException("Stub!"); 437 } 438 initMethodType( java.lang.invoke.MethodType constructorType)439 private static java.lang.invoke.MethodType initMethodType( 440 java.lang.invoke.MethodType constructorType) { 441 throw new RuntimeException("Stub!"); 442 } 443 findSpecial( java.lang.Class<?> refc, java.lang.String name, java.lang.invoke.MethodType type, java.lang.Class<?> specialCaller)444 public java.lang.invoke.MethodHandle findSpecial( 445 java.lang.Class<?> refc, 446 java.lang.String name, 447 java.lang.invoke.MethodType type, 448 java.lang.Class<?> specialCaller) 449 throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException { 450 throw new RuntimeException("Stub!"); 451 } 452 findSpecial( java.lang.reflect.Method method, java.lang.invoke.MethodType type, java.lang.Class<?> refc, java.lang.Class<?> specialCaller)453 private java.lang.invoke.MethodHandle findSpecial( 454 java.lang.reflect.Method method, 455 java.lang.invoke.MethodType type, 456 java.lang.Class<?> refc, 457 java.lang.Class<?> specialCaller) 458 throws java.lang.IllegalAccessException { 459 throw new RuntimeException("Stub!"); 460 } 461 findGetter( java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type)462 public java.lang.invoke.MethodHandle findGetter( 463 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type) 464 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 465 throw new RuntimeException("Stub!"); 466 } 467 findAccessor( java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type, int kind)468 private java.lang.invoke.MethodHandle findAccessor( 469 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type, int kind) 470 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 471 throw new RuntimeException("Stub!"); 472 } 473 findAccessor( java.lang.reflect.Field field, java.lang.Class<?> refc, java.lang.Class<?> type, int kind, boolean performAccessChecks)474 private java.lang.invoke.MethodHandle findAccessor( 475 java.lang.reflect.Field field, 476 java.lang.Class<?> refc, 477 java.lang.Class<?> type, 478 int kind, 479 boolean performAccessChecks) 480 throws java.lang.IllegalAccessException { 481 throw new RuntimeException("Stub!"); 482 } 483 findSetter( java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type)484 public java.lang.invoke.MethodHandle findSetter( 485 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type) 486 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 487 throw new RuntimeException("Stub!"); 488 } 489 findVarHandle( java.lang.Class<?> recv, java.lang.String name, java.lang.Class<?> type)490 public java.lang.invoke.VarHandle findVarHandle( 491 java.lang.Class<?> recv, java.lang.String name, java.lang.Class<?> type) 492 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 493 throw new RuntimeException("Stub!"); 494 } 495 findFieldOfType( java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type)496 private java.lang.reflect.Field findFieldOfType( 497 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type) 498 throws java.lang.NoSuchFieldException { 499 throw new RuntimeException("Stub!"); 500 } 501 commonFieldChecks( java.lang.reflect.Field field, java.lang.Class<?> refc, java.lang.Class<?> type, boolean isStatic, boolean performAccessChecks)502 private void commonFieldChecks( 503 java.lang.reflect.Field field, 504 java.lang.Class<?> refc, 505 java.lang.Class<?> type, 506 boolean isStatic, 507 boolean performAccessChecks) 508 throws java.lang.IllegalAccessException { 509 throw new RuntimeException("Stub!"); 510 } 511 findStaticGetter( java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type)512 public java.lang.invoke.MethodHandle findStaticGetter( 513 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type) 514 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 515 throw new RuntimeException("Stub!"); 516 } 517 findStaticSetter( java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type)518 public java.lang.invoke.MethodHandle findStaticSetter( 519 java.lang.Class<?> refc, java.lang.String name, java.lang.Class<?> type) 520 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 521 throw new RuntimeException("Stub!"); 522 } 523 findStaticVarHandle( java.lang.Class<?> decl, java.lang.String name, java.lang.Class<?> type)524 public java.lang.invoke.VarHandle findStaticVarHandle( 525 java.lang.Class<?> decl, java.lang.String name, java.lang.Class<?> type) 526 throws java.lang.IllegalAccessException, java.lang.NoSuchFieldException { 527 throw new RuntimeException("Stub!"); 528 } 529 bind( java.lang.Object receiver, java.lang.String name, java.lang.invoke.MethodType type)530 public java.lang.invoke.MethodHandle bind( 531 java.lang.Object receiver, java.lang.String name, java.lang.invoke.MethodType type) 532 throws java.lang.IllegalAccessException, java.lang.NoSuchMethodException { 533 throw new RuntimeException("Stub!"); 534 } 535 unreflect(java.lang.reflect.Method m)536 public java.lang.invoke.MethodHandle unreflect(java.lang.reflect.Method m) 537 throws java.lang.IllegalAccessException { 538 throw new RuntimeException("Stub!"); 539 } 540 unreflectSpecial( java.lang.reflect.Method m, java.lang.Class<?> specialCaller)541 public java.lang.invoke.MethodHandle unreflectSpecial( 542 java.lang.reflect.Method m, java.lang.Class<?> specialCaller) 543 throws java.lang.IllegalAccessException { 544 throw new RuntimeException("Stub!"); 545 } 546 unreflectConstructor( java.lang.reflect.Constructor<?> c)547 public java.lang.invoke.MethodHandle unreflectConstructor( 548 java.lang.reflect.Constructor<?> c) throws java.lang.IllegalAccessException { 549 throw new RuntimeException("Stub!"); 550 } 551 unreflectGetter(java.lang.reflect.Field f)552 public java.lang.invoke.MethodHandle unreflectGetter(java.lang.reflect.Field f) 553 throws java.lang.IllegalAccessException { 554 throw new RuntimeException("Stub!"); 555 } 556 unreflectSetter(java.lang.reflect.Field f)557 public java.lang.invoke.MethodHandle unreflectSetter(java.lang.reflect.Field f) 558 throws java.lang.IllegalAccessException { 559 throw new RuntimeException("Stub!"); 560 } 561 unreflectVarHandle(java.lang.reflect.Field f)562 public java.lang.invoke.VarHandle unreflectVarHandle(java.lang.reflect.Field f) 563 throws java.lang.IllegalAccessException { 564 throw new RuntimeException("Stub!"); 565 } 566 revealDirect( java.lang.invoke.MethodHandle target)567 public java.lang.invoke.MethodHandleInfo revealDirect( 568 java.lang.invoke.MethodHandle target) { 569 throw new RuntimeException("Stub!"); 570 } 571 hasPrivateAccess()572 private boolean hasPrivateAccess() { 573 throw new RuntimeException("Stub!"); 574 } 575 checkAccess( java.lang.Class<?> refc, java.lang.Class<?> defc, int mods, java.lang.String methName)576 void checkAccess( 577 java.lang.Class<?> refc, 578 java.lang.Class<?> defc, 579 int mods, 580 java.lang.String methName) 581 throws java.lang.IllegalAccessException { 582 throw new RuntimeException("Stub!"); 583 } 584 accessFailedMessage( java.lang.Class<?> refc, java.lang.Class<?> defc, int mods)585 java.lang.String accessFailedMessage( 586 java.lang.Class<?> refc, java.lang.Class<?> defc, int mods) { 587 throw new RuntimeException("Stub!"); 588 } 589 checkSpecialCaller(java.lang.Class<?> specialCaller)590 private void checkSpecialCaller(java.lang.Class<?> specialCaller) 591 throws java.lang.IllegalAccessException { 592 throw new RuntimeException("Stub!"); 593 } 594 throwMakeAccessException(java.lang.String message, java.lang.Object from)595 private void throwMakeAccessException(java.lang.String message, java.lang.Object from) 596 throws java.lang.IllegalAccessException { 597 throw new RuntimeException("Stub!"); 598 } 599 checkReturnType( java.lang.reflect.Method method, java.lang.invoke.MethodType methodType)600 private void checkReturnType( 601 java.lang.reflect.Method method, java.lang.invoke.MethodType methodType) 602 throws java.lang.NoSuchMethodException { 603 throw new RuntimeException("Stub!"); 604 } 605 606 private static final int ALL_MODES = 15; // 0xf 607 608 static final java.lang.invoke.MethodHandles.Lookup IMPL_LOOKUP; 609 610 static { 611 IMPL_LOOKUP = null; 612 } 613 614 public static final int PACKAGE = 8; // 0x8 615 616 public static final int PRIVATE = 2; // 0x2 617 618 public static final int PROTECTED = 4; // 0x4 619 620 public static final int PUBLIC = 1; // 0x1 621 622 static final java.lang.invoke.MethodHandles.Lookup PUBLIC_LOOKUP; 623 624 static { 625 PUBLIC_LOOKUP = null; 626 } 627 628 private final int allowedModes; 629 630 { 631 allowedModes = 0; 632 } 633 634 private final java.lang.Class<?> lookupClass; 635 636 { 637 lookupClass = null; 638 } 639 } 640 } 641