| package org.eclipse.jdi.internal.jdwp; |
| |
| /* |
| * (c) Copyright IBM Corp. 2000, 2001. |
| * All Rights Reserved. |
| */ |
| |
| import org.eclipse.jdi.internal.VirtualMachineImpl; |
| |
| /** |
| * This class implements the corresponding Java Debug Wire Protocol (JDWP) ID |
| * declared by the JDWP specification. |
| * |
| */ |
| public class JdwpMethodID extends JdwpID { |
| /** |
| * Creates new JdwpID. |
| */ |
| public JdwpMethodID(VirtualMachineImpl vmImpl) { |
| super(vmImpl); |
| } |
| |
| /** |
| * @return Returns true if two IDs refer to the same entity in the target VM. |
| * @see java.lang.Object#equals(Object) |
| */ |
| public boolean equals(Object object) { |
| return object != null && object.getClass().equals(this.getClass()) && fValue == ((JdwpMethodID)object).fValue; |
| } |
| |
| /** |
| * @return Returns VM specific size of ID. |
| */ |
| public int getSize() { |
| return fVirtualMachine.methodIDSize(); |
| } |
| |
| /** |
| * @return Returns true if ID is null. |
| */ |
| public boolean isNull() { |
| return false; |
| } |
| } |