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

Method setVariable

java/jakarta/el/ELProcessor.java:127–134  ·  view source on GitHub ↗

Registers a variable in the EL context. The variable is associated with the result of evaluating the given expression. Passing a null expression removes the variable from the context. @param variable the variable name @param expression the EL expression to associate with the variable, or

(String variable, String expression)

Source from the content-addressed store, hash-verified

125 * @throws ELException if the expression cannot be evaluated
126 */
127 public void setVariable(String variable, String expression) {
128 if (expression == null) {
129 manager.setVariable(variable, null);
130 } else {
131 ValueExpression ve = factory.createValueExpression(context, bracket(expression), Object.class);
132 manager.setVariable(variable, ve);
133 }
134 }
135
136 /**
137 * Registers a function in the EL context by looking up the static method in the given class.

Callers 2

testMaxLambda02Method · 0.95

Calls 2

bracketMethod · 0.95
createValueExpressionMethod · 0.45

Tested by 2

testMaxLambda02Method · 0.76