Class LambdaExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.LambdaExpression
- All Implemented Interfaces:
Expression
,Serializable
Lambda-expression is an expression of the form "parameter => body" where-in the "=>" reads as goes-to.
The form "x => x * x" reads as "x goes to x times x", for an example expression that yields x multiplied by x.
Used with expression declaration and with enumeration methods, for example, to parameterize by an expression.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the lambda expression parameters.Returns precedence.void
setParameters
(List<String> parameters) Sets the lambda expression parameters.void
toPrecedenceFreeEPL
(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.common.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
-
Constructor Details
-
LambdaExpression
public LambdaExpression()Ctor. -
LambdaExpression
Ctor.- Parameters:
parameters
- the lambda expression parameters
-
-
Method Details
-
getParameters
Returns the lambda expression parameters.- Returns:
- lambda expression parameters
-
setParameters
Sets the lambda expression parameters.- Parameters:
parameters
- lambda expression parameters
-
getPrecedence
Description copied from interface:Expression
Returns precedence.- Returns:
- precedence
-
toPrecedenceFreeEPL
Description copied from class:ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.- Specified by:
toPrecedenceFreeEPL
in classExpressionBase
- Parameters:
writer
- is the output to use
-