public final class TextNodeProcessorMatcher extends Object implements ITextNodeProcessorMatcher
Implementation of ITextNodeProcessorMatcher
that matches every node extending
from AbstractTextNode
, this is, Text
and
CDATASection
nodes.
Constructor and Description |
---|
TextNodeProcessorMatcher() |
Modifier and Type | Method and Description |
---|---|
Class<? extends AbstractTextNode> |
appliesTo()
Returns the type of Node this matcher applies to (and therefore the type
of Node that processors with this matcher will apply to).
|
boolean |
matches(Node node,
ProcessorMatchingContext context)
Try to match the node, using the specified matching context.
|
public boolean matches(Node node, ProcessorMatchingContext context)
IProcessorMatcher
Try to match the node, using the specified matching context.
matches
in interface IProcessorMatcher<AbstractTextNode>
node
- the node to be matchedcontext
- the matching contextpublic Class<? extends AbstractTextNode> appliesTo()
IProcessorMatcher
Returns the type of Node this matcher applies to (and therefore the type of Node that processors with this matcher will apply to).
appliesTo
in interface IProcessorMatcher<AbstractTextNode>
Copyright © 2016 The THYMELEAF team. All rights reserved.