Package com.sun.jdi

Examples of com.sun.jdi.ObjectReference


                  }
                });
          }
        } else {
          // add "this"
          ObjectReference t = getUnderlyingThisObject();
          if (t != null) {
            fVariables.add(new JDIThisVariable(
                (JDIDebugTarget) getDebugTarget(), t));
          }
        }
View Full Code Here


    Method method = getUnderlyingMethod();
    int index = 0;
    if (!method.isStatic()) {
      // update "this"
      ObjectReference thisObject;
      thisObject = getUnderlyingThisObject();
      JDIThisVariable oldThisObject = null;
      if (!fVariables.isEmpty()
          && fVariables.get(0) instanceof JDIThisVariable) {
        oldThisObject = (JDIThisVariable) fVariables.get(0);
View Full Code Here

    if (fStackFrame == null || fReceivingTypeName == null) {
      try {
        if (isObsolete()) {
          fReceivingTypeName = JDIDebugModelMessages.JDIStackFrame__unknown_receiving_type__2;
        } else {
          ObjectReference thisObject = getUnderlyingThisObject();
          if (thisObject == null) {
            fReceivingTypeName = getDeclaringTypeName();
          } else {
            fReceivingTypeName = JDIReferenceType
                .getGenericName(thisObject.referenceType());
          }
        }
      } catch (RuntimeException e) {
        if (getThread().isSuspended()) {
          targetRequestFailed(
View Full Code Here

   * @see IJavaStackFrame#getThis()
   */
  public IJavaObject getThis() throws DebugException {
    IJavaObject receiver = null;
    if (!isStatic()) {
      ObjectReference thisObject = getUnderlyingThisObject();
      if (thisObject != null) {
        receiver = (IJavaObject) JDIValue.createValue(
            (JDIDebugTarget) getDebugTarget(), thisObject);
      }
    }
View Full Code Here

        targetRequestFailed(
            MessageFormat.format(
                JDIDebugModelMessages.JDIClassType_exception_while_performing_method_lookup_for_constructor,
                e.toString(), signature), e);
      }
      ObjectReference result = javaThread.newInstance(clazz, method,
          arguments);
      return (IJavaObject) JDIValue.createValue(getJavaDebugTarget(),
          result);
    }
    requestFailed(
View Full Code Here

      arguments = new ArrayList<Value>(args.length);
      for (IJavaValue arg : args) {
        arguments.add(((JDIValue) arg).getUnderlyingValue());
      }
    }
    ObjectReference object = getUnderlyingObject();
    Method method = null;
    ReferenceType refType = getUnderlyingReferenceType();
    try {
      if (superSend) {
        // begin lookup in superclass
View Full Code Here

      arguments = new ArrayList<Value>(args.length);
      for (IJavaValue arg : args) {
        arguments.add(((JDIValue) arg).getUnderlyingValue());
      }
    }
    ObjectReference object = getUnderlyingObject();
    Method method = null;
    ReferenceType refType = getUnderlyingReferenceType();
    try {
      while (typeSignature != null && refType != null  && !refType.signature().equals(typeSignature)) {
        // lookup correct type through the hierarchy
View Full Code Here

   *
   * @see org.eclipse.jdt.debug.core.IJavaObject#getUniqueId()
   */
  public long getUniqueId() throws DebugException {
    try {
      ObjectReference underlyingObject = getUnderlyingObject();
      if (underlyingObject != null) {
        return underlyingObject.uniqueID();
      }
      return -1L;
    } catch (RuntimeException e) {
      targetRequestFailed(
          MessageFormat.format(
View Full Code Here

            JDIMessages.ThreadReferenceImpl_Thread_was_not_suspended_1);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      ObjectReference result = ObjectReferenceImpl.readObjectRefWithTag(
          this, replyData);
      return result;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here

      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();

      int owned = readInt("owned monitors", replyData); //$NON-NLS-1$
      List<com.sun.jdi.MonitorInfo> result = new ArrayList<com.sun.jdi.MonitorInfo>(owned);
      ObjectReference monitor = null;
      int depth = -1;
      for (int i = 0; i < owned; i++) {
        monitor = ObjectReferenceImpl.readObjectRefWithTag(this,
            replyData);
        depth = readInt("stack depth", replyData); //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of com.sun.jdi.ObjectReference

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.