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