Method getComponentType()
Return type:
java.lang.Class
<Class<?>>
Member of:
java.lang.Class
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
return c.getComponentType() != null ? c.getComponentType().getName() : c.getName();
2
Class arrayElementClass = desiredClass.getComponentType();
3
Class c = objs.getClass().getComponentType();
4
Class c = objs.getClass().getComponentType();
5
endOfArray = endOfArray.getComponentType();
6
return (field.getType().getComponentType() != null);
7
current = current.getComponentType();
8
Object[] newArr = (Object[]) Array.newInstance(arr.getClass().getComponentType(),
9
type = type.getComponentType();
10
return getArrayClassName(clazz.getComponentType()) + "[]";
11
aobj = (Object[]) Array.newInstance(aobj.getClass().getComponentType(), _size);
12
Object newA[] = (Object[]) Array.newInstance(arrayClass.getComponentType(), oldSize + 1);
13
comp = comp.getComponentType();
14
a.getClass().getComponentType(), size);
15
&& f.getType().isArray() && f.getType().getComponentType() == String.class ) {
16
return realclass == null ? null : new Class(realclass.getComponentType());
17
setElementType (_class.getComponentType ());
18
return (clazz.isArray() ? clazz.getComponentType().getName() + ARRAY_SUFFIX : clazz.getName());
19
a.getClass().getComponentType(),array.length);
20
|| ( (theClass.isArray()) && (isSpecialType(theClass.getComponentType().getName()) )) );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.