Searched refs:componentType (Results 1 - 8 of 8) sorted by relevance

/libcore/luni/src/main/java/libcore/reflect/
H A DGenericArrayTypeImpl.java24 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 DGenericArrayTypeTest.java42 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/libcore/dalvik/system/
H A DVMRuntimeTest.java29 private void doTestNewNonMovableArray(Class<?> componentType, int step, int maxLength) { argument
32 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, -1);
38 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, Integer.MIN_VALUE);
45 Object array = VMRuntime.getRuntime().newNonMovableArray(componentType, i);
47 assertEquals(array.getClass().getComponentType(), componentType);
83 private void doTestNewUnpaddedArray(Class<?> componentType, int step, int maxLength) { argument
86 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, -1);
92 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, Integer.MIN_VALUE);
99 Object array = VMRuntime.getRuntime().newUnpaddedArray(componentType, i);
101 assertEquals(array.getClass().getComponentType(), componentType);
[all...]
/libcore/ojluni/src/main/java/java/lang/reflect/
H A DArray.java57 * Array.newInstance(componentType, x);
64 * @param componentType the {@code Class} object representing the
69 * {@code componentType} parameter is null
70 * @exception IllegalArgumentException if componentType is {@link
76 public static Object newInstance(Class<?> componentType, int length) argument
78 return newArray(componentType, length);
84 * If {@code componentType}
87 * {@code componentType} as its component type. If
88 * {@code componentType} represents an array class, the
91 * dimensions of {@code componentType}
112 newInstance(Class<?> componentType, int... dimensions) argument
773 newArray(Class<?> componentType, int length) argument
811 createMultiArray(Class<?> componentType, int[] dimensions) argument
819 createObjectArray(Class<?> componentType, int length) argument
[all...]
/libcore/libart/src/main/java/dalvik/system/
H A DVMRuntime.java294 public native Object newNonMovableArray(Class<?> componentType, int length); argument
299 * componentType and the memory allocator implementation.
302 public native Object newUnpaddedArray(Class<?> componentType, int minLength); argument
/libcore/ojluni/src/main/java/java/lang/invoke/
H A DMethodHandles.java1997 private static void checkTypeIsViewable(Class<?> componentType) { argument
1998 if (componentType == short.class ||
1999 componentType == char.class ||
2000 componentType == int.class ||
2001 componentType == long.class ||
2002 componentType == float.class ||
2003 componentType == double.class) {
2006 throw new UnsupportedOperationException("Component type not supported: " + componentType);
2023 final Class<?> componentType = arrayClass.getComponentType();
2024 if (componentType
[all...]
H A DTransformers.java916 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 DClass.java124 private transient Class<?> componentType; field in class:Class
575 return cls.isArray() && componentType.isAssignableFrom(cls.componentType);
1056 return componentType;

Completed in 339 milliseconds