APIdia Launch Partner
Top Description Fields Constructors Methods
com.badlogic.gdx.utils.reflect

public final Class Constructor

extends Object
Class Inheritance
Imports
java.lang.reflect.InvocationTargetException

Provides information about, and access to, a single constructor for a Class.
Author
nexsoftware

Field Summary

Modifier and TypeField and Description
private final Constructor<T>

Constructor Summary

AccessConstructor and Description
pack-priv
Constructor(Constructor<T> constructor)

Method Summary

Modifier and TypeMethod and Description
public Class<T>
getDeclaringClass()

Returns the Class object representing the class or interface that declares the constructor.

public Class<T>[]
getParameterTypes()

Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor.

public boolean
public Object
newInstance(Object... args)

Uses the constructor to create and initialize a new instance of the constructor's declaring class, with the supplied initialization parameters.

public void
setAccessible(boolean accessible)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

constructorback to summary
private final Constructor<T> constructor

Constructor Detail

Constructorback to summary
pack-priv Constructor(Constructor<T> constructor)

Method Detail

getDeclaringClassback to summary
public Class<T> getDeclaringClass()

Returns the Class object representing the class or interface that declares the constructor.

getParameterTypesback to summary
public Class<T>[] getParameterTypes()

Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor.

isAccessibleback to summary
public boolean isAccessible()
newInstanceback to summary
public Object newInstance(Object... args) throws ReflectionException

Uses the constructor to create and initialize a new instance of the constructor's declaring class, with the supplied initialization parameters.

setAccessibleback to summary
public void setAccessible(boolean accessible)