public class DateLiteral extends Literal
Modifier and Type | Field and Description |
---|---|
static org.joda.time.format.DateTimeFormatter |
dateFormatter |
static org.joda.time.format.DateTimeFormatter |
dateParser |
static org.joda.time.format.DateTimeFormatter |
dateTimeFormatter |
static org.joda.time.format.DateTimeFormatter |
dateTimeParser |
boolean |
onlyDate |
org.joda.time.DateTime |
value |
Constructor and Description |
---|
DateLiteral(String value,
boolean onlyDate) |
Modifier and Type | Method and Description |
---|---|
void |
accept(IVisitor visitor)
Accept the given visitor.
|
String |
asString()
Gets a string representation of the value.
|
static String |
date(DateLiteral date) |
static String |
dateTime(DateLiteral date) |
boolean |
equals(Object obj) |
int |
hashCode() |
Calendar |
toCalendar() |
Date |
toSqlDate() |
String |
toString() |
public static final org.joda.time.format.DateTimeFormatter dateParser
public static final org.joda.time.format.DateTimeFormatter dateTimeParser
public static final org.joda.time.format.DateTimeFormatter dateFormatter
public static final org.joda.time.format.DateTimeFormatter dateTimeFormatter
public final org.joda.time.DateTime value
public final boolean onlyDate
public DateLiteral(String value, boolean onlyDate)
public Calendar toCalendar()
public String asString()
Literal
public void accept(IVisitor visitor)
ASTNode
visitor
- the AST node visitorpublic static String dateTime(DateLiteral date)
public static String date(DateLiteral date)
Copyright © 2015 Nuxeo SA. All rights reserved.