Package org.eclipse.jdi.internal.jdwp

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket.dataInStream()


      switch (replyPacket.errorCode()) {
      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fThreadGroup = ThreadGroupReferenceImpl.read(this, replyData);
      return fThreadGroup;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here


      case JdwpReplyPacket.INVALID_THREAD:
        throw new ObjectCollectedException();
      }
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      boolean result = readBoolean("is enclosed", replyData); //$NON-NLS-1$
      return result;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return false;
View Full Code Here

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_MODIFIERS, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fModifierBits = readInt(
          "modifiers", AccessibleImpl.getModifierStrings(), replyData); //$NON-NLS-1$
      return fModifierBits;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
View Full Code Here

        // @see Bug 12966
        return Collections.EMPTY_LIST;
      default:
        defaultReplyErrorHandler(replyPacket.errorCode());
      }
      DataInputStream replyData = replyPacket.dataInStream();
      List<InterfaceType> elements = new ArrayList<InterfaceType>();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      for (int i = 0; i < nrOfElements; i++) {
        InterfaceTypeImpl ref = InterfaceTypeImpl.read(this, replyData);
        if (ref == null) {
View Full Code Here

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_CLASS_LOADER, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fClassLoader = ClassLoaderReferenceImpl.read(this, replyData);
      return fClassLoader;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_CLASS_OBJECT, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fClassObject = ClassObjectReferenceImpl.read(this, replyData);
      return fClassObject;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_STATUS, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      int status = readInt("status", classStatusStrings(), replyData); //$NON-NLS-1$
      return status;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return 0;
View Full Code Here

          .isJdwpVersionGreaterOrEqual(1, 5);
      int jdwpCommand = withGenericSignature ? JdwpCommandPacket.RT_FIELDS_WITH_GENERIC
          : JdwpCommandPacket.RT_FIELDS;
      JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      List<Field> elements = new ArrayList<Field>();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      for (int i = 0; i < nrOfElements; i++) {
        FieldImpl elt = FieldImpl.readWithNameSignatureModifiers(this,
            this, withGenericSignature, replyData);
View Full Code Here

      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_GET_VALUES, outBytes);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      HashMap<Field, Value> map = new HashMap<Field, Value>();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      if (nrOfElements != fieldsSize)
        throw new InternalError(
            JDIMessages.ReferenceTypeImpl_Retrieved_a_different_number_of_values_from_the_VM_than_requested_3);
View Full Code Here

          .isJdwpVersionGreaterOrEqual(1, 5);
      int jdwpCommand = withGenericSignature ? JdwpCommandPacket.RT_METHODS_WITH_GENERIC
          : JdwpCommandPacket.RT_METHODS;
      JdwpReplyPacket replyPacket = requestVM(jdwpCommand, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      List<Method> elements = new ArrayList<Method>();
      int nrOfElements = readInt("elements", replyData); //$NON-NLS-1$
      for (int i = 0; i < nrOfElements; i++) {
        MethodImpl elt = MethodImpl.readWithNameSignatureModifiers(
            this, this, withGenericSignature, replyData);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.