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

public class ExprCastNode extends ExprNodeBase
Represents the CAST(expression, type) function is an expression tree.
  • Constructor Details

    • ExprCastNode

      public ExprCastNode(ClassDescriptor classIdentifierWArray)
      Ctor.
      Parameters:
      classIdentifierWArray - the the name of the type to cast to
  • Method Details

    • getExprEvaluator

      public ExprEvaluator getExprEvaluator()
    • getForge

      public ExprForge getForge()
    • getClassIdentifierWArray

      public ClassDescriptor getClassIdentifierWArray()
    • validate

      public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException
      Throws:
      ExprValidationException
    • isConstantResult

      public boolean isConstantResult()
    • getTargetType

      public Class getTargetType()
    • toPrecedenceFreeEPL

      public void toPrecedenceFreeEPL(StringWriter writer, ExprNodeRenderableFlags flags)
      Specified by:
      toPrecedenceFreeEPL in class ExprNodeBase
    • getPrecedence

      public ExprPrecedenceEnum getPrecedence()
      Description copied from interface: ExprNode
      Returns precedence.
      Returns:
      precedence
    • equalsNode

      public boolean equalsNode(ExprNode node, boolean ignoreStreamPrefix)
      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 to
      ignoreStreamPrefix - when the equals-comparison can ignore prefix of event properties
      Returns:
      true if semantically equal, or false if not equals
    • handleParseException

      public static EPException handleParseException(DateFormat format, String date, Exception ex)
    • handleParseException

      public static EPException handleParseException(String formatString, String date, Exception ex)
    • handleParseISOException

      public static EPException handleParseISOException(String date, ScheduleParameterException ex)
    • stringToSimpleDateFormatSafe

      public static SimpleDateFormat stringToSimpleDateFormatSafe(Object format)
      NOTE: Code-generation-invoked method, method name and parameter order matters
      Parameters:
      format - format
      Returns:
      date format
    • stringToDateTimeFormatterSafe

      public static DateTimeFormatter stringToDateTimeFormatterSafe(Object format)