1 11 package org.eclipse.jdt.internal.debug.core.model; 12 13 14 import org.eclipse.jdt.debug.core.IJavaClassObject; 15 import org.eclipse.jdt.debug.core.IJavaType; 16 17 import com.sun.jdi.ClassObjectReference; 18 19 25 public class JDIClassObjectValue extends JDIObjectValue implements IJavaClassObject { 26 27 30 public JDIClassObjectValue(JDIDebugTarget target, ClassObjectReference object) { 31 super(target, object); 32 } 33 34 35 38 public IJavaType getInstanceType() { 39 return JDIType.createType((JDIDebugTarget)getDebugTarget(),getUnderlyingClassObject().reflectedType()); 40 } 41 42 45 protected ClassObjectReference getUnderlyingClassObject() { 46 return (ClassObjectReference)getUnderlyingValue(); 47 } 48 } 49 50 | Popular Tags |