View Javadoc

1   //#############################################
2   //## file: HtmlParser.java
3   //## Generated by Byacc/j
4   //#############################################
5   package hotsax.html.sax;
6   
7   /***
8    * BYACC/J Semantic Value for parser: HtmlParser
9    * This class provides some of the functionality
10   * of the yacc/C 'union' directive
11   */
12  public class HtmlParserVal
13  {
14  /***
15   * integer value of this 'union'
16   */
17  public int ival;
18  
19  /***
20   * double value of this 'union'
21   */
22  public double dval;
23  
24  /***
25   * string value of this 'union'
26   */
27  public String sval;
28  
29  /***
30   * object value of this 'union'
31   */
32  public Object obj;
33  
34  //#############################################
35  //## C O N S T R U C T O R S
36  //#############################################
37  /***
38   * Initialize me as an int
39   */
40  public HtmlParserVal(int val)
41  {
42    ival=val;
43  }
44  
45  /***
46   * Initialize me as a double
47   */
48  public HtmlParserVal(double val)
49  {
50    dval=val;
51  }
52  
53  /***
54   * Initialize me as a string
55   */
56  public HtmlParserVal(String val)
57  {
58    sval=val;
59  }
60  
61  /***
62   * Initialize me as an Object
63   */
64  public HtmlParserVal(Object val)
65  {
66    obj=val;
67  }
68  }//end class
69  
70  //#############################################
71  //## E N D    O F    F I L E
72  //#############################################