Class CreateExpressionClause
java.lang.Object
com.espertech.esper.common.client.soda.CreateExpressionClause
- All Implemented Interfaces:
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 Summary
ConstructorDescriptionCtor.CreateExpressionClause
(ExpressionDeclaration expressionDeclaration) Ctor.CreateExpressionClause
(ScriptExpression scriptExpression) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the expression declaration or null if script instead.Returns the script expression or null if declaring an EPL expression.void
setExpressionDeclaration
(ExpressionDeclaration expressionDeclaration) Sets the expression declaration or null if script instead.void
setScriptExpression
(ScriptExpression scriptExpression) Sets the script expression or null if declaring an EPL expression.void
toEPL
(StringWriter writer) EPL output
-
Constructor Details
-
CreateExpressionClause
public CreateExpressionClause()Ctor. -
CreateExpressionClause
Ctor.- Parameters:
expressionDeclaration
- expression
-
CreateExpressionClause
Ctor.- Parameters:
scriptExpression
- script
-
-
Method Details
-
getExpressionDeclaration
Returns the expression declaration or null if script instead.- Returns:
- expression declaration
-
setExpressionDeclaration
Sets the expression declaration or null if script instead.- Parameters:
expressionDeclaration
- expression declaration
-
getScriptExpression
Returns the script expression or null if declaring an EPL expression.- Returns:
- script expression
-
setScriptExpression
Sets the script expression or null if declaring an EPL expression.- Parameters:
scriptExpression
- script expression
-
toEPL
EPL output- Parameters:
writer
- to write to
-