public class PreviousExpression extends ExpressionBase
Constructor and Description |
---|
PreviousExpression()
Ctor.
|
PreviousExpression(Expression expression,
String propertyName)
Ctor.
|
PreviousExpression(int index,
String propertyName)
Ctor.
|
PreviousExpression(PreviousExpressionType type,
Expression expression)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
ExpressionPrecedenceEnum |
getPrecedence()
Returns precedence.
|
PreviousExpressionType |
getType()
Returns the type of the previous expression (tail, first, window, count)
|
void |
setType(PreviousExpressionType type)
Sets the type of the previous expression (tail, first, window, count)
|
void |
toPrecedenceFreeEPL(StringWriter writer)
Renders the expressions and all it's child expression, in full tree depth, as a string in
language syntax.
|
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
public PreviousExpression()
public PreviousExpression(Expression expression, String propertyName)
expression
- provides the index to usepropertyName
- is the name of the property to return the value forpublic PreviousExpression(int index, String propertyName)
index
- provides the indexpropertyName
- is the name of the property to return the value forpublic PreviousExpression(PreviousExpressionType type, Expression expression)
type
- type of previous expression (tail, first, window, count)expression
- to evaluatepublic ExpressionPrecedenceEnum getPrecedence()
Expression
public PreviousExpressionType getType()
public void setType(PreviousExpressionType type)
type
- to setpublic void toPrecedenceFreeEPL(StringWriter writer)
ExpressionBase
toPrecedenceFreeEPL
in class ExpressionBase
writer
- is the output to use