KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdi > internal > jdwp > JdwpReferenceTypeID


1 /*******************************************************************************
2  * Copyright (c) 2000, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.jdi.internal.jdwp;
12
13
14 import org.eclipse.jdi.internal.VirtualMachineImpl;
15
16 /**
17  * This class implements the corresponding Java Debug Wire Protocol (JDWP) ID
18  * declared by the JDWP specification.
19  *
20  */

21 public class JdwpReferenceTypeID extends JdwpID {
22     /**
23      * Creates new JdwpID.
24      */

25     public JdwpReferenceTypeID(VirtualMachineImpl vmImpl) {
26         super(vmImpl);
27     }
28     
29     /**
30      * @return Returns VM specific size of ID.
31      */

32     public int getSize() {
33         return fVirtualMachine.referenceTypeIDSize();
34     }
35
36     /**
37      * @return Returns true if ID is null.
38      */

39     public boolean isNull() {
40         return fValue == VALUE_NULL;
41     }
42 }
43
Popular Tags