Package gnu.classpath.jdwp.id

Examples of gnu.classpath.jdwp.id.ObjectId


  }

  private void executeDisableCollection(ByteBuffer bb, DataOutputStream os)
    throws JdwpException, IOException
  {
    ObjectId oid = idMan.readObjectId(bb);
    oid.disableCollection();
  }
View Full Code Here


  }

  private void executeEnableCollection(ByteBuffer bb, DataOutputStream os)
    throws JdwpException, IOException
  {
    ObjectId oid = idMan.readObjectId(bb);
    oid.enableCollection();
  }
View Full Code Here

  }

  private void executeIsCollected(ByteBuffer bb, DataOutputStream os)
    throws JdwpException, IOException
  {
    ObjectId oid = idMan.readObjectId(bb);
    boolean collected = (oid.getReference().get () == null);
    os.writeBoolean(collected);
  }
View Full Code Here

  }

  public void executeReflectedType(ByteBuffer bb, DataOutputStream os)
    throws JdwpException, IOException
  {
    ObjectId oid = idMan.readObjectId(bb);
    Class clazz = (Class) oid.getObject();

    // The difference between a ClassObjectId and a ReferenceTypeId is one is
    // stored as an ObjectId and the other as a ReferenceTypeId.
    ReferenceTypeId refId = idMan.getReferenceTypeId(clazz);
    refId.writeTagged(os);
View Full Code Here

  protected void _writeData(DataOutputStream outStream)
    throws IOException
  {
    VMIdManager idm = VMIdManager.getDefault();
    ThreadId tid = (ThreadId) idm.getObjectId(_thread);
    ObjectId oid = idm.getObjectId(_exception);

    tid.write(outStream);
    _location.write(outStream);
    oid.writeTagged(outStream);
    _catchLocation.write(outStream);

  }
View Full Code Here

            int size = bb.getInt();
            int depth = bb.getInt();
            filter = new StepFilter(tid, size, depth);
            break;
          case JdwpConstants.ModKind.INSTANCE_ONLY:
            ObjectId oid = idMan.readObjectId(bb);
            filter = new InstanceOnlyFilter(oid);
            break;
          default:
            throw new NotImplementedException("modKind " + modKind
                                              + " is not implemented.");
View Full Code Here

  }

  public void executeVisibleClasses(ByteBuffer bb, DataOutputStream os)
      throws JdwpException, IOException
  {
    ObjectId oId = idMan.readObjectId(bb);
    ClassLoader cl = (ClassLoader) oId.getObject();
    ArrayList loadRequests = VMVirtualMachine.getLoadRequests(cl);
    os.writeInt(loadRequests.size());
    for (Iterator iter = loadRequests.iterator(); iter.hasNext();)
      {
        Class clazz = (Class)iter.next();
View Full Code Here

  }

  private void executeLength(ByteBuffer bb, DataOutputStream os)
    throws InvalidObjectException, IOException
  {
    ObjectId oid = idMan.readObjectId(bb);
    Object array = oid.getObject();
    os.writeInt(Array.getLength(array));
  }
View Full Code Here

  }

  private void executeGetValues(ByteBuffer bb, DataOutputStream os)
    throws JdwpException, IOException
  {
    ObjectId oid = idMan.readObjectId(bb);
    Object array = oid.getObject();
    int first = bb.getInt();
    int length = bb.getInt();

    // We need to write out the byte signifying the type of array first
    Class clazz = array.getClass().getComponentType();
View Full Code Here

  }

  private void executeSetValues(ByteBuffer bb, DataOutputStream os)
    throws IOException, JdwpException
  {
    ObjectId oid = idMan.readObjectId(bb);
    Object array = oid.getObject();
    int first = bb.getInt();
    int length = bb.getInt();
    Class type = array.getClass().getComponentType();
    for (int i = first; i < first + length; i++)
      {
View Full Code Here

TOP

Related Classes of gnu.classpath.jdwp.id.ObjectId

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.