01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdi.internal;
11:
12: import com.sun.jdi.Value;
13: import com.sun.jdi.VoidType;
14:
15: /**
16: * this class implements the corresponding interfaces
17: * declared by the JDI specification. See the com.sun.jdi package
18: * for more information.
19: *
20: */
21: public class VoidTypeImpl extends TypeImpl implements VoidType {
22: /**
23: * Creates new instance.
24: */
25: public VoidTypeImpl(VirtualMachineImpl vmImpl) {
26: super ("VoidType", vmImpl, "void", "V"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
27: }
28:
29: /**
30: * @return Returns modifier bits.
31: */
32: public int modifiers() {
33: throw new InternalError(
34: JDIMessages.VoidTypeImpl_A_VoidType_does_not_have_modifiers_1);
35: }
36:
37: /**
38: * @return Create a null value instance of the type.
39: */
40: public Value createNullValue() {
41: return new VoidValueImpl(virtualMachineImpl());
42: }
43: }
|