| Modifier and Type | Field and Description |
|---|---|
| private final Class | |
| private Constructor | |
| private static final Object[] | |
| private static final Class | |
| private boolean |
| Modifier and Type | Method and Description |
|---|---|
| public final String | |
| public final Class | |
| public Object | getNewInstance()
Implements org. Create an instance of this class. |
| clazz | back to summary |
|---|---|
| private final Class<?> clazz | |
| noArgConstructor | back to summary |
|---|---|
| private Constructor<T> noArgConstructor | |
| noArguments | back to summary |
|---|---|
| private static final Object[] noArguments | |
| noParameters | back to summary |
|---|---|
| private static final Class<T>[] noParameters | |
| useConstructor | back to summary |
|---|---|
| private boolean useConstructor | |
| ClassInfo | back to summary |
|---|---|
| public ClassInfo(Class<?> clazz) | |
| getClassName | back to summary |
|---|---|
| public final String getClassName() Return the name of this class.
| |
| getClassObject | back to summary |
|---|---|
| public final Class Return the class object for this class.
| |
| getNewInstance | back to summary |
|---|---|
| public Object getNewInstance() throws InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException Implements org. Create an instance of this class. Assumes that clazz has already been initialized. Optimizes Class.newInstance() by caching and using the no-arg Constructor directly. Class.newInstance() looks up the constructor each time.
| |