org.htmlparser
Class StringNode
java.lang.Object
org.htmlparser.AbstractNode
org.htmlparser.lexer.nodes.StringNode
org.htmlparser.StringNode
- All Implemented Interfaces:
- Node, Serializable
- public class StringNode
- extends StringNode
Normal text in the html document is identified and represented by this class.
- See Also:
- Serialized Form
|
Constructor Summary |
StringNode(Page page,
int start,
int end)
Constructor takes in the text string, beginning and ending posns. |
|
Method Summary |
void |
accept(Object visitor)
String visiting code. |
| Methods inherited from class org.htmlparser.AbstractNode |
collectInto, doSemanticAction, elementBegin, elementEnd, getChildren, getEndPosition, getPage, getParent, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHTML |
StringNode
public StringNode(Page page,
int start,
int end)
- Constructor takes in the text string, beginning and ending posns.
- Parameters:
page - The page this string is on.start - The beginning position of the string.end - The ending positiong of the string.
accept
public void accept(Object visitor)
- String visiting code.
- Specified by:
accept in interface Node- Overrides:
accept in class StringNode
- Parameters:
visitor - The NodeVisitor object to invoke
visitStringNode() on.
HTML Parser is an open source library released under LGPL.