com.badlogic.gdx.utils.reflect
Class Constructor

java.lang.Object
  extended by com.badlogic.gdx.utils.reflect.Constructor

public final class Constructor
extends Object

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

Author:
nexsoftware

Method Summary
 Class getDeclaringClass()
          Returns the Class object representing the class or interface that declares the constructor.
 Class[] getParameterTypes()
          Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor.
 boolean isAccessible()
           
 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.
 void setAccessible(boolean accessible)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParameterTypes

public Class[] getParameterTypes()
Returns an array of Class objects that represent the formal parameter types, in declaration order, of the constructor.


getDeclaringClass

public Class getDeclaringClass()
Returns the Class object representing the class or interface that declares the constructor.


isAccessible

public boolean isAccessible()

setAccessible

public void setAccessible(boolean accessible)

newInstance

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.

Throws:
ReflectionException


Copyright © 2013. All Rights Reserved.