public class ContextDescriptorConditionPattern extends Object implements ContextDescriptorCondition
Constructor and Description |
---|
ContextDescriptorConditionPattern()
Ctor.
|
ContextDescriptorConditionPattern(PatternExpr pattern,
boolean inclusive,
boolean now)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
PatternExpr |
getPattern()
Returns the pattern expression.
|
boolean |
isInclusive()
Return the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.
|
boolean |
isNow()
Returns "now" indicator
|
void |
setInclusive(boolean inclusive)
Set the inclusive flag, meaning events that constitute the pattern match should be considered for context-associated statements.
|
void |
setNow(boolean now)
Sets "now" indicator
|
void |
setPattern(PatternExpr pattern)
Sets the pattern expression.
|
void |
toEPL(StringWriter writer,
EPStatementFormatter formatter)
Populate the EPL.
|
public ContextDescriptorConditionPattern()
public ContextDescriptorConditionPattern(PatternExpr pattern, boolean inclusive, boolean now)
pattern
- pattern expressioninclusive
- if the events of the pattern should be included in the contextual statementsnow
- indicator whether "now"public PatternExpr getPattern()
public void setPattern(PatternExpr pattern)
pattern
- to setpublic boolean isInclusive()
public void setInclusive(boolean inclusive)
inclusive
- inclusive flagpublic boolean isNow()
public void setNow(boolean now)
now
- "now" indicatorpublic void toEPL(StringWriter writer, EPStatementFormatter formatter)
ContextDescriptorCondition
toEPL
in interface ContextDescriptorCondition
writer
- outputformatter
- formatter