View Javadoc
1 /*** 2 * B94Registry 3 * 4 * This stores the collectors for the Ball 94 Algorithm. 5 */ 6 7 package junit.quilt.cover.ball94; 8 9 import java.net.*; 10 11 import junit.quilt.framework.*; 12 13 public class B94Registry extends QuiltRegistry 14 { 15 private static final String LEVELS[] = {"Instrument", "Class", "Method"}; 16 17 public B94Registry() { 18 super( "Ball-Larus 1994" ); 19 setLevels( LEVELS ); 20 } 21 22 protected ClassLoader newInstClassLoader( String packages[], 23 URL path[], 24 ClassLoader parent ) { 25 return> new B94ClassLoader( packages, path, parent, this ); 26 } 27 /*** 28 * Store a B94Collector. 29 * 30 * @param classname Class name 31 * @param methodname Method name 32 * @param b94 a B94Collector value. 33 */ 34 public void bind( String className, String methodName, 35 B94Collector b94 ) 36 { 37 registerCollector( new String[]{className, methodName}, b94 ); 38 } 39 40 /*** 41 * Lookup a B94Collector given the class and method. 42 * 43 * @param className Class Name. 44 * @param methodName Method Name. 45 * @return a B94Collector associated with the method. 46 */ 47 public B94Collector lookup( String className, String methodName) 48 { 49 return (B94Collector)get(new String[] {className, methodName}); 50 } 51 } 52

This page was automatically generated by Maven