[Htmlparser-cvs] htmlparser/src/org/htmlparser/lexerapplications/thumbelina Thumbelina.java,1.4,1.5
Brought to you by:
derrickoswald
From: Derrick O. <der...@us...> - 2004-05-24 16:19:07
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19028/src/org/htmlparser/lexerapplications/thumbelina Modified Files: Thumbelina.java Log Message: Part three of a multiphase refactoring. The three node types are now fronted by interfaces (program to the interface paradigm) with concrete implementations in the new htmlparser.nodes package. Classes from the lexer.nodes package are moved to this package, and obvious references to the concrete classes that got broken by this have been changed to use the interfaces where possible. Index: Thumbelina.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/lexerapplications/thumbelina/Thumbelina.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** Thumbelina.java 16 May 2004 17:59:56 -0000 1.4 --- Thumbelina.java 24 May 2004 16:18:17 -0000 1.5 *************** *** 64,69 **** import org.htmlparser.Node; import org.htmlparser.lexer.Lexer; - import org.htmlparser.lexer.nodes.TagNode; import org.htmlparser.util.ParserException; --- 64,69 ---- import org.htmlparser.Node; + import org.htmlparser.Tag; import org.htmlparser.lexer.Lexer; import org.htmlparser.util.ParserException; *************** *** 769,776 **** boolean ina; // true when within a <A></A> pair Node node; ! TagNode tag; String name; ! TagNode startatag; ! TagNode imgtag; String href; String src; --- 769,776 ---- boolean ina; // true when within a <A></A> pair Node node; ! Tag tag; String name; ! Tag startatag; ! Tag imgtag; String href; String src; *************** *** 785,791 **** while (null != (node = lexer.nextNode ())) { ! if (node instanceof TagNode) { ! tag = (TagNode)node; name = tag.getTagName (); if ("A".equals (name)) --- 785,791 ---- while (null != (node = lexer.nextNode ())) { ! if (node instanceof Tag) { ! tag = (Tag)node; name = tag.getTagName (); if ("A".equals (name)) *************** *** 1454,1457 **** --- 1454,1464 ---- * * $Log$ + * Revision 1.5 2004/05/24 16:18:17 derrickoswald + * Part three of a multiphase refactoring. + * The three node types are now fronted by interfaces (program to the interface paradigm) + * with concrete implementations in the new htmlparser.nodes package. Classes from the + * lexer.nodes package are moved to this package, and obvious references to the concrete + * classes that got broken by this have been changed to use the interfaces where possible. + * * Revision 1.4 2004/05/16 17:59:56 derrickoswald * Alter bound property name constants to agree with section |