public final class Constructor
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
java.lang.Class |
getDeclaringClass()
Returns the Class object representing the class or interface that declares the constructor.
|
java.lang.Class[] |
getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor.
|
boolean |
isAccessible() |
java.lang.Object |
newInstance(java.lang.Object... args)
Uses the constructor to create and initialize a new instance of the constructor's declaring class, with the supplied
initialization parameters.
|
void |
setAccessible(boolean accessible) |
public java.lang.Class[] getParameterTypes()
public java.lang.Class getDeclaringClass()
public boolean isAccessible()
public void setAccessible(boolean accessible)
public java.lang.Object newInstance(java.lang.Object... args) throws ReflectionException