Class ConstantExpression
java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.ConstantExpression
- All Implemented Interfaces:
Expression
,Serializable
Constant value returns a fixed value for use in expressions.
- See Also:
-
Constructor Summary
ConstructorDescriptionCtor.ConstantExpression
(Object constant) Ctor.ConstantExpression
(Object constant, String constantType) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the constant value that the expression represents.Returns the type of the constant.Returns precedence.void
setConstant
(Object constant) Sets the constant value that the expression represents.void
setConstantType
(String constantType) Sets the type of the constant.void
toPrecedenceFreeEPL
(StringWriter writer) Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.Methods inherited from class com.espertech.esper.common.client.soda.ExpressionBase
addChild, getChildren, getTreeObjectName, renderAggregation, setChildren, setTreeObjectName, toEPL, toPrecedenceFreeEPL, toPrecedenceFreeEPL
-
Constructor Details
-
ConstantExpression
public ConstantExpression()Ctor. -
ConstantExpression
Ctor.- Parameters:
constant
- is the constant value, or null to represent the null value
-
ConstantExpression
Ctor.- Parameters:
constant
- valueconstantType
- type
-
-
Method Details
-
getConstantType
Returns the type of the constant.- Returns:
- type
-
setConstantType
Sets the type of the constant.- Parameters:
constantType
- type
-
getPrecedence
Description copied from interface:Expression
Returns precedence.- Returns:
- precedence
-
toPrecedenceFreeEPL
Description copied from class:ExpressionBase
Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.- Specified by:
toPrecedenceFreeEPL
in classExpressionBase
- Parameters:
writer
- is the output to use
-
getConstant
Returns the constant value that the expression represents.- Returns:
- value of constant
-
setConstant
Sets the constant value that the expression represents.- Parameters:
constant
- is the value, or null to indicate the null value
-