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.BooleanType;
13: import com.sun.jdi.Value;
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 BooleanTypeImpl extends PrimitiveTypeImpl implements
22: BooleanType {
23: /**
24: * Creates new instance.
25: */
26: public BooleanTypeImpl(VirtualMachineImpl vmImpl) {
27: super ("BooleanType", vmImpl, "boolean", "Z"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
28: }
29:
30: /**
31: * @returns primitive type tag.
32: */
33: public byte tag() {
34: return BooleanValueImpl.tag;
35: }
36:
37: /**
38: * @return Create a null value instance of the type.
39: */
40: public Value createNullValue() {
41: return virtualMachineImpl().mirrorOf(false);
42: }
43: }
|