Searched refs:componentType (Results 1 - 8 of 8) sorted by relevance
/libcore/luni/src/main/java/libcore/reflect/ |
H A D | GenericArrayTypeImpl.java | 24 private final Type componentType; field in class:GenericArrayTypeImpl 26 public GenericArrayTypeImpl(Type componentType) { argument 27 this.componentType = componentType; 32 return ((ParameterizedTypeImpl)componentType).getResolvedType(); 34 return componentType; 53 return componentType.toString() + "[]";
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | GenericArrayTypeTest.java | 42 Type componentType = ((GenericArrayType) genericType).getGenericComponentType(); 43 assertEquals(getTypeParameter(clazz), componentType); 44 assertInstanceOf(TypeVariable.class, componentType); 45 TypeVariable<?> componentTypeVariable = (TypeVariable<?>) componentType; 65 Type componentType = arrayType.getGenericComponentType(); 66 assertInstanceOf(ParameterizedType.class, componentType); 67 ParameterizedType parameterizedType = (ParameterizedType) componentType;
|
/libcore/luni/src/test/java/dalvik/system/ |
H A D | VMRuntimeTest.java | 27 private void doTestNewNonMovableArray(Class<?> componentType, int step, int maxLength) { argument 30 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1); 36 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE); 43 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i); 45 assertEquals(array.getClass().getComponentType(), componentType); 81 private void doTestNewUnpaddedArray(Class<?> componentType, int step, int maxLength) { argument 84 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1); 90 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE); 97 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i); 99 assertEquals(array.getClass().getComponentType(), componentType); [all...] |
/libcore/ojluni/src/main/java/java/lang/reflect/ |
H A D | Array.java | 57 * Array.newInstance(componentType, x); 63 * @param componentType the {@code Class} object representing the 68 * {@code componentType} parameter is null 69 * @exception IllegalArgumentException if componentType is {@link 75 public static Object newInstance(Class<?> componentType, int length) argument 77 return newArray(componentType, length); 83 * If {@code componentType} 86 * {@code componentType} as its component type. If 87 * {@code componentType} represents an array class, the 90 * dimensions of {@code componentType} 111 newInstance(Class<?> componentType, int... dimensions) argument 729 createMultiArray(Class<?> componentType, int[] dimensions) argument 740 newArray(Class<?> componentType, int size) argument 769 createObjectArray(Class<?> componentType, int length) argument [all...] |
/libcore/libart/src/main/java/dalvik/system/ |
H A D | VMRuntime.java | 267 public native Object newNonMovableArray(Class<?> componentType, int length); argument 272 * componentType and the memory allocator implementation. 275 public native Object newUnpaddedArray(Class<?> componentType, int minLength); argument
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
H A D | MethodHandles.java | 1716 final Class<?> componentType = arrayClass.getComponentType(); 1717 if (componentType == null) { 1721 if (componentType.isPrimitive()) { 1725 MethodType.methodType(componentType, arrayClass, int.class)); 1755 final Class<?> componentType = arrayClass.getComponentType(); 1756 if (componentType == null) { 1760 if (componentType.isPrimitive()) { 1764 MethodType.methodType(void.class, arrayClass, int.class, componentType));
|
H A D | Transformers.java | 916 public static Object collectArguments(char basicComponentType, Class<?> componentType, argument 920 case 'L': return referenceArray(reader, types, componentType, startIdx, length); 1073 final Class<?> componentType = spreaderType.ptypes()[arrayOffset].getComponentType(); 1074 if (componentType == null) { 1077 arrayTypeChar = Wrapper.basicTypeChar(componentType);
|
/libcore/ojluni/src/main/java/java/lang/ |
H A D | Class.java | 124 private transient Class<?> componentType; field in class:Class 575 return cls.isArray() && componentType.isAssignableFrom(cls.componentType); 1056 return componentType;
|
Completed in 377 milliseconds