Even hatching would be useless. Suppose you have a Nidoran egg. You can't know if it was put by a Nidoran, a Nidorina, a Nidoqueen or a Ditto just by looking at the egg.
Actually I did solve the problem. I just wanted to know how the public interface of the pokemon class worked because I can't find it anywhere. Luckily there was some gettor function called some lines below in the code so I just copy pasted and well, it works.