1 package net.sf.jlayercheck.util.model;
2
3 import java.io.IOException;
4 import java.net.URL;
5 import java.util.Map;
6
7 import org.objectweb.asm.ClassVisitor;
8
9 public interface ClassSource {
10 /**
11 * Runs the given DependencyVisitor on the classes of this source.
12 *
13 * @param v
14 * @throws IOException
15 */
16 public void call(ClassVisitor v) throws IOException;
17
18 /**
19 * Returns a map that contains a mapping from the classname to
20 * the source file for a class for all classes found in the
21 * specified ClassSource.
22 *
23 * @return
24 */
25 public Map<String, URL> getSourceFiles();
26 }