Interface ParserContext
- All Known Implementing Classes:
- TemplateParserContext
public interface ParserContext
Input provided to an expression parser that can influence an expression
 parsing/compilation routine.
- Since:
- 3.0
- Author:
- Keith Donald, Andy Clement
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final ParserContextThe defaultParserContextimplementation that enables template expression parsing.
- 
Method SummaryModifier and TypeMethodDescriptionFor template expressions, returns the prefix that identifies the start of an expression block within a string.For template expressions, returns the prefix that identifies the end of an expression block within a string.booleanWhether the expression being parsed is a template.
- 
Field Details- 
TEMPLATE_EXPRESSIONThe defaultParserContextimplementation that enables template expression parsing.The expression prefix is "#{", and the expression suffix is "}". - See Also:
 
 
- 
- 
Method Details- 
isTemplateboolean isTemplate()Whether the expression being parsed is a template.A template consists of literal text that can be mixed with expressions. Some examples: Some literal text Hello #{name.firstName}! #{3 + 4}- Returns:
- true if the expression is a template, false otherwise
 
- 
getExpressionPrefixString getExpressionPrefix()For template expressions, returns the prefix that identifies the start of an expression block within a string. For example: "${"- Returns:
- the prefix that identifies the start of an expression
 
- 
getExpressionSuffixString getExpressionSuffix()For template expressions, returns the prefix that identifies the end of an expression block within a string. For example: "}"- Returns:
- the suffix that identifies the end of an expression
 
 
-