|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.client.soda.ExpressionBase
com.espertech.esper.client.soda.TimePeriodExpression
public class TimePeriodExpression
Represent an expression
Constructor Summary | |
---|---|
TimePeriodExpression()
Ctor. |
|
TimePeriodExpression(boolean hasDays,
boolean hasHours,
boolean hasMinutes,
boolean hasSeconds,
boolean hasMilliseconds)
Ctor. |
|
TimePeriodExpression(boolean hasYears,
boolean hasMonths,
boolean hasWeeks,
boolean hasDays,
boolean hasHours,
boolean hasMinutes,
boolean hasSeconds,
boolean hasMilliseconds)
Ctor. |
|
TimePeriodExpression(Expression daysExpr,
Expression hoursExpr,
Expression minutesExpr,
Expression secondsExpr,
Expression millisecondsExpr)
Ctor. |
|
TimePeriodExpression(Expression yearsExpr,
Expression monthsExpr,
Expression weeksExpr,
Expression daysExpr,
Expression hoursExpr,
Expression minutesExpr,
Expression secondsExpr,
Expression millisecondsExpr)
Ctor. |
Method Summary | |
---|---|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence. |
boolean |
isHasDays()
Returns true if a subexpression exists that is a day-part. |
boolean |
isHasHours()
Returns true if a subexpression exists that is a hour-part. |
boolean |
isHasMilliseconds()
Returns true if a subexpression exists that is a milliseconds-part. |
boolean |
isHasMinutes()
Returns true if a subexpression exists that is a minutes-part. |
boolean |
isHasMonths()
Returns true if a subexpression exists that is a month-part. |
boolean |
isHasSeconds()
Returns true if a subexpression exists that is a seconds-part. |
boolean |
isHasWeeks()
Returns true if a subexpression exists that is a weeks-part. |
boolean |
isHasYears()
Returns true if a subexpression exists that is a year-part. |
void |
setHasDays(boolean hasDays)
Set to true if a subexpression exists that is a day-part. |
void |
setHasHours(boolean hasHours)
Set to true if a subexpression exists that is a hour-part. |
void |
setHasMilliseconds(boolean hasMilliseconds)
Set to true if a subexpression exists that is a msec-part. |
void |
setHasMinutes(boolean hasMinutes)
Set to true if a subexpression exists that is a minutes-part. |
void |
setHasMonths(boolean hasMonths)
Set to true if a subexpression exists that is a month-part. |
void |
setHasSeconds(boolean hasSeconds)
Set to true if a subexpression exists that is a seconds-part. |
void |
setHasWeeks(boolean hasWeeks)
Set to true if a subexpression exists that is a weeks-part. |
void |
setHasYears(boolean hasYears)
Set to true if a subexpression exists that is a year-part. |
void |
toPrecedenceFreeEPL(java.io.StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax. |
Methods inherited from class com.espertech.esper.client.soda.ExpressionBase |
---|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimePeriodExpression()
public TimePeriodExpression(boolean hasYears, boolean hasMonths, boolean hasWeeks, boolean hasDays, boolean hasHours, boolean hasMinutes, boolean hasSeconds, boolean hasMilliseconds)
hasYears
- flag to indicate that a year-part expression existshasMonths
- flag to indicate that a month-part expression existshasWeeks
- flag to indicate that a week-part expression existshasDays
- flag to indicate that a day-part expression existshasHours
- flag to indicate that a hour-part expression existshasMinutes
- flag to indicate that a minute-part expression existshasSeconds
- flag to indicate that a seconds-part expression existshasMilliseconds
- flag to indicate that a millisec-part expression existspublic TimePeriodExpression(boolean hasDays, boolean hasHours, boolean hasMinutes, boolean hasSeconds, boolean hasMilliseconds)
hasDays
- flag to indicate that a day-part expression existshasHours
- flag to indicate that a hour-part expression existshasMinutes
- flag to indicate that a minute-part expression existshasSeconds
- flag to indicate that a seconds-part expression existshasMilliseconds
- flag to indicate that a millisec-part expression existspublic TimePeriodExpression(Expression yearsExpr, Expression monthsExpr, Expression weeksExpr, Expression daysExpr, Expression hoursExpr, Expression minutesExpr, Expression secondsExpr, Expression millisecondsExpr)
yearsExpr
- expression returning years value, or null if no such partmonthsExpr
- expression returning months value, or null if no such partweeksExpr
- expression returning weeks value, or null if no such partdaysExpr
- expression returning days value, or null if no such parthoursExpr
- expression returning hours value, or null if no such partminutesExpr
- expression returning minutes value, or null if no such partsecondsExpr
- expression returning seconds value, or null if no such partmillisecondsExpr
- expression returning millisec value, or null if no such partpublic TimePeriodExpression(Expression daysExpr, Expression hoursExpr, Expression minutesExpr, Expression secondsExpr, Expression millisecondsExpr)
daysExpr
- expression returning days value, or null if no such parthoursExpr
- expression returning hours value, or null if no such partminutesExpr
- expression returning minutes value, or null if no such partsecondsExpr
- expression returning seconds value, or null if no such partmillisecondsExpr
- expression returning millisec value, or null if no such partMethod Detail |
---|
public boolean isHasDays()
public void setHasDays(boolean hasDays)
hasDays
- for presence of partpublic boolean isHasHours()
public void setHasHours(boolean hasHours)
hasHours
- for presence of partpublic boolean isHasMinutes()
public void setHasMinutes(boolean hasMinutes)
hasMinutes
- for presence of partpublic boolean isHasSeconds()
public void setHasSeconds(boolean hasSeconds)
hasSeconds
- for presence of partpublic boolean isHasMilliseconds()
public void setHasMilliseconds(boolean hasMilliseconds)
hasMilliseconds
- for presence of partpublic boolean isHasYears()
public void setHasYears(boolean hasYears)
hasYears
- for presence of partpublic boolean isHasMonths()
public void setHasMonths(boolean hasMonths)
hasMonths
- for presence of partpublic boolean isHasWeeks()
public void setHasWeeks(boolean hasWeeks)
hasWeeks
- for presence of partpublic ExpressionPrecedenceEnum getPrecedence()
Expression
public void toPrecedenceFreeEPL(java.io.StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |