KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdt > internal > debug > core > model > JDIVoidType


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.jdt.internal.debug.core.model;
12
13  
14 /**
15  * Void type. Since it is not possible to retrieve the
16  * void type from the target VM on demand, there is a
17  * special implementation for the void type.
18  */

19
20 public class JDIVoidType extends JDIType {
21
22     /**
23      * Constructs a new void type for the given VM.
24      */

25     protected JDIVoidType(JDIDebugTarget target) {
26         super(target, null);
27     }
28
29     /**
30      * @see IJavaType#getName()
31      */

32     public String JavaDoc getName() {
33         return "void"; //$NON-NLS-1$
34
}
35     
36     /**
37      * @see IJavaType#getSignature()
38      */

39     public String JavaDoc getSignature() {
40         return "V"; //$NON-NLS-1$
41
}
42     /**
43      * @see java.lang.Object#equals(Object)
44      */

45     public boolean equals(Object JavaDoc object) {
46         return object instanceof JDIVoidType && getDebugTarget().equals(((JDIVoidType)object).getDebugTarget());
47     }
48
49     /**
50      * @see java.lang.Object#hashCode()
51      */

52     public int hashCode() {
53         return super.hashCode();
54     }
55
56 }
57
58
Popular Tags