KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > jdi > internal > VoidTypeImpl


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;
12
13
14 import com.sun.jdi.Value;
15 import com.sun.jdi.VoidType;
16
17 /**
18  * this class implements the corresponding interfaces
19  * declared by the JDI specification. See the com.sun.jdi package
20  * for more information.
21  *
22  */

23 public class VoidTypeImpl extends TypeImpl implements VoidType {
24     /**
25      * Creates new instance.
26      */

27     public VoidTypeImpl(VirtualMachineImpl vmImpl) {
28         super("VoidType", vmImpl, "void" , "V"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
29
}
30
31     /**
32      * @return Returns modifier bits.
33      */

34     public int modifiers() {
35         throw new InternalError JavaDoc(JDIMessages.VoidTypeImpl_A_VoidType_does_not_have_modifiers_1);
36     }
37     
38     /**
39      * @return Create a null value instance of the type.
40      */

41     public Value createNullValue() {
42         return new VoidValueImpl(virtualMachineImpl());
43     }
44 }
45
Popular Tags