Package org.apache.el.lang
Class VariableMapperImpl
- java.lang.Object
-
- jakarta.el.VariableMapper
-
- org.apache.el.lang.VariableMapperImpl
-
- All Implemented Interfaces:
java.io.Externalizable,java.io.Serializable
public class VariableMapperImpl extends VariableMapper implements java.io.Externalizable
Implementation of VariableMapper that stores variables in a map.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VariableMapperImpl()Constructs a new VariableMapperImpl for deserialization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(java.io.ObjectInput in)ValueExpressionresolveVariable(java.lang.String variable)Resolves a variable name to its corresponding ValueExpression.ValueExpressionsetVariable(java.lang.String variable, ValueExpression expression)Sets or removes a variable mapping.voidwriteExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
resolveVariable
public ValueExpression resolveVariable(java.lang.String variable)
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
public ValueExpression setVariable(java.lang.String variable, ValueExpression expression)
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
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException- Specified by:
readExternalin interfacejava.io.Externalizable- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException- Specified by:
writeExternalin interfacejava.io.Externalizable- Throws:
java.io.IOException
-
-