类 TemplateParserContext
java.lang.Object
cn.taketoday.expression.common.TemplateParserContext
- 所有已实现的接口:
ParserContext
Configurable
ParserContext implementation for template parsing. Expects the
expression prefix and suffix as constructor arguments.- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
-
字段概要
从接口继承的字段 cn.taketoday.expression.ParserContext
TEMPLATE_EXPRESSION -
构造器概要
构造器构造器说明Create a new TemplateParserContext with the default "#{" prefix and "}" suffix.TemplateParserContext(String expressionPrefix, String expressionSuffix) Create a new TemplateParserContext for the given prefix and suffix. -
方法概要
修饰符和类型方法说明final StringFor template expressions, returns the prefix that identifies the start of an expression block within a string.final StringFor template expressions, return the prefix that identifies the end of an expression block within a string.final booleanWhether or not the expression being parsed is a template.
-
构造器详细资料
-
TemplateParserContext
public TemplateParserContext()Create a new TemplateParserContext with the default "#{" prefix and "}" suffix. -
TemplateParserContext
Create a new TemplateParserContext for the given prefix and suffix.- 参数:
expressionPrefix- the expression prefix to useexpressionSuffix- the expression suffix to use
-
-
方法详细资料
-
isTemplate
public final boolean isTemplate()从接口复制的说明:ParserContextWhether 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
-
getExpressionPrefix
从接口复制的说明:ParserContextFor template expressions, returns the prefix that identifies the start of an expression block within a string. For example: "${"- 指定者:
getExpressionPrefix在接口中ParserContext- 返回:
- the prefix that identifies the start of an expression
-
getExpressionSuffix
从接口复制的说明:ParserContextFor template expressions, return the prefix that identifies the end of an expression block within a string. For example: "}"- 指定者:
getExpressionSuffix在接口中ParserContext- 返回:
- the suffix that identifies the end of an expression
-