org.thymeleaf.processor
Class CommentNodeProcessorMatcher

Object
  extended by org.thymeleaf.processor.CommentNodeProcessorMatcher
All Implemented Interfaces:
ICommentNodeProcessorMatcher, IProcessorMatcher<Comment>

public final class CommentNodeProcessorMatcher
extends Object
implements ICommentNodeProcessorMatcher

Implementation of ICommentNodeProcessorMatcher that matches every Comment node.

Since:
2.0.15
Author:
Daniel Fernández

Constructor Summary
CommentNodeProcessorMatcher()
           
 
Method Summary
 Class<? extends Comment> 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.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentNodeProcessorMatcher

public CommentNodeProcessorMatcher()
Method Detail

matches

public boolean matches(Node node,
                       ProcessorMatchingContext context)
Description copied from interface: IProcessorMatcher

Try to match the node, using the specified matching context.

Specified by:
matches in interface IProcessorMatcher<Comment>
Parameters:
node - the node to be matched
context - the matching context
Returns:
true if the node matches, false if not.

appliesTo

public final Class<? extends Comment> appliesTo()
Description copied from interface: IProcessorMatcher

Returns the type of Node this matcher applies to (and therefore the type of Node that processors with this matcher will apply to).

Specified by:
appliesTo in interface IProcessorMatcher<Comment>
Returns:
the type of node (subclass of Node) this matcher applies to.


Copyright © 2013 The THYMELEAF team. All Rights Reserved.