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