MCPcopy Create free account
hub / github.com/apache/tomcat / setVariable

Method setVariable

java/jakarta/el/ELManager.java:118–120  ·  view source on GitHub ↗

Registers a variable in the EL context's variable mapper. The variable can then be referenced by name in EL expressions. Passing a null expression removes the variable. @param variable the variable name @param expression the ValueExpression associated with the variable, or null to

(String variable, ValueExpression expression)

Source from the content-addressed store, hash-verified

116 * @param expression the ValueExpression associated with the variable, or {@code null} to remove
117 */
118 public void setVariable(String variable, ValueExpression expression) {
119 getELContext().getVariableMapper().setVariable(variable, expression);
120 }
121
122 /**
123 * Imports a static field or method so it can be referenced by its simple name in EL

Callers

nothing calls this directly

Calls 2

getELContextMethod · 0.95
getVariableMapperMethod · 0.45

Tested by

no test coverage detected