类 TemplateParserContext

    • 构造器详细资料

      • TemplateParserContext

        public TemplateParserContext()
        Create a new TemplateParserContext with the default "#{" prefix and "}" suffix.
      • TemplateParserContext

        public TemplateParserContext​(String expressionPrefix,
                                     String expressionSuffix)
        Create a new TemplateParserContext for the given prefix and suffix.
        参数:
        expressionPrefix - the expression prefix to use
        expressionSuffix - the expression suffix to use
    • 方法详细资料

      • isTemplate

        public final boolean isTemplate()
        从接口复制的说明: ParserContext
        Whether or not the expression being parsed is a template. A template expression consists of literal text that can be mixed with evaluatable blocks. Some examples:
                   Some literal text
             Hello #{name.firstName}!
             #{3 + 4}
         
        指定者:
        isTemplate 在接口中 ParserContext
        返回:
        true if the expression is a template, false otherwise