public final class Comment extends Node
A Comment node in a Thymeleaf DOM tree.
Node.NodeLocalVariablesMap
NODE_PROPERTY_XML_ENCODING, NODE_PROPERTY_XML_STANDALONE, NODE_PROPERTY_XML_VERSION
Constructor and Description |
---|
Comment(String content) |
Comment(String content,
String documentName) |
Comment(String content,
String documentName,
Integer lineNumber) |
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Returns the textual content of this node, as a String.
|
void |
setContent(String content)
Modify the textual content of this node.
|
void |
visit(DOMVisitor visitor)
Apply a DOM visitor.
|
addAllNonExistingNodeLocalVariables, applyDialectPrefix, cloneNode, getDocumentName, getLineNumber, getNodeLocalVariableNames, getNodeProperty, getNodePropertyNames, getParent, getProcessCommentNodes, getProcessTextNodes, getRecomputeProcessorsAfterEachExecution, getRecomputeProcessorsImmediately, hasNodeLocalVariables, hasNodeProperty, hasParent, isProcessable, isSkippable, normalizeName, setAllNodeLocalVariables, setNodeLocalVariable, setNodeProperty, setParent, setProcessable, setProcessCommentNodes, setProcessTextNodes, setRecomputeProcessorsAfterEachExecution, setRecomputeProcessorsImmediately, setSkippable, unsafeGetNodeProperties
public Comment(String content)
public String getContent()
Returns the textual content of this node, as a String.
public void setContent(String content)
Modify the textual content of this node.
content
- the new contentpublic void visit(DOMVisitor visitor)
Node
Apply a DOM visitor.
Copyright © 2017 The THYMELEAF team. All rights reserved.