public class DemoBase extends Object
Modifier | Constructor and Description |
---|---|
protected |
DemoBase() |
Modifier and Type | Method and Description |
---|---|
static Object |
createObject(Class<?> type,
String value)
Creates an instance of the given type, by calling the single-string-parameter constructor, or, if
the value equals "", the zero-parameter constructor.
|
static String[] |
explode(String s) |
static Class<?> |
stringToType(String s) |
static Class<?>[] |
stringToTypes(String s)
Converts the given comma-separated list of class names to an array of
Class es. |
public static Object createObject(Class<?> type, String value) throws NoSuchMethodException, InstantiationException, InvocationTargetException, IllegalAccessException
Copyright © 2016. All rights reserved.