View Javadoc
1 package junit.quilt.cover.generic; 2 3 /*** 4 * InstContext 5 * 6 * This holds several important bits of 7 * an instrumenting class loader. 8 * 9 * Basically, we do this so we don't have 10 * to pass the ConstantPool, Class and other 11 * assorted weirdness around. . . 12 */ 13 14 import org.apache.bcel.generic.*; 15 import java.util.HashMap; 16 17 public class InstContext 18 extends HashMap 19 { 20 21 public InstContext() { } 22 23 public ConstantPoolGen getConstantPoolGen() { 24 return (ConstantPoolGen) get("_ConstantPoolGen"); 25 } 26 27 public ClassGen getClassGen() { 28 return (ClassGen) get("_ClassGen"); 29 } 30 31 public void setConstantPoolGen( ConstantPoolGen pool ) { 32 put("_ConstantPoolGen", pool); 33 } 34 35 public void setClassGen( ClassGen clazz ) { 36 put("_ClassGen", clazz); 37 } 38 39 }

This page was automatically generated by Maven