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 void
removeComment()
Instructs the engine to remove the entire event that is being processed.void
replaceWith(IModel model, boolean processable)
Instructs the engine to replace the current event with the specified model (aIModel
).void
reset()
Resets all actions specified so far for the current processor execution.void
setContent(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:ICommentStructureHandler
Instructs the engine to set a new content for this Comment.
- Specified by:
setContent
in interfaceICommentStructureHandler
- Parameters:
content
- the new content
-
replaceWith
public void replaceWith(IModel model, boolean processable)
Description copied from interface:ICommentStructureHandler
Instructs the engine to replace the current event with the specified model (a
IModel
).- Specified by:
replaceWith
in 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:ICommentStructureHandler
Instructs the engine to remove the entire event that is being processed.
- Specified by:
removeComment
in interfaceICommentStructureHandler
-
reset
public void reset()
Description copied from interface:ICommentStructureHandler
Resets all actions specified so far for the current processor execution.
- Specified by:
reset
in interfaceICommentStructureHandler
-
-