I'm writing an Annotation Processor (JSR 269). Once process the annotations in the Compilation Unit, I need to look for resources in some of the classes referenced in the Compilation Unit. After I do that I need to look in the jar that encloses the referenced class from the classpath. Looking through the API doc, I don't readily see a way to get the jar based on the Element. Do I need to look at the Filer API? Or is just what I am trying to do NOT possible?
If it's not possible I'll have to search the entire classpath and look for a particular class, interface, etc. (Element) within each jar to know where it came from.