KickJava   Java API By Example, From Geeks To Geeks.

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


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

11
12 public class str_token
13     extends token
14 {
15
16   /** Full constructor. */
17   public str_token(int term_num, String JavaDoc v)
18     {
19       /* super class does most of the work */
20       super(term_num);
21       str_val = v;
22     }
23
24   /** Constructor for value defaulting to an empty string. */
25   public str_token(int term_num)
26     {
27       this(term_num, "");
28     }
29
30   /** The stored string value. */
31   public String JavaDoc str_val;
32
33 };
34
35
36
Popular Tags