Class TypeCast
- java.lang.Object
-
- ru.ispras.microtesk.translator.nml.antlrex.TypeCast
-
public final class TypeCast extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ru.ispras.fortress.expression.Node
castConstantTo(ru.ispras.fortress.expression.Node value, ru.ispras.fortress.data.DataType type)
static Expr
castConstantTo(Expr value, Type type)
static Expr
castConstantTo(Expr value, Type type, boolean signExtend)
static ru.ispras.fortress.data.DataType
getCastDataType(ru.ispras.fortress.data.DataType left, ru.ispras.fortress.data.DataType right)
static ru.ispras.fortress.data.DataTypeId
getCastDataTypeId(ru.ispras.fortress.data.DataTypeId left, ru.ispras.fortress.data.DataTypeId right)
static Type
getCastType(Type left, Type right)
static TypeId
getCastTypeId(TypeId left, TypeId right)
static ru.ispras.fortress.data.DataType
getFortressDataType(Type type)
-
-
-
Method Detail
-
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 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)
-
-