Class YearFunction

All Implemented Interfaces:
Iterable<GroupingExpression>

public class YearFunction extends FunctionNode
This class represents a year timestamp-function in a GroupingExpression. It evaluates to a long that equals the full year (e.g. 2010) of the result of the argument.
Author:
Simon Thoresen Hult, bratseth
  • Constructor Details

    • YearFunction

      public YearFunction(GroupingExpression exp)
      Constructs a new instance of this class.
      Parameters:
      exp - The expression to evaluate, must evaluate to a long.
  • Method Details