Modifier and Type | Field and Description |
---|---|
private static String |
COMMENT_KEY |
EmptyString, parentNode, siblingIndex
Constructor and Description |
---|
Comment(String data)
Create a new comment node.
|
Comment(String data,
String baseUri)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getData()
Get the contents of the comment.
|
String |
nodeName()
Get the node name of this node.
|
(package private) void |
outerHtmlHead(Appendable accum,
int depth,
Document.OutputSettings out)
Get the outer HTML of this node.
|
(package private) void |
outerHtmlTail(Appendable accum,
int depth,
Document.OutputSettings out) |
String |
toString() |
absUrl, attr, attr, attributes, baseUri, childNodeSize, coreValue, coreValue, doSetBaseUri, ensureChildNodes, hasAttr, hasAttributes, removeAttr
addChildren, 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, siblingIndex, siblingNodes, traverse, unwrap, wrap
private static final String COMMENT_KEY
public Comment(String data)
data
- The contents of the commentpublic String nodeName()
Node
void outerHtmlHead(Appendable accum, int depth, Document.OutputSettings out) throws IOException
Node
outerHtmlHead
in class Node
accum
- accumulator to place HTML intoIOException
- if appending to the given accumulator fails.void outerHtmlTail(Appendable accum, int depth, Document.OutputSettings out)
outerHtmlTail
in class Node
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses