Class ExpressionDeclaration

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

public class ExpressionDeclaration extends Object implements Serializable
Represents a single expression declaration that applies to a given statement.
See Also:
  • Constructor Details

    • ExpressionDeclaration

      public ExpressionDeclaration()
      Ctor.
    • ExpressionDeclaration

      public ExpressionDeclaration(String name, List<String> parameterNames, Expression expression, boolean alias)
      Ctor.
      Parameters:
      name - of expression
      parameterNames - expression paramater names
      expression - the expression body
      alias - indicator whether this is an expression alias or not
  • Method Details

    • getName

      public String getName()
      Returns expression name.
      Returns:
      name
    • setName

      public void setName(String name)
      Sets expression name.
      Parameters:
      name - name to set
    • getExpression

      public Expression getExpression()
      Returns the expression body.
      Returns:
      expression body
    • setExpression

      public void setExpression(Expression expression)
      Sets the expression body.
      Parameters:
      expression - body to set
    • getParameterNames

      public List<String> getParameterNames()
      Returns the paramater names.
      Returns:
      paramater names
    • isAlias

      public boolean isAlias()
      Returns indicator whether the expression is an alias or not.
      Returns:
      alias indicator
    • setAlias

      public void setAlias(boolean alias)
      Sets indicator whether the expression is an alias or not.
      Parameters:
      alias - alias indicator
    • setParameterNames

      public void setParameterNames(List<String> parameterNames)
      Sets the paramater names.
      Parameters:
      parameterNames - paramater names to set
    • toEPL

      public static void toEPL(StringWriter writer, List<ExpressionDeclaration> expressionDeclarations, EPStatementFormatter formatter)
      Print.
      Parameters:
      writer - to print to
      expressionDeclarations - expression declarations
      formatter - for newline-whitespace formatting
    • toEPL

      public void toEPL(StringWriter writer)
      Print part.
      Parameters:
      writer - to write to