public final class StandardConditionalCommentUtils extends Object
Utility class for processing IE conditional comments.
Expected format is:
<!--[start-condition]>content<![end-condition]-->
Modifier and Type | Class and Description |
---|---|
static class |
StandardConditionalCommentUtils.ConditionalCommentParsingResult |
Modifier and Type | Method and Description |
---|---|
static StandardConditionalCommentUtils.ConditionalCommentParsingResult |
parseConditionalComment(CharSequence text)
Tries to parse the text passed as argument as a conditional comment.
|
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
, or
null if text does not have the expected format for a conditional comment.
text
- the text to be parsedStandardConditionalCommentUtils.ConditionalCommentParsingResult
object if text could be parsed,
null if format is invalid.Copyright © 2016 The THYMELEAF team. All rights reserved.