Class CreateExpressionClause

java.lang.Object
com.espertech.esper.common.client.soda.CreateExpressionClause
All Implemented Interfaces:
Serializable

public class CreateExpressionClause extends Object implements Serializable
Clause for creating an expression for use across one or more statements.

Both expressions and scripts can be created using this clause.

See Also:
  • Constructor Details

    • CreateExpressionClause

      public CreateExpressionClause()
      Ctor.
    • CreateExpressionClause

      public CreateExpressionClause(ExpressionDeclaration expressionDeclaration)
      Ctor.
      Parameters:
      expressionDeclaration - expression
    • CreateExpressionClause

      public CreateExpressionClause(ScriptExpression scriptExpression)
      Ctor.
      Parameters:
      scriptExpression - script
  • Method Details

    • getExpressionDeclaration

      public ExpressionDeclaration getExpressionDeclaration()
      Returns the expression declaration or null if script instead.
      Returns:
      expression declaration
    • setExpressionDeclaration

      public void setExpressionDeclaration(ExpressionDeclaration expressionDeclaration)
      Sets the expression declaration or null if script instead.
      Parameters:
      expressionDeclaration - expression declaration
    • getScriptExpression

      public ScriptExpression getScriptExpression()
      Returns the script expression or null if declaring an EPL expression.
      Returns:
      script expression
    • setScriptExpression

      public void setScriptExpression(ScriptExpression scriptExpression)
      Sets the script expression or null if declaring an EPL expression.
      Parameters:
      scriptExpression - script expression
    • toEPL

      public void toEPL(StringWriter writer)
      EPL output
      Parameters:
      writer - to write to