public class ClassInfo extends java.lang.Object implements InstanceGetter
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
clazz |
private java.lang.reflect.Constructor |
noArgConstructor |
private static java.lang.Object[] |
noArguments |
private static java.lang.Class[] |
noParameters |
private boolean |
useConstructor |
Constructor and Description |
---|
ClassInfo(java.lang.Class<?> clazz) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClassName()
Return the name of this class.
|
java.lang.Class |
getClassObject()
Return the class object for this class.
|
java.lang.Object |
getNewInstance()
Create an instance of this class.
|
private static final java.lang.Class[] noParameters
private static final java.lang.Object[] noArguments
private final java.lang.Class<?> clazz
private boolean useConstructor
private java.lang.reflect.Constructor noArgConstructor
public final java.lang.String getClassName()
public final java.lang.Class getClassObject()
public java.lang.Object getNewInstance() throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
getNewInstance
in interface InstanceGetter
java.lang.InstantiationException
- Zero arg constructor can not be executedjava.lang.IllegalAccessException
- Class or zero arg constructor is not public.java.lang.reflect.InvocationTargetException
- Exception throw in zero-arg constructor.java.lang.NoSuchMethodException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.