54 /** 55 * Find the immediate dependencies of a given class file. 56 * @param classfile the class file to be examined 57 * @return the dependencies located in the given class file. 58 */ 59 public Iterable<? extends Dependency> findDependencies(ClassFile classfile); 60 } 61 62 63 /** 64 * A location somewhere within a class. Subtypes of {@code Location} 65 * may be used to provide additional detail about the location. 66 */ 67 public interface Location { 68 /** 69 * Get the name of the class containing the location. 70 * This name will be used to locate the class file for transitive 71 * dependency analysis. 72 * @return the name of the class containing the location. 73 */ 74 String getClassName(); 75 } 76 77 78 /** 79 * Get the location that has the dependency. 80 * @return the location that has the dependency. 81 */ 82 Location getOrigin(); 83 84 /** 85 * Get the location that is being depended upon. 86 * @return the location that is being depended upon. 87 */ 88 Location getTarget(); 89 } 90 | 54 /** 55 * Find the immediate dependencies of a given class file. 56 * @param classfile the class file to be examined 57 * @return the dependencies located in the given class file. 58 */ 59 public Iterable<? extends Dependency> findDependencies(ClassFile classfile); 60 } 61 62 63 /** 64 * A location somewhere within a class. Subtypes of {@code Location} 65 * may be used to provide additional detail about the location. 66 */ 67 public interface Location { 68 /** 69 * Get the name of the class containing the location. 70 * This name will be used to locate the class file for transitive 71 * dependency analysis. 72 * @return the name of the class containing the location. 73 */ 74 String getName(); 75 76 /** 77 * Get the fully-qualified name of the class containing the location. 78 * @return the fully-qualified name of the class containing the location. 79 */ 80 String getClassName(); 81 82 /** 83 * Get the package name of the class containing the location. 84 * @return the package name of the class containing the location. 85 */ 86 String getPackageName(); 87 } 88 89 90 /** 91 * Get the location that has the dependency. 92 * @return the location that has the dependency. 93 */ 94 Location getOrigin(); 95 96 /** 97 * Get the location that is being depended upon. 98 * @return the location that is being depended upon. 99 */ 100 Location getTarget(); 101 } 102 |