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

## org.apache.commons.jexl
Interface Script

public interface Script

A JEXL Script.

A script is some valid JEXL syntax to be executed with a given set of `variables`.

A script is a group of statements, separated by semicolons.

The statements can be `blocks` (curly braces containing code), Control statements such as `if` and `while` as well as expressions and assignment statements.

Since:
  1.1

Method Summary
`Object` | `execute(JexlContext context)` Executes the script with the variables contained in the supplied `JexlContext`.
`String` | `getText()` Returns the text of this Script.

Method Detail

### execute

    public Object execute(JexlContext context)
                   throws Exception

  Executes the script with the variables contained in the supplied `JexlContext`.
  Parameters:
    `context` - A JexlContext containing variables.
  Returns:
    The result of this script, usually the result of the last statement.
  Throws:
    `Exception` - on any script parse or execution error.

### getText

    public String getText()

  Returns the text of this Script.
  Returns:
    The script to be executed.

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

Copyright © 2003-2006 The Apache Software Foundation. All Rights Reserved.