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