1 11 package org.eclipse.jdi.internal.event; 12 13 14 import java.io.DataInputStream ; 15 import java.io.IOException ; 16 17 import org.eclipse.jdi.internal.MirrorImpl; 18 import org.eclipse.jdi.internal.ReferenceTypeImpl; 19 import org.eclipse.jdi.internal.ThreadReferenceImpl; 20 import org.eclipse.jdi.internal.VirtualMachineImpl; 21 import org.eclipse.jdi.internal.request.RequestID; 22 23 import com.sun.jdi.ReferenceType; 24 import com.sun.jdi.event.ClassPrepareEvent; 25 26 32 public class ClassPrepareEventImpl extends EventImpl implements ClassPrepareEvent { 33 34 public static final byte EVENT_KIND = EVENT_CLASS_PREPARE; 35 36 37 private ReferenceTypeImpl fReferenceType; 38 39 42 private ClassPrepareEventImpl(VirtualMachineImpl vmImpl, RequestID requestID) { 43 super("ClassPrepareEvent", vmImpl, requestID); } 45 46 49 public static ClassPrepareEventImpl read(MirrorImpl target, RequestID requestID, DataInputStream dataInStream) throws IOException { 50 VirtualMachineImpl vmImpl = target.virtualMachineImpl(); 51 ClassPrepareEventImpl event = new ClassPrepareEventImpl(vmImpl, requestID); 52 event.fThreadRef = ThreadReferenceImpl.read(target, dataInStream); 53 event.fReferenceType = ReferenceTypeImpl.readWithTypeTagAndSignature(target, false, dataInStream); 54 target.readInt("class status", ReferenceTypeImpl.classStatusStrings(), dataInStream); return event; 56 } 57 58 61 public ReferenceType referenceType() { 62 return fReferenceType; 63 } 64 65 68 public String classSignature() { 69 return referenceType().signature(); 70 } 71 } 72 | Popular Tags |