FileDocCategorySizeDatePackage
VariableMapperImpl.javaAPI DocGlassfish v2 API3419Fri May 04 22:32:54 BST 2007org.apache.jasper.runtime

VariableMapperImpl

public class VariableMapperImpl extends VariableMapper

This is the implementation of VariableMapper. The compiler creates an empty variable mapper when an ELContext is created. The variable mapper will be updated by tag handlers, if necessary.

author
Kin-man Chung
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: tcfujii $

Fields Summary
private HashMap
map
Constructors Summary
public VariableMapperImpl()
Constructor

        map = new HashMap();
    
Methods Summary
public javax.el.ValueExpressionresolveVariable(java.lang.String variable)
Resolves the specified variable within the given context. Returns null if the variable is not found.

        return (ValueExpression) map.get(variable);
    
public javax.el.ValueExpressionsetVariable(java.lang.String variable, javax.el.ValueExpression expression)

        ValueExpression prev = null;
        if (expression == null) {
            map.remove(variable);
        } else {
            prev = (ValueExpression) map.get(variable);
            map.put(variable, expression);
        }
        return prev;