org.apache.jasper.runtime
类 VariableMapperImpl

java.lang.Object
  继承者 javax.el.VariableMapper
      继承者 org.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.

版本:
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: hmalphett $
作者:
Kin-man Chung

构造方法摘要
VariableMapperImpl()
          Constructor
 
方法摘要
 ValueExpression resolveVariable(String variable)
          Resolves the specified variable within the given context.
 ValueExpression setVariable(String variable, ValueExpression expression)
          Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

VariableMapperImpl

public VariableMapperImpl()
Constructor

方法详细信息

resolveVariable

public ValueExpression resolveVariable(String variable)
Resolves the specified variable within the given context. Returns null if the variable is not found.

指定者:
VariableMapper 中的 resolveVariable
参数:
variable - The variable name
返回:
the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.

setVariable

public ValueExpression setVariable(String variable,
                                   ValueExpression expression)
从类 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 is null.

指定者:
VariableMapper 中的 setVariable
参数:
variable - The variable name
expression - The ValueExpression to be assigned to the variable.
返回:
The previous ValueExpression assigned to this variable, null if there is no previouse assignment to this variable.


Copyright © 2013. All Rights Reserved.