A little boy was so severely injured he will eventually die from the damage inflicted upon him, a court has heard.