Package org.apache.commons.jexl3
Interface JexlEngine.Options
- Enclosing class:
- JexlEngine
Deprecated.
3.2
Script evaluation options.
The JexlContext used for evaluation can implement this interface to alter behavior.
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.The MathContext instance used for +,-,/,*,% operations on big decimals.int
Deprecated.The BigDecimal scale used for comparison and coercion operations.Deprecated.The charset used for parsing.Deprecated.Whether evaluation will throw JexlException.Cancel (true) or return null (false) when interrupted.isSilent()
Deprecated.Sets whether the engine will throw aJexlException
when an error is encountered during evaluation.isStrict()
Deprecated.Checks whether the engine considers unknown variables, methods, functions and constructors as errors or evaluates them as null.Deprecated.Checks whether the arithmetic triggers errors during evaluation when null is used as an operand.
-
Method Details
-
getArithmeticMathContext
Deprecated.The MathContext instance used for +,-,/,*,% operations on big decimals.- Returns:
- the math context
-
getArithmeticMathScale
int getArithmeticMathScale()Deprecated.The BigDecimal scale used for comparison and coercion operations.- Returns:
- the scale
-
getCharset
Deprecated.The charset used for parsing.- Returns:
- the charset
-
isCancellable
Deprecated.Whether evaluation will throw JexlException.Cancel (true) or return null (false) when interrupted.- Returns:
- true when cancellable, false otherwise
- Since:
- 3.1
-
isSilent
Deprecated.Sets whether the engine will throw aJexlException
when an error is encountered during evaluation.- Returns:
- true if silent, false otherwise
-
isStrict
Deprecated.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
Deprecated.Checks whether the arithmetic triggers errors during evaluation when null is used as an operand.- Returns:
- true if strict, false otherwise
-