Code example for Constructor

Methods: getDeclaringClass

    public String getName() {
        // this is different from the constructor name which is the full name 
        return constructor.getDeclaringClass().getSimpleName();
    protected Member getMember() {
        return constructor;
     * Create a new instance (implements Function). 
     * @param input the constructor arguments. 
     * @return a new instance. 
Connect your IDE to all the code out there  Get Codota for Java