MCPcopy Index your code
hub / github.com/apache/tomcat / getValue

Method getValue

java/jakarta/el/ELProcessor.java:97–100  ·  view source on GitHub ↗

Evaluates the given EL expression and returns the result coerced to the expected type. The expression is automatically wrapped in {@literal ${}} delimiters before evaluation. @param the expected result type @param expression the EL expression to evaluate @param expectedType the

(String expression, Class<T> expectedType)

Source from the content-addressed store, hash-verified

95 * @throws ELException if the expression cannot be evaluated
96 */
97 public <T> T getValue(String expression, Class<T> expectedType) {
98 ValueExpression ve = factory.createValueExpression(context, bracket(expression), expectedType);
99 return ve.getValue(context);
100 }
101
102 /**
103 * Evaluates the given EL expression and sets the result to the specified value.

Callers 15

testConcatenation01Method · 0.95
testConcatenation02Method · 0.95
testConcatenation03Method · 0.95
testConcatenation04Method · 0.95
testPrecedence01Method · 0.95
testPrecedence02Method · 0.95
testPrecedence03Method · 0.95
testPrecedence04Method · 0.95
testSpec01Method · 0.95
testSpec02Method · 0.95
testSpec03Method · 0.95
testSpec04Method · 0.95

Calls 3

bracketMethod · 0.95
getValueMethod · 0.95
createValueExpressionMethod · 0.45

Tested by 15

testConcatenation01Method · 0.76
testConcatenation02Method · 0.76
testConcatenation03Method · 0.76
testConcatenation04Method · 0.76
testPrecedence01Method · 0.76
testPrecedence02Method · 0.76
testPrecedence03Method · 0.76
testPrecedence04Method · 0.76
testSpec01Method · 0.76
testSpec02Method · 0.76
testSpec03Method · 0.76
testSpec04Method · 0.76