Class TypeCast


  • public final class TypeCast
    extends java.lang.Object
    • Method Detail

      • getCastType

        public static Type getCastType​(Type left,
                                       Type right)
      • getCastDataTypeId

        public static ru.ispras.fortress.data.DataTypeId getCastDataTypeId​(ru.ispras.fortress.data.DataTypeId left,
                                                                           ru.ispras.fortress.data.DataTypeId right)
      • getCastDataType

        public static ru.ispras.fortress.data.DataType getCastDataType​(ru.ispras.fortress.data.DataType left,
                                                                       ru.ispras.fortress.data.DataType right)
      • castConstantTo

        public static Expr castConstantTo​(Expr value,
                                          Type type)
      • castConstantTo

        public static Expr castConstantTo​(Expr value,
                                          Type type,
                                          boolean signExtend)
      • castConstantTo

        public static ru.ispras.fortress.expression.Node castConstantTo​(ru.ispras.fortress.expression.Node value,
                                                                        ru.ispras.fortress.data.DataType type)
      • getFortressDataType

        public static ru.ispras.fortress.data.DataType getFortressDataType​(Type type)