Home
last modified time | relevance | path

Searched refs:arrayClass (Results 1 – 11 of 11) sorted by relevance

/libcore/libart/src/main/java/java/lang/invoke/
DArrayElementVarHandle.java27 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()
DByteArrayViewVarHandle.java28 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()
DByteBufferViewVarHandle.java29 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/
DArrayLengthTest.java57 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/
DConstantBootstraps.java356 Class<?> arrayClass) { in arrayVarHandle() argument
359 requireNonNull(arrayClass); in arrayVarHandle()
364 return MethodHandles.arrayElementVarHandle(validateClassAccess(lookup, arrayClass)); in arrayVarHandle()
DVarHandle.java2476 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()
DMethodHandles.java2233 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 …]
DTransformers.java318 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/
DMethodHandles.java94 …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/
DMethodHandles.java63 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/
DClass.java3953 public native <T2> T2[] getRecordAnnotationElement(String elementName, Class<T2[]> arrayClass); in getRecordAnnotationElement() argument