public class ProcessCommentNodesDocumentProcessor extends AbstractDocumentProcessor
Subclass of AbstractDocumentProcessor
used for setting to true the flag
that tells the Thymeleaf engine to process Comment
nodes.
By default, only nodes of type Element
are processed in a
document.
This is done by returning a ProcessorResult
instance with its
ProcessorResult.setProcessCommentNodes(boolean)
flag set
to true.
One of the main uses of setting this flag to true is being able to process Internet Explorer conditional comments.
Constructor and Description |
---|
ProcessCommentNodesDocumentProcessor() |
ProcessCommentNodesDocumentProcessor(IDocumentNodeProcessorMatcher matcher) |
Modifier and Type | Method and Description |
---|---|
int |
getPrecedence() |
protected ProcessorResult |
processDocumentNode(Arguments arguments,
Document documentNode) |
doProcess, getMatcher
compareTo, getMessage, getMessageForProcessor, getMessageForTemplate, process
public ProcessCommentNodesDocumentProcessor()
public ProcessCommentNodesDocumentProcessor(IDocumentNodeProcessorMatcher matcher)
public int getPrecedence()
getPrecedence
in class AbstractProcessor
protected ProcessorResult processDocumentNode(Arguments arguments, Document documentNode)
processDocumentNode
in class AbstractDocumentProcessor
Copyright © 2016 The THYMELEAF team. All rights reserved.