org.apache.commons.jexl3

## Interface JexlEngine.Options

- Enclosing class:
    JexlEngine

      public static interface JexlEngine.Options

  Script evaluation options.

  The JexlContext used for evaluation can implement this interface to alter behavior.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `MathContext` | `getArithmeticMathContext()` The MathContext instance used for +,-,/,*,% operations on big decimals.
    `int` | `getArithmeticMathScale()` The BigDecimal scale used for comparison and coercion operations.
    `Charset` | `getCharset()` The charset used for parsing.
    `Boolean` | `isSilent()` Sets whether the engine will throw a `JexlException` when an error is encountered during evaluation.
    `Boolean` | `isStrict()` Checks whether the engine considers unknown variables, methods, functions and constructors as errors or evaluates them as null.
    `Boolean` | `isStrictArithmetic()` Checks whether the arithmetic triggers errors during evaluation when null is used as an operand.

- - ### Method Detail

    - #### getCharset

          Charset getCharset()

      The charset used for parsing.
      Returns:
        the charset

    - #### isSilent

          Boolean isSilent()

      Sets whether the engine will throw a `JexlException` when an error is encountered during evaluation.
      Returns:
        true if silent, false otherwise

    - #### isStrict

          Boolean isStrict()

      Checks whether the engine considers unknown variables, methods, functions and constructors as errors or evaluates them as null.
      Returns:
        true if strict, false otherwise

    - #### isStrictArithmetic

          Boolean isStrictArithmetic()

      Checks whether the arithmetic triggers errors during evaluation when null is used as an operand.
      Returns:
        true if strict, false otherwise

    - #### getArithmeticMathContext

          MathContext getArithmeticMathContext()

      The MathContext instance used for +,-,/,*,% operations on big decimals.
      Returns:
        the math context

    - #### getArithmeticMathScale

          int getArithmeticMathScale()

      The BigDecimal scale used for comparison and coercion operations.
      Returns:
        the scale

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