org.apache.commons.jexl3

## Interface JexlContext.ModuleProcessor

- Enclosing interface:
    JexlContext

      public static interface JexlContext.ModuleProcessor

  A marker interface of the JexlContext that processes module definitions. It is used by the interpreter during evaluation of the pragma module definitions.
  Since:
    3.3

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `processModule(JexlEngine engine, JexlInfo info, String name, String body)` Defines a module.

- - ### Method Detail

    - #### processModule

          Object processModule(JexlEngine engine,
                               JexlInfo info,
                               String name,
                               String body)

      Defines a module. The module name will be the namespace mapped to the object returned by the evaluation of its body.
      Parameters:
        `engine` - the engine evaluating this module pragma
        `info` - the info at the pragma location
        `name` - the module name
        `body` - the module definition which can be its location or source
      Returns:
        the module object

Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.