public class ClassUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Class |
getClassFromTypeName(String type_name)
Converts a type name (as a String) into its
Class representation. |
public static Class getClassFromTypeName(String type_name) throws ClassNotFoundException
Class representation. Primitives are converted to their
object types (e.g. "int" will return Integer.TYPE).type_name - the type name stringClassClassNotFoundException - if the type name cannot be converted to a class objectCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.