Class 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 Detail

      • VariableMapperImpl

        public VariableMapperImpl()
        Constructs a new VariableMapperImpl for deserialization.
    • Method Detail

      • resolveVariable

        public ValueExpression resolveVariable​(java.lang.String variable)
        Description copied from class: jakarta.el.VariableMapper
        Resolves a variable name to its corresponding ValueExpression.
        Specified by:
        resolveVariable in class VariableMapper
        Parameters:
        variable - the name of the variable to resolve
        Returns:
        the ValueExpression for the variable, or null if not found
      • setVariable

        public ValueExpression setVariable​(java.lang.String variable,
                                           ValueExpression expression)
        Description copied from class: jakarta.el.VariableMapper
        Sets or removes a variable mapping.
        Specified by:
        setVariable in class VariableMapper
        Parameters:
        variable - the name of the variable
        expression - the ValueExpression to associate with the variable, or null to remove the mapping
        Returns:
        the previous ValueExpression for the variable, or null if there was no mapping
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Throws:
        java.io.IOException