@Override public boolean isLenient() { return delegate.isLenient(); }
/** * Checks whether this engine considers unknown variables, methods and constructors as errors. * @return true if lenient, false if strict */ public boolean isLenient() { return arithmetic.isLenient(); }
/** * Throw a NPE if arithmetic is strict. * @throws ArithmeticException if strict */ protected void controlNullOperand() { if (!isLenient()) { throw new ArithmeticException(JexlException.NULL_OPERAND); } }
/** * The result of +,/,-,*,% when both operands are null. * @return Integer(0) if lenient * @throws ArithmeticException if strict */ protected Object controlNullNullOperands() { if (!isLenient()) { throw new ArithmeticException(JexlException.NULL_OPERAND); } return Integer.valueOf(0); }
/** {@inheritDoc} */ @Override public boolean isLenient() { Boolean lenient = FEATURES.get().lenient; return lenient == null ? super.isLenient() : lenient.booleanValue(); }