Package org.eclipse.jdi.internal.jdwp

Examples of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket


    if (fSignature != null) {
      return fSignature;
    }
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_SIGNATURE, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      setSignature(readString("signature", replyData)); //$NON-NLS-1$
      return fSignature;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here


    if (fGotClassFileVersion)
      return fClassFileVersion;

    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.HCR_GET_CLASS_VERSION, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fIsHCREligible = readBoolean("HCR eligible", replyData); //$NON-NLS-1$
      fIsVersionKnown = readBoolean("version known", replyData); //$NON-NLS-1$
      fClassFileVersion = readInt("class file version", replyData); //$NON-NLS-1$
      fGotClassFileVersion = true;
      return fClassFileVersion;
View Full Code Here

   * @throws AbsentInformationException
   */
  private void getSourceDebugExtension() throws AbsentInformationException {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_SOURCE_DEBUG_EXTENSION, this);
      if (replyPacket.errorCode() == JdwpReplyPacket.ABSENT_INFORMATION) {
        throw new AbsentInformationException(
            JDIMessages.ReferenceTypeImpl_31);
      }
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      fSmap = readString(JDIMessages.ReferenceTypeImpl_32, replyData);
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
View Full Code Here

    if (fSourceName != null || isSourceDebugExtensionAvailable()) {
      return;
    }
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.RT_SOURCE_FILE, this);
      if (replyPacket.errorCode() == JdwpReplyPacket.ABSENT_INFORMATION) {
        throw new AbsentInformationException(
            JDIMessages.ReferenceTypeImpl_Source_name_is_not_known_7);
      }

      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      fSourceName = readString("source name", replyData); //$NON-NLS-1$
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
    } finally {
      handledJdwpRequest();
View Full Code Here

   */
  public String value() {
    // Note that this information should not be cached.
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(JdwpCommandPacket.SR_VALUE,
          this);
      defaultReplyErrorHandler(replyPacket.errorCode());

      DataInputStream replyData = replyPacket.dataInStream();
      String result = readString("value", replyData); //$NON-NLS-1$
      return result;
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
View Full Code Here

   * @returns Returns the ReferenceType corresponding to this class object.
   */
  public ReferenceType reflectedType() {
    initJdwpRequest();
    try {
      JdwpReplyPacket replyPacket = requestVM(
          JdwpCommandPacket.COR_REFLECTED_TYPE, this);
      defaultReplyErrorHandler(replyPacket.errorCode());
      DataInputStream replyData = replyPacket.dataInStream();
      return ReferenceTypeImpl.readWithTypeTag(this, replyData);
    } catch (IOException e) {
      defaultIOExceptionHandler(e);
      return null;
    } finally {
View Full Code Here

TOP

Related Classes of org.eclipse.jdi.internal.jdwp.JdwpReplyPacket

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.