Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.jexl2
Interface JexlContext

All Known Implementing Classes:
  MapContext

    public interface JexlContext

Manages variables which can be referenced in a JEXL expression.

Since:
  1.0
Version:
  $Id: JexlContext.java 885553 2009-11-30 19:28:40Z henrib $

Method Summary
`java.lang.Object` | `get(java.lang.String name)` Gets the value of a variable.
`boolean` | `has(java.lang.String name)` Checks whether a variable is defined in this context.
`void` | `set(java.lang.String name, java.lang.Object value)` Sets the value of a variable.

Method Detail

### get

    java.lang.Object get(java.lang.String name)

  Gets the value of a variable.

  Parameters:
    `name` - the variable's name
  Returns:
    the value

### set

    void set(java.lang.String name,
             java.lang.Object value)

  Sets the value of a variable.

  Parameters:
    `name` - the variable's name
    `value` - the variable's value

### has

    boolean has(java.lang.String name)

  Checks whether a variable is defined in this context.

  A variable may be defined with a null value; this method checks whether the value is null or if the variable is undefined.

  Parameters:
    `name` - the variable's name
  Returns:
    true if it exists, false otherwise

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.