public class ClassUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class<?> |
getTypeClass(String type,
ClassLoader cl)
Converts type name like "int[]" to class.
|
public static Class<?> getTypeClass(String type, ClassLoader cl) throws ClassNotFoundException
type - the name of type, a result of Class.getTypeName(), but can be also
the result of Class.getName().cl - Class loader, can be null for system class loader.ClassNotFoundException - if class is not found.Copyright © 2002–2025 Devexperts LLC. All rights reserved.