public class DateValue extends java.lang.Object implements Expression, PrimitiveValue
PrimitiveValue.InvalidPrimitive
Modifier and Type | Field and Description |
---|---|
private java.sql.Date |
value |
Constructor and Description |
---|
DateValue(java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ExpressionVisitor expressionVisitor) |
boolean |
equals(java.lang.Object o) |
int |
getDate() |
int |
getMonth() |
PrimitiveType |
getType() |
java.sql.Date |
getValue() |
int |
getYear() |
int |
hashCode() |
static DateValue |
parseEscaped(java.lang.String escapedValue) |
void |
setValue(java.sql.Date d) |
boolean |
toBool()
The boolean value of this primitive
|
double |
toDouble()
The double value of this primitive
|
long |
toLong()
The long value of this primitive
|
java.lang.String |
toRawString()
An unescaped string encoding of this primitive value.
|
java.lang.String |
toString() |
public static DateValue parseEscaped(java.lang.String escapedValue)
public void accept(ExpressionVisitor expressionVisitor)
accept
in interface Expression
public int getYear()
public int getMonth()
public int getDate()
public java.sql.Date getValue()
public void setValue(java.sql.Date d)
public java.lang.String toRawString()
PrimitiveValue
toRawString
in interface PrimitiveValue
public java.lang.String toString()
toString
in class java.lang.Object
public long toLong() throws PrimitiveValue.InvalidPrimitive
PrimitiveValue
toLong
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
- otherwisepublic double toDouble() throws PrimitiveValue.InvalidPrimitive
PrimitiveValue
toDouble
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
- otherwisepublic boolean toBool() throws PrimitiveValue.InvalidPrimitive
PrimitiveValue
toBool
in interface PrimitiveValue
PrimitiveValue.InvalidPrimitive
- otherwisepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public PrimitiveType getType()
getType
in interface PrimitiveValue