1 package hotsax.html.sax; 2 3 4 7 8 class Yytoken { 9 public int m_index; 10 public String m_text; 11 12 public final static int UNDEFINED = HtmlParser.UNDEFINED; public final static int SOF =HtmlParser.SOF; public final static int TAG_START =HtmlParser.TAG_START; 15 public final static int TAG_END = HtmlParser.TAG_END; 16 public final static int TAG_EMPTY = HtmlParser.TAG_EMPTY; 17 public final static int ATTR = HtmlParser.ATTR; 18 public final static int VAL = HtmlParser.VAL; 19 public final static int TEXT = HtmlParser.TEXT; 20 public final static int COMMENT = HtmlParser.COMMENT; 21 public final static int PI = HtmlParser.PI; 22 public final static int DOCTYPE = HtmlParser.DOCTYPE; 23 public final static int CDATA = HtmlParser.CDATA; 24 public final static int TAG_START_COMPLETE = HtmlParser.TAG_START_COMPLETE; public final static int EOF = HtmlParser.EOF; 26 27 Yytoken (int index, String text) { 28 m_index = index; 29 m_text = text; 30 } 31 32 33 41 public String toString() { 42 return ": |"+m_text+ "| type(" + m_index + "):" + HtmlParser.yyname[m_index]; 43 } 44 } 45 | Popular Tags |