语法分析下,是虚拟语气吗?

问题描述:

语法分析下,是虚拟语气吗?
When the peasant saw how well the doctor ate and drank, his heart took a longing for the same things, and he decided that he would like to have been a doctor.农夫看见大夫的饭菜如此丰盛,从内心感到羡慕,心想如果自己也是大夫该多好.
最后一句是虚拟语气吗,为什么用have been 而不是 be a doctor!谁的语法好,帮着分析下,谢谢!

是虚拟的,he would like to have been a doctor..虚拟语气的过去完成时态...正常就应该是这样用,不是用be a doctor