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); 
    } 
 
Stop searching for code, let great code find you!  Add Codota to your java IDE