KickJava   Java API By Example, From Geeks To Geeks.

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


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.FloatType;
15 import com.sun.jdi.Value;
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 FloatTypeImpl extends PrimitiveTypeImpl implements FloatType {
24     /**
25      * Creates new instance.
26      */

27     public FloatTypeImpl(VirtualMachineImpl vmImpl) {
28         super("FloatType", vmImpl, "float" , "F"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
29
}
30     
31     /**
32      * @returns primitive type tag.
33      */

34     public byte tag() {
35         return FloatValueImpl.tag;
36     }
37     
38     /**
39      * @return Create a null value instance of the type.
40      */

41     public Value createNullValue() {
42         return virtualMachineImpl().mirrorOf(0.0f);
43     }
44 }
45
Popular Tags