public class Comment extends Node
Node.NodeType| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
additionalComment |
protected java.lang.Boolean |
conditionalDownlevelHidden |
protected boolean |
isStartingTag |
attributes, childElementNodes, childElementNodesCount, childNodes, deepLevel, nodeName, nodeRawName, nodeType, nodeValue, offset, ownerDocument, parentNode, position, siblingElementIndex, siblingIndex, siblingNameIndex| Constructor and Description |
|---|
Comment(Document ownerDocument,
java.lang.String comment)
Creates regular comment.
|
Comment(Document ownerDocument,
java.lang.String comment,
boolean isStartingTag,
boolean conditionalDownlevelHidden,
java.lang.String additionalComment)
Creates conditional comment.
|
| Modifier and Type | Method and Description |
|---|---|
Comment |
clone() |
boolean |
isConditionalComment()
Returns
true if this is a conditional comment. |
boolean |
isDownlevelHidden()
If conditional comment, returns
trueif downlevel is hidden. |
void |
toHtml(java.lang.Appendable appendable)
Generates HTML by appending it to the provided
Appendable. |
addChild, addChild, appendTextContent, changeOwnerDocument, check, cloneTo, detachFromParent, getAttribute, getAttribute, getAttributeInstance, getAttributesCount, getChild, getChild, getChildElement, getChildElements, getChildElementsCount, getChildElementsCount, getChildNodes, getChildNodesCount, getCssPath, getDeepLevel, getFirstChild, getFirstChildElement, getFirstChildElement, getHtml, getInnerHtml, getLastChild, getLastChildElement, getLastChildElement, getNextSibling, getNextSiblingElement, getNextSiblingName, getNodeName, getNodeRawName, getNodeType, getNodeValue, getOffset, getOwnerDocument, getParentNode, getPosition, getPositionString, getPreviousSibling, getPreviousSiblingElement, getPreviousSiblingName, getSiblingElementIndex, getSiblingIndex, getSiblingNameIndex, getTextContent, hasAttribute, hasAttributes, hasChildNodes, indexOfAttributeInstance, initAttributes, initChildElementNodes, initChildNodes, initSiblingNames, insertAfter, insertAfter, insertBefore, insertChild, insertChild, isAttributeIncluding, reindexChildren, reindexChildrenOnAdd, removeAllChilds, removeAttribute, removeChild, removeChild, setAttribute, setAttribute, setNodeValue, toInnerHtmlprotected final java.lang.Boolean conditionalDownlevelHidden
protected final boolean isStartingTag
protected final java.lang.String additionalComment
public Comment(Document ownerDocument, java.lang.String comment)
public Comment(Document ownerDocument, java.lang.String comment, boolean isStartingTag, boolean conditionalDownlevelHidden, java.lang.String additionalComment)
Copyright © 2003-2013 Jodd Team