KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jacorb.idl.runtime;
2
3 /** This subclass of token represents symbols that need to maintain one
4  * char 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 char_token
13     extends token
14 {
15     /** Full constructor. */
16     public char_token(int term_num, char v)
17     {
18     /* super class does most of the work */
19     super(term_num);
20     char_val = v;
21     }
22
23     /** Constructor with default value of 0 */
24     public char_token(int term_num)
25     {
26     this(term_num, '\0');
27     }
28     
29     /** The stored char value. */
30     public char char_val;
31 };
32
33
34
Popular Tags