KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jacorb.idl.runtime;
2
3 /** This subclass of token represents symbols that need to maintain one
4  * int 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: 11/25/95
9  * @author Scott Hudson
10  */

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