org.htmlparser.nodes
public class RemarkNode extends AbstractNode implements Remark
Field Summary | |
---|---|
protected String | mText
The contents of the remark node, or override text. |
Constructor Summary | |
---|---|
RemarkNode(String text)
Constructor takes in the text string. | |
RemarkNode(Page page, int start, int end)
Constructor takes in the page and beginning and ending posns. |
Method Summary | |
---|---|
void | accept(NodeVisitor visitor)
Remark visiting code. |
String | getText()
Returns the text contents of the comment tag. |
void | setText(String text)
Sets the string contents of the node.
|
String | toHtml(boolean verbatim)
Return The full HTML remark. |
String | toPlainTextString()
Return the remark text. |
String | toString()
Print the contents of the remark tag.
|
Parameters: text The string node text. For correct generation of HTML, this should not contain representations of tags (unless they are balanced).
Parameters: page The page this remark is on. start The beginning position of the remark. end The ending positiong of the remark.
Parameters: visitor The NodeVisitor
object to invoke
visitRemarkNode()
on.
Returns: The contents of the text inside the comment delimiters.
Parameters: text The new text for the node.
Parameters: verbatim If true
return as close to the original
page text as possible.
Returns: The comment, i.e. {@.html }.
Returns: The HTML comment.
Returns: A string representation of the remark node.
HTML Parser is an open source library released under LGPL. | |