|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.util.exi.type.BaseType org.ujac.util.exi.type.BaseDateType org.ujac.util.exi.type.TimeType
public class TimeType
Name: TimeType
Description: An expression type handler for Time values.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.ujac.util.exi.type.BaseType |
---|
BaseType.InstanceofOperation, BaseType.ObjectDefinedOperation, BaseType.ObjectNotDefinedOperation, BaseType.ToStringOperation |
Field Summary |
---|
Fields inherited from class org.ujac.util.exi.type.BaseType |
---|
interpreter, operations |
Constructor Summary | |
---|---|
TimeType(ExpressionInterpreter interpreter)
Constructs a TimeType instance with specific arguments. |
Method Summary | |
---|---|
protected int |
compareDates(Date object,
Date operand)
Compares the given date instances. |
protected Date |
evalDate(Operand operand,
ExpressionContext ctx)
Evaluates the given operand to a Date value. |
protected String |
execToString(ExpressionTuple expr,
FormatHelper formatHelper)
Executes the toString operation. |
String |
getAlias()
Gets the alias of the expression type. |
Class |
getType()
Gets the class of the expression type. |
Methods inherited from class org.ujac.util.exi.type.BaseType |
---|
addOperation, evalTuple, getDescription, getOperation, getOperationNames, getOperations, getTypeName, removeAllOperations, removeOperation, typeCast |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeType(ExpressionInterpreter interpreter)
interpreter
- The expression interpreter.Method Detail |
---|
protected String execToString(ExpressionTuple expr, FormatHelper formatHelper)
execToString
in class BaseDateType
expr
- The expression, holding the object to get as string.formatHelper
- The format helper to use.
protected Date evalDate(Operand operand, ExpressionContext ctx) throws ExpressionException
evalDate
in class BaseDateType
operand
- The operand to evaluate.ctx
- The expression context.
ExpressionException
- In case the evaluation failed.protected int compareDates(Date object, Date operand)
compareDates
in class BaseDateType
object
- The object to compare.operand
- The operand to compare.
public Class getType()
ExpressionType
ExpressionType.getType()
public String getAlias()
getAlias
in interface ExpressionType
getAlias
in class BaseType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |