blob: b46bcc70ca7444587ad93e4cd1910e1ba3697c96 [file] [log] [blame]
package org.eclipse.jdt.internal.debug.core.model;
/**********************************************************************
Copyright (c) 2000, 2002 IBM Corp. All rights reserved.
This file is 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
**********************************************************************/
/**
* 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();
}
}