Package org.thymeleaf.engine
Class CommentStructureHandler
- Object
-
- org.thymeleaf.engine.CommentStructureHandler
-
- All Implemented Interfaces:
ICommentStructureHandler
public final class CommentStructureHandler extends Object implements ICommentStructureHandler
Structure handler implementation, internally used by the engine.
This class should not be directly used from outside the engine.
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidremoveComment()Instructs the engine to remove the entire event that is being processed.voidreplaceWith(IModel model, boolean processable)Instructs the engine to replace the current event with the specified model (aIModel).voidreset()Resets all actions specified so far for the current processor execution.voidsetContent(CharSequence content)Instructs the engine to set a new content for this Comment.
-
-
-
Method Detail
-
setContent
public void setContent(CharSequence content)
Description copied from interface:ICommentStructureHandlerInstructs the engine to set a new content for this Comment.
- Specified by:
setContentin interfaceICommentStructureHandler- Parameters:
content- the new content
-
replaceWith
public void replaceWith(IModel model, boolean processable)
Description copied from interface:ICommentStructureHandlerInstructs the engine to replace the current event with the specified model (a
IModel).- Specified by:
replaceWithin interfaceICommentStructureHandler- Parameters:
model- the model to be used as a replacement.processable- whether the model should be considered processable or not.
-
removeComment
public void removeComment()
Description copied from interface:ICommentStructureHandlerInstructs the engine to remove the entire event that is being processed.
- Specified by:
removeCommentin interfaceICommentStructureHandler
-
reset
public void reset()
Description copied from interface:ICommentStructureHandlerResets all actions specified so far for the current processor execution.
- Specified by:
resetin interfaceICommentStructureHandler
-
-