What does "codlin" mean?

Codlin: (a) An apple fit to stew or coddle. (b) An immature apple. A codling when 't is almost an apple. Shak. Codling moth (Zoöl.), a small moth (Carpocapsa Pomonella), which in the larval state (known as the apple worm) lives in apples, often doing great damage to the crop.

Sources