Package gnu.classpath.jdwp.id

Examples of gnu.classpath.jdwp.id.ReferenceTypeId


    byte suspendPolicy = bb.get();
    int modifiers = bb.getInt();

    EventRequest eventReq = new EventRequest(eventKind, suspendPolicy);
    IEventFilter filter = null;
    ReferenceTypeId refId;
    for (int i = 0; i < modifiers; i++)
      {
        byte modKind = bb.get();
        switch (modKind)
          {
          case JdwpConstants.ModKind.COUNT:
            filter = new CountFilter(bb.getInt());
            break;
          case JdwpConstants.ModKind.CONDITIONAL:
            filter = new ConditionalFilter(idMan.readObjectId(bb));
            break;
          case JdwpConstants.ModKind.THREAD_ONLY:
            filter = new ThreadOnlyFilter((ThreadId) idMan.readObjectId(bb));
            break;
          case JdwpConstants.ModKind.CLASS_ONLY:
            filter = new ClassOnlyFilter(idMan.readReferenceTypeId(bb));
            break;
          case JdwpConstants.ModKind.CLASS_MATCH:
            filter = new ClassMatchFilter(JdwpString.readString(bb));
            break;
          case JdwpConstants.ModKind.CLASS_EXCLUDE:
            filter = new ClassExcludeFilter(JdwpString.readString(bb));
            break;
          case JdwpConstants.ModKind.LOCATION_ONLY:
            filter = new LocationOnlyFilter(new Location(bb));
            break;
          case JdwpConstants.ModKind.EXCEPTION_ONLY:
            long id = bb.getLong();
            if (id == 0)
              refId = null;
            else
              refId = idMan.getReferenceType(id);
            boolean caught = (bb.get() == 0) ? false : true;
            boolean unCaught = (bb.get() == 0) ? false : true;
            filter = new ExceptionOnlyFilter(refId, caught, unCaught);
            break;
          case JdwpConstants.ModKind.FIELD_ONLY:
            refId = idMan.readReferenceTypeId(bb);
            ReferenceTypeId fieldId = idMan.readReferenceTypeId(bb);
            filter = new FieldOnlyFilter(refId, fieldId);
            break;
          case JdwpConstants.ModKind.STEP:
            ThreadId tid = (ThreadId) idMan.readObjectId(bb);
            int size = bb.getInt();
View Full Code Here


    ArrayList loadRequests = VMVirtualMachine.getLoadRequests(cl);
    os.writeInt(loadRequests.size());
    for (Iterator iter = loadRequests.iterator(); iter.hasNext();)
      {
        Class clazz = (Class)iter.next();
        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);
    ReferenceTypeId rid = idm.getReferenceTypeId (_class);

    tid.write (outStream);
    rid.writeTagged (outStream);
    JdwpString.writeString (outStream,
          Signature.computeClassSignature (_class));
    outStream.writeInt (_status);
  }
View Full Code Here

}

public ReferenceTypeId getReferenceTypeId(Class clazz)
{
  ReferenceKey ref = new ReferenceKey(clazz);
  ReferenceTypeId id = (ReferenceTypeId) classTable.get(ref);
  if (id == null)
  {
   id = newReferenceTypeId(ref);
   classTable.put(ref, id);
   ridTable.put(new Long(id.getId()), id);
  }
  return id;
}
View Full Code Here

public ReferenceTypeId getReferenceType(long id)
  throws InvalidClassException
{
  /* if (id == 0L)
   return new NullObjectId(); */
  ReferenceTypeId rid = (ReferenceTypeId) ridTable.get(new Long(id));
  if (rid == null)
   throw new InvalidClassException(id);
  return rid;
}
View Full Code Here

private static ReferenceTypeId newReferenceTypeId(SoftReference ref)
{
  Class clazz = (Class) ref.get();
  if (clazz == null)
   return null;
  ReferenceTypeId id;
  if (clazz.isArray())
   id = new ArrayReferenceTypeId();
   else if (clazz.isInterface())
    id = new InterfaceReferenceTypeId();
    else id = new ClassReferenceTypeId();
  id.setReference(ref);
  synchronized (ridLock)
  {
   id.setId(++lastRid);
  }
  return id;
}
View Full Code Here

TOP

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

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.