Class VariableMapperImpl
java.lang.Object
jakarta.el.VariableMapper
org.apache.el.lang.VariableMapperImpl
- All Implemented Interfaces:
Externalizable, Serializable
Implementation of VariableMapper that stores variables in a map.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new VariableMapperImpl for deserialization. -
Method Summary
Modifier and TypeMethodDescriptionvoidresolveVariable(String variable) Resolves a variable name to its corresponding ValueExpression.setVariable(String variable, ValueExpression expression) Sets or removes a variable mapping.void
-
Constructor Details
-
VariableMapperImpl
public VariableMapperImpl()Constructs a new VariableMapperImpl for deserialization.
-
-
Method Details
-
resolveVariable
Description copied from class:jakarta.el.VariableMapperResolves a variable name to its corresponding ValueExpression.- Specified by:
resolveVariablein classVariableMapper- Parameters:
variable- the name of the variable to resolve- Returns:
- the ValueExpression for the variable, or
nullif not found
-
setVariable
Description copied from class:jakarta.el.VariableMapperSets or removes a variable mapping.- Specified by:
setVariablein classVariableMapper- Parameters:
variable- the name of the variableexpression- the ValueExpression to associate with the variable, ornullto remove the mapping- Returns:
- the previous ValueExpression for the variable, or
nullif there was no mapping
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-