org.apache.commons.jexl3

## Interface JexlContext.PragmaProcessor

- Enclosing interface:
    JexlContext

      public static interface JexlContext.PragmaProcessor

  A marker interface of the JexlContext that processes pragmas. It is called by the engine before interpreter creation; as a marker of JexlContext, it is expected to have access and interact with the context instance.
  Since:
    3.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods
    Modifier and Type | Method and Description
    --- | ---
    `default void` | `processPragma(JexlOptions opts, String key, Object value)` Process one pragma.
    `void` | `processPragma(String key, Object value)` Deprecated. 3.3

- - ### Method Detail

    - #### processPragma

          @Deprecated
          void processPragma(String key,
                                         Object value)

      Deprecated. 3.3
      Process one pragma.

      Never called in 3.3, must be implemented for 3.2 binary compatibility reasons.

      Typical implementation in 3.3:

      `@Override public void processPragma(String key, Object value) { processPragma(null, key, value); }`
      Parameters:
        `key` - the key
        `value` - the value

    - #### processPragma

          default void processPragma(JexlOptions opts,
                                     String key,
                                     Object value)

      Process one pragma.
      Parameters:
        `opts` - the current evaluator options
        `key` - the key
        `value` - the value
      Since:
        3.3

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