Class LambdaExpression

java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.LambdaExpression
All Implemented Interfaces:
Expression, Serializable

public class LambdaExpression extends ExpressionBase
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 Details

    • LambdaExpression

      public LambdaExpression()
      Ctor.
    • LambdaExpression

      public LambdaExpression(List<String> parameters)
      Ctor.
      Parameters:
      parameters - the lambda expression parameters
  • Method Details

    • getParameters

      public List<String> getParameters()
      Returns the lambda expression parameters.
      Returns:
      lambda expression parameters
    • setParameters

      public void setParameters(List<String> parameters)
      Sets the lambda expression parameters.
      Parameters:
      parameters - lambda expression parameters
    • getPrecedence

      public ExpressionPrecedenceEnum getPrecedence()
      Description copied from interface: Expression
      Returns precedence.
      Returns:
      precedence
    • toPrecedenceFreeEPL

      public void toPrecedenceFreeEPL(StringWriter writer)
      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 class ExpressionBase
      Parameters:
      writer - is the output to use