Code example for Constructor

Methods: getParameterTypes

0
import java.lang.reflect.InvocationTargetException; 
 
public class FastConstructor extends FastMember 
{ 
    FastConstructor(FastClass fc, Constructor constructor) {
        super(fc, constructor, fc.getIndex(constructor.getParameterTypes()));
    } 
 
    public Class[] getParameterTypes() {
        return ((Constructor)member).getParameterTypes();
    } 
 
    public Class[] getExceptionTypes() {
        return ((Constructor)member).getExceptionTypes();
    } 
 
    public Object newInstance() throws InvocationTargetException {
        return fc.newInstance(index, null); 
    } 
 
    public Object newInstance(Object[] args) throws InvocationTargetException {