1 11 package org.eclipse.jdi.internal; 12 13 import com.sun.jdi.InvalidStackFrameException; 14 import com.sun.jdi.MonitorInfo; 15 import com.sun.jdi.ObjectReference; 16 import com.sun.jdi.ThreadReference; 17 18 24 public class MonitorInfoImpl extends MirrorImpl implements MonitorInfo { 25 26 private ThreadReference fThread; 27 private ObjectReference fMonitor; 28 private int fDepth; 29 30 31 public MonitorInfoImpl(ThreadReference thread, int depth, ObjectReference monitor, VirtualMachineImpl virtualMachineImpl) { 32 super("MonitorInfoImpl", virtualMachineImpl); fThread = thread; 34 fDepth = depth; 35 fMonitor = monitor; 36 } 37 38 41 public ObjectReference monitor() throws InvalidStackFrameException { 42 return fMonitor; 43 } 44 45 48 public int stackDepth() throws InvalidStackFrameException { 49 return fDepth; 50 } 51 52 55 public ThreadReference thread() throws InvalidStackFrameException { 56 return fThread; 57 } 58 } 59 | Popular Tags |