KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > idl > runtime > float_token


1 package org.jacorb.idl.runtime;
2
3 /** This subclass of token represents symbols that need to maintain one
4  * float value as an attribute. It maintains that value in the public
5  * field int_val.
6  *
7  * @see org.jacorb.idl.runtime.str_token
8  * @version last updated: 1/7/96
9  * @author Scott Hudson
10  */

11
12 public class float_token
13     extends token
14 {
15     /** Full constructor. */
16     public float_token(int term_num, float v)
17     {
18         /* super class does most of the work */
19         super(term_num);
20         float_val = v;
21     }
22
23     /** Constructor with default value of 0.0. */
24     public float_token(int term_num)
25     {
26         this(term_num,0.0f);
27     }
28
29     /** The stored float value. */
30     public float float_val;
31 };
32
33
34
Popular Tags