public class RemarkNode extends AbstractNode implements Remark
| 构造器和说明 |
|---|
RemarkNode(Page page,
int start,
int end)
Constructor takes in the page and beginning and ending posns.
|
RemarkNode(java.lang.String text)
Constructor takes in the text string.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
accept(NodeVisitor visitor)
Remark visiting code.
|
java.lang.String |
getText()
Returns the text contents of the comment tag.
|
void |
setText(java.lang.String text)
Sets the string contents of the node.
|
java.lang.String |
toHtml(boolean verbatim)
Return The full HTML remark.
|
java.lang.String |
toPlainTextString()
Return the remark text.
|
java.lang.String |
toString()
Print the contents of the remark tag.
|
clone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtmlclone, collectInto, doSemanticAction, getChildren, getEndPosition, getFirstChild, getLastChild, getNextSibling, getPage, getParent, getPreviousSibling, getStartPosition, setChildren, setEndPosition, setPage, setParent, setStartPosition, toHtmlpublic RemarkNode(java.lang.String text)
text - The string node text. For correct generation of HTML, this
should not contain representations of tags (unless they are balanced).public RemarkNode(Page page, int start, int end)
page - The page this remark is on.start - The beginning position of the remark.end - The ending positiong of the remark.public java.lang.String getText()
getText 在接口中 NodegetText 在接口中 RemarkgetText 在类中 AbstractNodeNode.setText(java.lang.String)public void setText(java.lang.String text)
setText 在接口中 NodesetText 在接口中 RemarksetText 在类中 AbstractNodetext - The new text for the node.Node.getText()public java.lang.String toPlainTextString()
toPlainTextString 在接口中 NodetoPlainTextString 在类中 AbstractNodepublic java.lang.String toHtml(boolean verbatim)
toHtml 在接口中 NodetoHtml 在类中 AbstractNodeverbatim - If true return as close to the original
page text as possible.public java.lang.String toString()
toString 在接口中 NodetoString 在类中 AbstractNodepublic void accept(NodeVisitor visitor)
accept 在接口中 Nodeaccept 在类中 AbstractNodevisitor - The NodeVisitor object to invoke
visitRemarkNode() on.