Class ExpressionDeclaration
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionDeclaration
- All Implemented Interfaces:
Serializable
Represents a single expression declaration that applies to a given statement.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ExpressionDeclaration
(String name, List<String> parameterNames, Expression expression, boolean alias) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the expression body.getName()
Returns expression name.Returns the paramater names.boolean
isAlias()
Returns indicator whether the expression is an alias or not.void
setAlias
(boolean alias) Sets indicator whether the expression is an alias or not.void
setExpression
(Expression expression) Sets the expression body.void
Sets expression name.void
setParameterNames
(List<String> parameterNames) Sets the paramater names.void
toEPL
(StringWriter writer) Print part.static void
toEPL
(StringWriter writer, List<ExpressionDeclaration> expressionDeclarations, EPStatementFormatter formatter) Print.
-
Constructor Details
-
ExpressionDeclaration
public ExpressionDeclaration()Ctor. -
ExpressionDeclaration
public ExpressionDeclaration(String name, List<String> parameterNames, Expression expression, boolean alias) Ctor.- Parameters:
name
- of expressionparameterNames
- expression paramater namesexpression
- the expression bodyalias
- indicator whether this is an expression alias or not
-
-
Method Details
-
getName
Returns expression name.- Returns:
- name
-
setName
Sets expression name.- Parameters:
name
- name to set
-
getExpression
Returns the expression body.- Returns:
- expression body
-
setExpression
Sets the expression body.- Parameters:
expression
- body to set
-
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
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 toexpressionDeclarations
- expression declarationsformatter
- for newline-whitespace formatting
-
toEPL
Print part.- Parameters:
writer
- to write to
-