Code example for Constructor

Methods: getGenericParameterTypes, getParameterTypes

0
            } 
        } 
 
        @Override 
        public Type getBaseType() {
            if (declaringConstructor.getGenericParameterTypes().length > getPosition()) {
                return declaringConstructor.getGenericParameterTypes()[getPosition()];
            } else { 
                return declaringConstructor.getParameterTypes()[getPosition()];
            } 
        } 
 
    } 
 
    private final int position;
 
    Parameter(int position) {
        this.position = position;
    } 
 
    public abstract Member getDeclaringMember();