1 package jde.debugger.spec;
4 import com.sun.jdi.request.*;
5 import jde.debugger.JDEException;
8 * ModificationWatchpointSpec.java
12 * Created: Tue Aug 3 15:42:41 1999
16 * @version $Revision: 1.3 $
19 public class ModificationWatchpointSpec extends WatchpointSpec {
21 public ModificationWatchpointSpec(ReferenceTypeSpec refSpec, String fieldName) {
22 super(refSpec, fieldName);
25 boolean resolve(ReferenceType refType) throws JDEException {
26 Field field = refType.fieldByName(fieldName);
28 throw new JDEException("'"+fieldName+"' does not exist in the class");
30 EventRequest er = refType.virtualMachine().eventRequestManager().createModificationWatchpointRequest(field);
35 } // ModificationWatchpointSpec
38 * $Log: ModificationWatchpointSpec.java,v $
39 * Revision 1.3 2003/01/15 06:06:15 paulk
40 * Petter Mahlen's changes.
44 // End of ModificationWatchpointSpec.java