Package org.thymeleaf.standard.util
Class StandardConditionalCommentUtils
- Object
-
- org.thymeleaf.standard.util.StandardConditionalCommentUtils
-
public final class StandardConditionalCommentUtils extends Object
Utility class for processing IE conditional comments.
Expected format is:
<!--[start-condition]>content<![end-condition]-->
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StandardConditionalCommentUtils.ConditionalCommentParsingResult
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StandardConditionalCommentUtils.ConditionalCommentParsingResult
parseConditionalComment(CharSequence text)
Tries to parse the text passed as argument as a conditional comment.
-
-
-
Method Detail
-
parseConditionalComment
public static StandardConditionalCommentUtils.ConditionalCommentParsingResult parseConditionalComment(CharSequence text)
Tries to parse the text passed as argument as a conditional comment.
Result is an object of class
StandardConditionalCommentUtils.ConditionalCommentParsingResult
, ornull
if text does not have the expected format for a conditional comment.- Parameters:
text
- the text to be parsed- Returns:
- a
StandardConditionalCommentUtils.ConditionalCommentParsingResult
object if text could be parsed, null if format is invalid.
-
-