Package javax.el
Class StandardELContext.DefaultVariableMapper
- java.lang.Object
-
- javax.el.VariableMapper
-
- javax.el.StandardELContext.DefaultVariableMapper
-
- Enclosing class:
- StandardELContext
private static class StandardELContext.DefaultVariableMapper extends VariableMapper
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,ValueExpression>
variables
-
Constructor Summary
Constructors Modifier Constructor Description private
DefaultVariableMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValueExpression
resolveVariable(java.lang.String variable)
ValueExpression
setVariable(java.lang.String variable, ValueExpression expression)
Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable.
-
-
-
Field Detail
-
variables
private java.util.Map<java.lang.String,ValueExpression> variables
-
-
Method Detail
-
resolveVariable
public ValueExpression resolveVariable(java.lang.String variable)
- Specified by:
resolveVariable
in classVariableMapper
- Parameters:
variable
- The variable name- Returns:
- the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.
-
setVariable
public ValueExpression setVariable(java.lang.String variable, ValueExpression expression)
Description copied from class:VariableMapper
Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable. The assignment for the variable is removed if the expression isnull
.- Specified by:
setVariable
in classVariableMapper
- Parameters:
variable
- The variable nameexpression
- The ValueExpression to be assigned to the variable.- Returns:
- The previous ValueExpression assigned to this variable, null if there is no previous assignment to this variable.
-
-