org.springframework.expression.spel
Class ExpressionState.VariableScope

java.lang.Object
  extended by org.springframework.expression.spel.ExpressionState.VariableScope
Enclosing class:
ExpressionState

private static class ExpressionState.VariableScope
extends java.lang.Object

A new scope is entered when a function is called and it is used to hold the parameters to the function call. If the names of the parameters clash with those in a higher level scope, those in the higher level scope will not be accessible whilst the function is executing. When the function returns the scope is exited.


Field Summary
private  java.util.Map<java.lang.String,java.lang.Object> vars
           
 
Constructor Summary
ExpressionState.VariableScope()
           
ExpressionState.VariableScope(java.util.Map<java.lang.String,java.lang.Object> arguments)
           
ExpressionState.VariableScope(java.lang.String name, java.lang.Object value)
           
 
Method Summary
 boolean definesVariable(java.lang.String name)
           
 java.lang.Object lookupVariable(java.lang.String name)
           
 void setVariable(java.lang.String name, java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

vars

private final java.util.Map<java.lang.String,java.lang.Object> vars
Constructor Detail

ExpressionState.VariableScope

public ExpressionState.VariableScope()

ExpressionState.VariableScope

public ExpressionState.VariableScope(java.util.Map<java.lang.String,java.lang.Object> arguments)

ExpressionState.VariableScope

public ExpressionState.VariableScope(java.lang.String name,
                                     java.lang.Object value)
Method Detail

lookupVariable

public java.lang.Object lookupVariable(java.lang.String name)

setVariable

public void setVariable(java.lang.String name,
                        java.lang.Object value)

definesVariable

public boolean definesVariable(java.lang.String name)