public class Comment extends LeafNode
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
COMMENT_KEY |
EmptyString, parentNode, siblingIndex| Constructor and Description |
|---|
Comment(java.lang.String data)
Create a new comment node.
|
Comment(java.lang.String data,
java.lang.String baseUri)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getData()
Get the contents of the comment.
|
java.lang.String |
nodeName()
Get the node name of this node.
|
(package private) void |
outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out)
Get the outer HTML of this node.
|
(package private) void |
outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out) |
java.lang.String |
toString() |
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doSetBaseUri, ensureChildNodes, hasAttr, hasAttributes, removeAttraddChildren, addChildren, after, after, before, before, childNode, childNodes, childNodesAsArray, childNodesCopy, clearAttributes, clone, doClone, equals, filter, getOutputSettings, hasParent, hasSameValue, html, indent, nextSibling, nodelistChanged, outerHtml, outerHtml, ownerDocument, parent, parentNode, previousSibling, remove, removeChild, reparentChild, replaceChild, replaceWith, root, setBaseUri, setParentNode, setSiblingIndex, shallowClone, siblingIndex, siblingNodes, traverse, unwrap, wrapprivate static final java.lang.String COMMENT_KEY
public Comment(java.lang.String data)
data - The contents of the commentpublic Comment(java.lang.String data,
java.lang.String baseUri)
data - The contents of the commentbaseUri - base URI not used. This is a leaf node.public java.lang.String nodeName()
Nodepublic java.lang.String getData()
void outerHtmlHead(java.lang.Appendable accum,
int depth,
Document.OutputSettings out)
throws java.io.IOException
NodeouterHtmlHead in class Nodeaccum - accumulator to place HTML intojava.io.IOException - if appending to the given accumulator fails.void outerHtmlTail(java.lang.Appendable accum,
int depth,
Document.OutputSettings out)
outerHtmlTail in class Node