Class DateLiteral

    • Field Detail

      • onlyDate

        public final boolean onlyDate
    • Constructor Detail

      • DateLiteral

        public DateLiteral​(String value,
                           boolean onlyDate)
    • Method Detail

      • toCalendar

        public Calendar toCalendar()
      • toSqlDate

        public Date toSqlDate()
      • asString

        public String asString()
        Description copied from class: Literal
        Gets a string representation of the value.
        Specified by:
        asString in class Literal
        Returns:
        a string representation of the value
      • accept

        public void accept​(IVisitor visitor)
        Description copied from interface: ASTNode
        Accept the given visitor.
        Parameters:
        visitor - the AST node visitor
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object