@Component(value="blExpressionParser") public class BroadleafExpressionParserImpl extends Object implements BroadleafExpressionParser
| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.expression.ExpressionParser |
parser |
protected List<org.springframework.expression.PropertyAccessor> |
propertyAccessors |
| Constructor and Description |
|---|
BroadleafExpressionParserImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.expression.spel.support.StandardEvaluationContext |
createStandardEvaluationContext(Map<String,Object> context) |
protected org.springframework.expression.ExpressionParser |
getExpressionParser() |
protected org.springframework.expression.ParserContext |
getParserContext() |
protected List<org.springframework.expression.PropertyAccessor> |
getPropertyAccessors() |
String |
parseExpression(String expressionString,
Map<String,Object> context)
Parses the given expression string with the given context and returns the parsed result string.
|
<T> T |
parseExpression(String expressionString,
Map<String,Object> context,
Class<T> targetType)
Parses the given expression string with the given context and returns the parsed result with the target type.
|
protected final org.springframework.expression.ExpressionParser parser
protected final List<org.springframework.expression.PropertyAccessor> propertyAccessors
public String parseExpression(String expressionString, Map<String,Object> context)
BroadleafExpressionParserparseExpression in interface BroadleafExpressionParserexpressionString - the expression stringcontext - the contextpublic <T> T parseExpression(String expressionString, Map<String,Object> context, Class<T> targetType)
BroadleafExpressionParserparseExpression in interface BroadleafExpressionParserT - the generic type of the resultexpressionString - the expression stringcontext - the contexttargetType - the target type for the resultprotected org.springframework.expression.ParserContext getParserContext()
protected List<org.springframework.expression.PropertyAccessor> getPropertyAccessors()
protected org.springframework.expression.spel.support.StandardEvaluationContext createStandardEvaluationContext(Map<String,Object> context)
protected org.springframework.expression.ExpressionParser getExpressionParser()
Copyright © 2022. All rights reserved.