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