There is a BBINCLUDED variable you can look at which will show all the files included by a given recipe and that will include classes.