Click or drag to resize

CaseSwitchExpression Class

Case-expression that acts as a switch testing a value against other values.

The first child expression provides the value to switch on. The following pairs of child expressions provide the "when expression then expression" results. The last child expression provides the "else" result.

Inheritance Hierarchy
SystemObject
  com.espertech.esper.common.client.sodaExpressionBase
    com.espertech.esper.common.client.sodaCaseSwitchExpression

Namespace:  com.espertech.esper.common.client.soda
Assembly:  NEsper.Common (in NEsper.Common.dll) Version: 8.0.0.0
Syntax
C#
[SerializableAttribute]
public class CaseSwitchExpression : ExpressionBase

The CaseSwitchExpression type exposes the following members.

Constructors
  NameDescription
Public methodCaseSwitchExpression
Ctor - for use to create an expression tree, without inner expression
Public methodCaseSwitchExpression(Expression)
Ctor.
Top
Properties
  NameDescription
Public propertyChildren
Returns the list of sub-expressions to the current expression.
(Inherited from ExpressionBase.)
Public propertyPrecedence (Overrides ExpressionBasePrecedence.)
Public propertyTreeObjectName (Inherited from ExpressionBase.)
Top
Methods
  NameDescription
Public methodAdd
Adds a pair of expressions representing a "when" and a "then" in the switch.
Public methodAddChild
Adds a new child expression to the current expression.
(Inherited from ExpressionBase.)
Public methodSetElse
Sets the else-part of the case-switch. This result of this expression is returned when no when-expression matched.
Public methodToEPL (Inherited from ExpressionBase.)
Public methodToPrecedenceFreeEPL (Overrides ExpressionBaseToPrecedenceFreeEPL(TextWriter).)
Top
See Also