public class DateExpression extends java.lang.Object implements Resolvable
Resolvable
runtime expression
which must return a date
result. Subclasses need implement
only the execute()
method.Modifier and Type | Field and Description |
---|---|
private Accessor |
value
Any fixed value for the expression or
null . |
Constructor and Description |
---|
DateExpression()
Default constructor.
|
DateExpression(Accessor value)
Create an instance that has a fixed (non-varying) value.
|
DateExpression(date value)
Create an instance that has a fixed (non-varying) value.
|
Modifier and Type | Method and Description |
---|---|
date |
execute()
Execute the underlying expression and get its result.
|
java.lang.Class |
getType()
Report the return type expected from executing the expression.
|
BaseDataType |
resolve()
Execute the underlying expression and get its result.
|
private Accessor value
null
.public DateExpression()
public DateExpression(Accessor value)
value
- The fixed value for this instance.public DateExpression(date value)
value
- The fixed value for this instance.public final BaseDataType resolve()
resolve
in interface Resolvable
public final java.lang.Class getType()
getType
in interface Resolvable
BaseDataType
.public date execute()
date
.