|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.squawk.debugger.sda.ObjectManager
public class ObjectManager
This class manages mapping objects in the VM to JDWP objectID
s.
This includes the JDWP types: objectID, tagged-objectID, threadID, threadGroupID,
stringID, classObjectID, arrayID.
It does NOT include referenceTypeID (and subtypes classID, arrayTypeID, interfaceID),
methodID, or fieldID.
Constructor Summary | |
---|---|
ObjectManager()
|
Method Summary | |
---|---|
Klass |
getClassForID(DataType.ObjectID objectID)
|
DataType.ObjectID |
getIDForObject(Object object)
Gets a JDWP objectID for an object. |
Object |
getObjectForID(DataType.ObjectID objectID)
Gets the object corresponding to a given JDWP objectID value. |
String |
getStringForID(DataType.ObjectID objectID)
|
VMThread |
getThreadForID(DataType.ObjectID objectID)
|
void |
writeTaggedObject(PacketOutputStream out,
Object object,
String s)
Writes the JDWP tag and object ID of an object to a given packet stream. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectManager()
Method Detail |
---|
public DataType.ObjectID getIDForObject(Object object)
object
- the object to get an identifier for
object
public Object getObjectForID(DataType.ObjectID objectID) throws SDWPException
objectID
- the identifier denoting an object
id
or null if the object has been garbage collected
SDWPException
- if objectID
does not denote a null object but the object it does denote
has been garbage collectedpublic VMThread getThreadForID(DataType.ObjectID objectID) throws SDWPException
SDWPException
public String getStringForID(DataType.ObjectID objectID) throws SDWPException
SDWPException
public Klass getClassForID(DataType.ObjectID objectID) throws SDWPException
SDWPException
public void writeTaggedObject(PacketOutputStream out, Object object, String s) throws IOException
out
- the stream to write toobject
- the object to writes
- prefix to use if this write is logged. A value of null prevents logging altogether.
IOException
|
" 2013 FRC Java API " |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |