package gw.rating.flow.domain uses gw.lang.reflect.IType uses java.util.Date class DateConstantOperand extends CalcStepValueOperand { var _constantValue : Date construct (constValue : Date, opType : CalcStepOperatorType) { this(constValue, opType, 0, 0) } construct (constValue : Date, opType : CalcStepOperatorType, numLeft: int, numRight: int) { this(constValue, opType, numLeft, numRight, null) } construct(constValue : Date, opType : CalcStepOperatorType, numLeft: int, numRight: int, aHighlightElement: RateRoutineHighlightElement) { super(opType, numLeft, numRight) _constantValue = constValue _highlightElement = aHighlightElement } override property get OperandType() : CalcStepOperandType { return CalcStepOperandType.TC_CONSTANT } override protected function generateValue(context: GenerationContext) { context.append("new Date(" + _constantValue.getTime() + ")") } override function getDataType(context: GenerationContext) : IType { return Date } }