Not via the API, as far as I'm aware. I think you would have to directly process byte code. I went searching through the ClassLoader API and the Package API and was surprised to find that there does not seem to be any way to get a collection of classes.