IntervalClause { private ExprValue quarter(ExprValue value) { return new ExprIntervalValue(Period.ofMonths(getIntegerValue(value) * 3)); }  void register(BuiltinFunctionRepository repository);  }
@Test public void quarter() { FunctionExpression expr = dsl.interval(DSL.literal(1), DSL.literal("quarter")); assertEquals(INTERVAL, expr.type()); assertEquals(intervalValue(Period.ofMonths(3)), expr.valueOf(env)); }