Package com.sun.el.lang
Class VariableMapperImpl
- java.lang.Object
-
- javax.el.VariableMapper
-
- com.sun.el.lang.VariableMapperImpl
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
public class VariableMapperImpl extends VariableMapper implements java.io.Externalizable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
private java.util.Map<java.lang.String,ValueExpression>
vars
-
Constructor Summary
Constructors Constructor Description VariableMapperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
readExternal(java.io.ObjectInput in)
ValueExpression
resolveVariable(java.lang.String variable)
ValueExpression
setVariable(java.lang.String variable, ValueExpression expression)
Assign a ValueExpression to an EL variable, replacing any previously assignment to the same variable.void
writeExternal(java.io.ObjectOutput out)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
vars
private java.util.Map<java.lang.String,ValueExpression> vars
-
-
Method Detail
-
resolveVariable
public ValueExpression resolveVariable(java.lang.String variable)
- Specified by:
resolveVariable
in classVariableMapper
- Parameters:
variable
- The variable name- Returns:
- the ValueExpression assigned to the variable, null if there is no previous assignment to this variable.
-
setVariable
public ValueExpression setVariable(java.lang.String variable, ValueExpression expression)
Description copied from class: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 isnull
.- Specified by:
setVariable
in classVariableMapper
- Parameters:
variable
- The variable nameexpression
- The ValueExpression to be assigned to the variable.- Returns:
- The previous ValueExpression assigned to this variable, null if there is no previous assignment to this variable.
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.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 interfacejava.io.Externalizable
- Throws:
java.io.IOException
-
-