Skip to content

Commit

Permalink
extract method to parse expression, then you can customize parse by o…
Browse files Browse the repository at this point in the history
…vervide
  • Loading branch information
Xjzon committed Oct 27, 2021
1 parent e4e667a commit acfc7bb
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -86,7 +86,7 @@ protected Expression getExpression(Map<ExpressionKey, Expression> cache,
ExpressionKey expressionKey = createKey(elementKey, expression);
Expression expr = cache.get(expressionKey);
if (expr == null) {
expr = getParser().parseExpression(expression);
expr = parseExpression(expression);
cache.put(expressionKey, expr);
}
return expr;
Expand All @@ -96,6 +96,13 @@ private ExpressionKey createKey(AnnotatedElementKey elementKey, String expressio
return new ExpressionKey(elementKey, expression);
}

/**
* Parse the expression
* @param expression the expression to parse
*/
protected Expression parseExpression(String expression) {
return getParser().parseExpression(expression);
}

/**
* An expression key.
Expand Down

0 comments on commit acfc7bb

Please sign in to comment.