org.apache.commons.jexl
Interface JexlContext
- All Known Implementing Classes:
- HashMapContext
- public interface JexlContext
Holds a Map of variables which are referenced in a JEXL expression.
- Version:
- $Id: JexlContext.java,v 1.6 2004/08/23 13:53:34 dion Exp $
Method Summary |
Map |
getVars()
Retrives the Map of variables associated with this JexlContext. |
void |
setVars(Map vars)
Replaces variables in a JexlContext with the variables contained
in the supplied Map. |
setVars
public void setVars(Map vars)
- Replaces variables in a JexlContext with the variables contained
in the supplied Map. When setVars() is called on a JexlContext,
it clears the current Map and puts each entry of the
supplied Map into the current variable Map.
- Parameters:
vars
- Contents of vars will be replaced with the content of this Map
getVars
public Map getVars()
- Retrives the Map of variables associated with this JexlContext. The
keys of this map correspond to variable names referenced in a
JEXL expression.
- Returns:
- A reference to the variable Map associated with this JexlContext.
Copyright © 2003-2004 The Apache Software Foundation. All Rights Reserved.