Class SqlFunctionScalarCast


  • public class SqlFunctionScalarCast
    extends SqlNode
    The type Sql function scalar cast.
    • Constructor Detail

      • SqlFunctionScalarCast

        public SqlFunctionScalarCast​(DataType dataType,
                                     SqlNode argument)
        Create a new instance of SqlFunctionScalarCast.
        Parameters:
        dataType - cast data type
        argument - value to cast
    • Method Detail

      • getDataType

        public DataType getDataType()
        Gets data type.
        Returns:
        the data type
      • getArgument

        public SqlNode getArgument()
        Gets argument.
        Returns:
        the argument
      • getChildren

        public List<SqlNode> getChildren()
        Description copied from class: SqlNode
        Get list of node's children (possibly, empty).
        Overrides:
        getChildren in class SqlNode
        Returns:
        list of children nodes (which could be null)