/libcore/libart/src/main/java/java/lang/invoke/ |
D | ArrayElementVarHandle.java | 27 private ArrayElementVarHandle(Class<?> arrayClass) { in ArrayElementVarHandle() argument 28 super(arrayClass.getComponentType(), arrayClass, false /* isFinal */, in ArrayElementVarHandle() local 29 arrayClass, int.class); in ArrayElementVarHandle() local 32 static ArrayElementVarHandle create(Class<?> arrayClass) { in create() argument 33 return new ArrayElementVarHandle(arrayClass); in create()
|
D | ByteArrayViewVarHandle.java | 28 private ByteArrayViewVarHandle(Class<?> arrayClass, ByteOrder byteOrder) { in ByteArrayViewVarHandle() argument 29 super(arrayClass.getComponentType(), byte[].class, false /* isFinal */, in ByteArrayViewVarHandle() 34 static ByteArrayViewVarHandle create(Class<?> arrayClass, ByteOrder byteOrder) { in create() argument 35 return new ByteArrayViewVarHandle(arrayClass, byteOrder); in create()
|
D | ByteBufferViewVarHandle.java | 29 private ByteBufferViewVarHandle(Class<?> arrayClass, ByteOrder byteOrder) { in ByteBufferViewVarHandle() argument 30 super(arrayClass.getComponentType(), byte[].class, false /* isFinal */, in ByteBufferViewVarHandle() 35 static ByteBufferViewVarHandle create(Class<?> arrayClass, ByteOrder byteOrder) { in create() argument 36 return new ByteBufferViewVarHandle(arrayClass, byteOrder); in create()
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | ArrayLengthTest.java | 57 public void testArrayLength(Class<?> arrayClass) throws Throwable { in testArrayLength() argument 58 MethodHandle arrayLength = MethodHandles.arrayLength(arrayClass); in testArrayLength() 60 assertEquals(arrayClass, arrayLength.type().parameterType(0)); in testArrayLength() 61 Object array = MethodHandles.arrayConstructor(arrayClass).invoke(10); in testArrayLength() 66 public void testArrayLengthInvokeNPE(Class<?> arrayClass) throws Throwable { in testArrayLengthInvokeNPE() argument 67 MethodHandle arrayLength = MethodHandles.arrayLength(arrayClass); in testArrayLengthInvokeNPE()
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
D | ConstantBootstraps.java | 356 Class<?> arrayClass) { in arrayVarHandle() argument 359 requireNonNull(arrayClass); in arrayVarHandle() 364 return MethodHandles.arrayElementVarHandle(validateClassAccess(lookup, arrayClass)); in arrayVarHandle()
|
D | VarHandle.java | 2476 public static VarHandleDesc ofArray(ClassDesc arrayClass) { in ofArray() argument 2477 Objects.requireNonNull(arrayClass); in ofArray() 2478 if (!arrayClass.isArray()) in ofArray() 2479 … throw new IllegalArgumentException("Array class argument not an array: " + arrayClass); in ofArray() 2480 …return new VarHandleDesc(Kind.ARRAY, ConstantDescs.DEFAULT_NAME, arrayClass, arrayClass.componentT… in ofArray()
|
D | MethodHandles.java | 2233 MethodHandle arrayConstructor(Class<?> arrayClass) throws IllegalArgumentException { in arrayConstructor() argument 2234 if (!arrayClass.isArray()) { in arrayConstructor() 2235 throw newIllegalArgumentException("not an array class: " + arrayClass.getName()); in arrayConstructor() 2241 return new Transformers.ArrayConstructor(arrayClass); in arrayConstructor() 2261 MethodHandle arrayLength(Class<?> arrayClass) throws IllegalArgumentException { in arrayLength() argument 2264 if (!arrayClass.isArray()) { in arrayLength() 2265 throw newIllegalArgumentException("not an array class: " + arrayClass.getName()); in arrayLength() 2267 return new Transformers.ArrayLength(arrayClass); in arrayLength() 2301 MethodHandle arrayElementGetter(Class<?> arrayClass) throws IllegalArgumentException { in arrayElementGetter() argument 2302 checkClassIsArray(arrayClass); in arrayElementGetter() [all …]
|
D | Transformers.java | 318 private final Class<?> arrayClass; field in Transformers.ReferenceArrayElementGetter 320 ReferenceArrayElementGetter(Class<?> arrayClass) { in ReferenceArrayElementGetter() argument 323 arrayClass.getComponentType(), new Class<?>[] {arrayClass, int.class})); in ReferenceArrayElementGetter() 324 this.arrayClass = arrayClass; in ReferenceArrayElementGetter() 333 final Object[] array = (Object[]) reader.nextReference(arrayClass); in transform() 340 writer.putNextReference(array[index], arrayClass.getComponentType()); in transform() 346 private final Class<?> arrayClass; field in Transformers.ReferenceArrayElementSetter 348 ReferenceArrayElementSetter(Class<?> arrayClass) { in ReferenceArrayElementSetter() argument 352 new Class<?>[] {arrayClass, int.class, arrayClass.getComponentType()})); in ReferenceArrayElementSetter() 353 this.arrayClass = arrayClass; in ReferenceArrayElementSetter() [all …]
|
/libcore/ojluni/src/lambda/java/java/lang/invoke/ |
D | MethodHandles.java | 94 …MethodHandle arrayElementGetter(Class<?> arrayClass) throws IllegalArgumentException { return null… in arrayElementGetter() argument 97 …MethodHandle arrayElementSetter(Class<?> arrayClass) throws IllegalArgumentException { return null… in arrayElementSetter() argument
|
/libcore/ojluni/annotations/hiddenapi/java/lang/invoke/ |
D | MethodHandles.java | 63 public static java.lang.invoke.MethodHandle arrayElementGetter(java.lang.Class<?> arrayClass) in arrayElementGetter() argument 100 public static java.lang.invoke.MethodHandle arrayElementSetter(java.lang.Class<?> arrayClass) in arrayElementSetter() argument 137 public static java.lang.invoke.VarHandle arrayElementVarHandle(java.lang.Class<?> arrayClass) in arrayElementVarHandle() argument
|
/libcore/ojluni/src/main/java/java/lang/ |
D | Class.java | 3953 public native <T2> T2[] getRecordAnnotationElement(String elementName, Class<T2[]> arrayClass); in getRecordAnnotationElement() argument
|