Class ExprCastNode
java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.funcs.ExprCastNode
- All Implemented Interfaces:
ExprNode
,ExprNodeRenderable
,ExprValidator
Represents the CAST(expression, type) function is an expression tree.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Casting and parsing computer.static interface
Casting and parsing computer.static class
Casting and parsing computer.static class
Casting and parsing computer.static class
Casting and parsing computer.static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
static class
Casting and parsing computer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
equalsNode
(ExprNode node, boolean ignoreStreamPrefix) Return true if a expression node semantically equals the current node, or false if not.getForge()
Returns precedence.static EPException
handleParseException
(String formatString, String date, Exception ex) static EPException
handleParseException
(DateFormat format, String date, Exception ex) static EPException
boolean
static DateTimeFormatter
stringToDateTimeFormatterSafe
(Object format) static SimpleDateFormat
stringToSimpleDateFormatSafe
(Object format) NOTE: Code-generation-invoked method, method name and parameter order mattersvoid
toPrecedenceFreeEPL
(StringWriter writer, ExprNodeRenderableFlags flags) validate
(ExprValidationContext validationContext) Methods inherited from class com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
accept, accept, acceptChildnodes, addChildNode, addChildNodes, addChildNodeToFront, checkValidated, checkValidatedException, getChildNodes, replaceUnlistedChildNode, setChildNode, setChildNodes, toEPL
-
Constructor Details
-
ExprCastNode
Ctor.- Parameters:
classIdentifierWArray
- the the name of the type to cast to
-
-
Method Details
-
getExprEvaluator
-
getForge
-
getClassIdentifierWArray
-
validate
- Throws:
ExprValidationException
-
isConstantResult
public boolean isConstantResult() -
getTargetType
-
toPrecedenceFreeEPL
- Specified by:
toPrecedenceFreeEPL
in classExprNodeBase
-
getPrecedence
Description copied from interface:ExprNode
Returns precedence.- Returns:
- precedence
-
equalsNode
Description copied from interface:ExprNode
Return true if a expression node semantically equals the current node, or false if not.Concrete implementations should compare the type and any additional information that impact the evaluation of a node.
- Parameters:
node
- to compare toignoreStreamPrefix
- when the equals-comparison can ignore prefix of event properties- Returns:
- true if semantically equal, or false if not equals
-
handleParseException
-
handleParseException
-
handleParseISOException
-
stringToSimpleDateFormatSafe
NOTE: Code-generation-invoked method, method name and parameter order matters- Parameters:
format
- format- Returns:
- date format
-
stringToDateTimeFormatterSafe
-