39 |
|
|
40 |
package gnu.classpath.jdwp.processor; |
package gnu.classpath.jdwp.processor; |
41 |
|
|
|
import gnu.classpath.jdwp.Jdwp; |
|
42 |
import gnu.classpath.jdwp.JdwpConstants; |
import gnu.classpath.jdwp.JdwpConstants; |
43 |
import gnu.classpath.jdwp.exception.JdwpException; |
import gnu.classpath.jdwp.exception.JdwpException; |
44 |
import gnu.classpath.jdwp.exception.JdwpInternalErrorException; |
import gnu.classpath.jdwp.exception.JdwpInternalErrorException; |
45 |
import gnu.classpath.jdwp.exception.NotImplementedException; |
import gnu.classpath.jdwp.exception.NotImplementedException; |
|
import gnu.classpath.jdwp.id.IdManager; |
|
46 |
import gnu.classpath.jdwp.id.ObjectId; |
import gnu.classpath.jdwp.id.ObjectId; |
47 |
import gnu.classpath.jdwp.id.ReferenceTypeId; |
import gnu.classpath.jdwp.id.ReferenceTypeId; |
48 |
|
|
55 |
* |
* |
56 |
* @author Aaron Luchko <aluchko@redhat.com> |
* @author Aaron Luchko <aluchko@redhat.com> |
57 |
*/ |
*/ |
58 |
public class ClassObjectReferenceCommandSet implements CommandSet |
public class ClassObjectReferenceCommandSet |
59 |
|
extends CommandSet |
60 |
{ |
{ |
|
// Manages all the different ids that are assigned by jdwp |
|
|
private final IdManager idMan = Jdwp.getIdManager(); |
|
|
|
|
61 |
public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command) |
public boolean runCommand(ByteBuffer bb, DataOutputStream os, byte command) |
62 |
throws JdwpException |
throws JdwpException |
63 |
{ |
{ |
85 |
public void executeReflectedType(ByteBuffer bb, DataOutputStream os) |
public void executeReflectedType(ByteBuffer bb, DataOutputStream os) |
86 |
throws JdwpException, IOException |
throws JdwpException, IOException |
87 |
{ |
{ |
88 |
ObjectId oid = idMan.readId(bb); |
ObjectId oid = idMan.readObjectId(bb); |
89 |
Class clazz = (Class) oid.getObject(); |
Class clazz = (Class) oid.getObject(); |
90 |
|
|
91 |
// The difference between a ClassObjectId and a ReferenceTypeId is one is |
// The difference between a ClassObjectId and a ReferenceTypeId is one is |