public class CalendarPlusMinusForgeOp extends java.lang.Object implements CalendarOp
Constructor and Description |
---|
CalendarPlusMinusForgeOp(ExprEvaluator param,
int factor) |
Modifier and Type | Method and Description |
---|---|
static void |
actionCalendarPlusMinusNumber(java.util.Calendar cal,
int factor,
java.lang.Long duration)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static void |
actionCalendarPlusMinusTimePeriod(java.util.Calendar cal,
int factor,
TimePeriod tp)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static java.time.LocalDateTime |
actionLDTPlusMinusNumber(java.time.LocalDateTime ldt,
int factor,
java.lang.Long duration)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static java.time.LocalDateTime |
actionLDTPlusMinusTimePeriod(java.time.LocalDateTime ldt,
int factor,
TimePeriod tp)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static void |
actionSafeOverflow(java.util.Calendar cal,
int factor,
TimePeriod tp) |
static java.time.ZonedDateTime |
actionZDTPlusMinusNumber(java.time.ZonedDateTime zdt,
int factor,
java.lang.Long duration)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static java.time.ZonedDateTime |
actionZDTPlusMinusTimePeriod(java.time.ZonedDateTime zdt,
int factor,
TimePeriod tp)
NOTE: Code-generation-invoked method, method name and parameter order matters
|
static CodegenExpression |
codegenCalendar(CalendarPlusMinusForge forge,
CodegenExpression cal,
CodegenMethodScope codegenMethodScope,
ExprForgeCodegenSymbol exprSymbol,
CodegenClassScope codegenClassScope) |
static CodegenExpression |
codegenLDT(CalendarPlusMinusForge forge,
CodegenExpression ldt,
CodegenMethodScope codegenMethodScope,
ExprForgeCodegenSymbol exprSymbol,
CodegenClassScope codegenClassScope) |
static CodegenExpression |
codegenZDT(CalendarPlusMinusForge forge,
CodegenExpression zdt,
CodegenMethodScope codegenMethodScope,
ExprForgeCodegenSymbol exprSymbol,
CodegenClassScope codegenClassScope) |
void |
evaluate(java.util.Calendar cal,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
java.time.LocalDateTime |
evaluate(java.time.LocalDateTime ldt,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
java.time.ZonedDateTime |
evaluate(java.time.ZonedDateTime zdt,
EventBean[] eventsPerStream,
boolean isNewData,
ExprEvaluatorContext context) |
public CalendarPlusMinusForgeOp(ExprEvaluator param, int factor)
public void evaluate(java.util.Calendar cal, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluate
in interface CalendarOp
public static CodegenExpression codegenCalendar(CalendarPlusMinusForge forge, CodegenExpression cal, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
public java.time.LocalDateTime evaluate(java.time.LocalDateTime ldt, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluate
in interface CalendarOp
public static CodegenExpression codegenLDT(CalendarPlusMinusForge forge, CodegenExpression ldt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
public java.time.ZonedDateTime evaluate(java.time.ZonedDateTime zdt, EventBean[] eventsPerStream, boolean isNewData, ExprEvaluatorContext context)
evaluate
in interface CalendarOp
public static CodegenExpression codegenZDT(CalendarPlusMinusForge forge, CodegenExpression zdt, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope)
public static void actionCalendarPlusMinusNumber(java.util.Calendar cal, int factor, java.lang.Long duration)
cal
- calendarfactor
- factorduration
- durationpublic static java.time.LocalDateTime actionLDTPlusMinusNumber(java.time.LocalDateTime ldt, int factor, java.lang.Long duration)
ldt
- ldtfactor
- factorduration
- durationpublic static java.time.ZonedDateTime actionZDTPlusMinusNumber(java.time.ZonedDateTime zdt, int factor, java.lang.Long duration)
zdt
- ldtfactor
- factorduration
- durationpublic static void actionSafeOverflow(java.util.Calendar cal, int factor, TimePeriod tp)
public static void actionCalendarPlusMinusTimePeriod(java.util.Calendar cal, int factor, TimePeriod tp)
cal
- calendarfactor
- factortp
- durationpublic static java.time.LocalDateTime actionLDTPlusMinusTimePeriod(java.time.LocalDateTime ldt, int factor, TimePeriod tp)
ldt
- ldtfactor
- factortp
- durationpublic static java.time.ZonedDateTime actionZDTPlusMinusTimePeriod(java.time.ZonedDateTime zdt, int factor, TimePeriod tp)
zdt
- zdtfactor
- factortp
- duration