| /******************************************************************************* |
| * Copyright (c) 2000, 2003 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-v10.html |
| * |
| * Contributors: |
| * IBM Corporation - initial API and implementation |
| *******************************************************************************/ |
| package org.eclipse.jdt.internal.debug.core.model; |
| |
| |
| /** |
| * Void type. Since it is not possible to retrieve the |
| * void type from the target VM on demand, there is a |
| * special implementation for the void type. |
| */ |
| |
| public class JDIVoidType extends JDIType { |
| |
| /** |
| * Constructs a new void type for the given VM. |
| */ |
| protected JDIVoidType(JDIDebugTarget target) { |
| super(target, null); |
| } |
| |
| /** |
| * @see IJavaType#getName() |
| */ |
| public String getName() { |
| return "void"; //$NON-NLS-1$ |
| } |
| |
| /** |
| * @see IJavaType#getSignature() |
| */ |
| public String getSignature() { |
| return "V"; //$NON-NLS-1$ |
| } |
| /** |
| * @see java.lang.Object#equals(Object) |
| */ |
| public boolean equals(Object object) { |
| return object instanceof JDIVoidType && getDebugTarget().equals(((JDIVoidType)object).getDebugTarget()); |
| } |
| |
| /** |
| * @see java.lang.Object#hashCode() |
| */ |
| public int hashCode() { |
| return super.hashCode(); |
| } |
| |
| } |
| |